An error and 4 warnings when installing in Mac OS 10.11.4

Submitted by jmm on Mon, 04/18/2016 - 12:42
Forums

Hello,

I will be grateful if you could please help to correct the following errors I got during the installation of FreeLing 4.0-beta1 from Github repositories. I look forward to your reply.

In file included from treeler/dep/dependency_parser.cc:2:
In file included from ./treeler/dep/dependency_parser.h:42:
In file included from ./treeler/control/models.h:50:
In file included from ./treeler/tag/tag.h:43:
In file included from ./treeler/tag/fgen-tag.h:9:
In file included from ./treeler/base/feature-vector.h:42:
In file included from ./treeler/base/fidx.h:41:
./treeler/base/feature-idx-v0.h:71:7: warning: 'register' storage class specifier is
deprecated [-Wdeprecated-register]
register uint32_t a = (uint32_t)(t & 0xffffffff);
^~~~~~~~~
./treeler/base/feature-idx-v0.h:73:7: warning: 'register' storage class specifier is
deprecated [-Wdeprecated-register]
register uint32_t b = (uint32_t)((t >> 32) & 0xffffffff);
^~~~~~~~~
./treeler/base/feature-idx-v0.h:75:7: warning: 'register' storage class specifier is
deprecated [-Wdeprecated-register]
register uint32_t c = 0;
^~~~~~~~~
In file included from treeler/dep/dependency_parser.cc:2:
In file included from ./treeler/dep/dependency_parser.h:42:
In file included from ./treeler/control/models.h:50:
In file included from ./treeler/tag/tag.h:44:
In file included from ./treeler/base/scores.h:39:
In file included from ./treeler/base/parameters.h:43:
./treeler/base/base-parameters.h:123:53: error: arithmetic on a pointer to an
incomplete type 'const struct Fvec'
for (int r = 0; r < R; ++r) { S[r] = D::dot(F + r); }
~ ^
./treeler/base/base-parameters.h:121:20: note: forward declaration of 'treeler::Fvec'
const struct Fvec* const F,
^
In file included from treeler/dep/dependency_parser.cc:2:
In file included from ./treeler/dep/dependency_parser.h:42:
In file included from ./treeler/control/models.h:50:
In file included from ./treeler/tag/tag.h:44:
In file included from ./treeler/base/scores.h:151:
./treeler/base/wf-scores.h:138:14: warning: moving a local object in a return
statement prevents copy elision [-Wpessimizing-move]
return std::move(s);
^
./treeler/base/wf-scores.h:138:14: note: remove std::move call here
return std::move(s);
^~~~~~~~~~ ~
4 warnings and 1 error generated.
make[3]: *** [treeler/dep/dependency_parser.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I've later realised there is a recent correction in master for compiling in Mac. However, after git checkout -b mybranch-v4 master, I get even more warnings and errors:

In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:35:
In file included from ../../src/include/freeling/morfo/lang_ident.h:44:
In file included from ../../src/include/freeling/morfo/idioma.h:45:
In file included from ../../src/include/freeling/morfo/smoothingLD.h:33:
../../src/include/freeling/morfo/util.h:159:20: warning: 'tmpnam' is deprecated:
This function is provided for compatibility reasons only. Due to security
concerns inherent in the design of tmpnam(3), it is highly recommended that
you use mkstemp(3) instead. [-Wdeprecated-declarations]
err_type err = NEW_TMPNAME(tempfile,L_tmpnam+1);
^
../../src/include/freeling/morfo/util.h:58:29: note: expanded from macro
'NEW_TMPNAME'
#define NEW_TMPNAME(buf,sz) tmpnam(buf)
^
/usr/include/stdio.h:276:7: note: 'tmpnam' has been explicitly marked deprecated
here
char *tmpnam(char *);
^
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:39:
In file included from ../../src/include/freeling/morfo/maco.h:46:
In file included from ../../src/include/freeling/morfo/bioner.h:36:
In file included from ../../src/include/freeling/omlet/adaboost.h:38:
../../src/include/freeling/omlet/weakrule.h:188:12: warning:
'freeling::mlDTree::Zcalculus' hides overloaded virtual function
[-Woverloaded-virtual]
double Zcalculus(double *W, int ndim);
^
../../src/include/freeling/omlet/weakrule.h:89:20: note: hidden overloaded virtual
function 'freeling::weak_rule::Zcalculus' declared here: different number of
parameters (1 vs 2)
virtual double Zcalculus(const dataset &ds) const;
^
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:39:
In file included from ../../src/include/freeling/morfo/maco.h:46:
../../src/include/freeling/morfo/bioner.h:66:10: warning:
'freeling::bioner::SetMultiwordAnalysis' hides overloaded virtual function
[-Woverloaded-virtual]
void SetMultiwordAnalysis(sentence::iterator) const;
^
../../src/include/freeling/morfo/ner_module.h:81:18: note: hidden overloaded
virtual function 'freeling::ner_module::SetMultiwordAnalysis' declared here:
different number of parameters (3 vs 1)
virtual void SetMultiwordAnalysis(sentence::iterator, int, const ner_st...
^
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:50:
In file included from ../../src/include/freeling/morfo/dep_treeler.h:49:
In file included from ../../src/libtreeler/treeler/dep/dependency_parser.h:42:
In file included from ../../src/libtreeler/treeler/control/models.h:50:
In file included from ../../src/libtreeler/treeler/tag/tag.h:43:
In file included from ../../src/libtreeler/treeler/tag/fgen-tag.h:9:
In file included from ../../src/libtreeler/treeler/base/feature-vector.h:42:
In file included from ../../src/libtreeler/treeler/base/fidx.h:41:
../../src/libtreeler/treeler/base/feature-idx-v0.h:71:7: warning: 'register'
storage class specifier is deprecated [-Wdeprecated-register]
register uint32_t a = (uint32_t)(t & 0xffffffff);
^~~~~~~~~
../../src/libtreeler/treeler/base/feature-idx-v0.h:73:7: warning: 'register'
storage class specifier is deprecated [-Wdeprecated-register]
register uint32_t b = (uint32_t)((t >> 32) & 0xffffffff);
^~~~~~~~~
../../src/libtreeler/treeler/base/feature-idx-v0.h:75:7: warning: 'register'
storage class specifier is deprecated [-Wdeprecated-register]
register uint32_t c = 0;
^~~~~~~~~
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:50:
In file included from ../../src/include/freeling/morfo/dep_treeler.h:49:
In file included from ../../src/libtreeler/treeler/dep/dependency_parser.h:42:
In file included from ../../src/libtreeler/treeler/control/models.h:50:
In file included from ../../src/libtreeler/treeler/tag/tag.h:44:
In file included from ../../src/libtreeler/treeler/base/scores.h:39:
In file included from ../../src/libtreeler/treeler/base/parameters.h:43:
../../src/libtreeler/treeler/base/base-parameters.h:350:12: error: cannot
initialize a variable of type 'gzFile *' (aka 'void **') with an rvalue of
type 'gzFile' (aka 'void *')
gzFile out = gzopen(fname, "w");
^ ~~~~~~~~~~~~~~~~~~
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:50:
In file included from ../../src/include/freeling/morfo/dep_treeler.h:49:
In file included from ../../src/libtreeler/treeler/dep/dependency_parser.h:42:
In file included from ../../src/libtreeler/treeler/control/models.h:50:
In file included from ../../src/libtreeler/treeler/tag/tag.h:44:
In file included from ../../src/libtreeler/treeler/base/scores.h:39:
../../src/libtreeler/treeler/base/parameters.h:425:12: error: cannot initialize a
variable of type 'gzFile *' (aka 'void **') with an rvalue of type 'gzFile'
(aka 'void *')
gzFile out = gzopen(fname, "w");
^ ~~~~~~~~~~~~~~~~~~
../../src/libtreeler/treeler/base/parameters.h:480:12: error: cannot initialize a
variable of type 'gzFile *' (aka 'void **') with an rvalue of type 'gzFile'
(aka 'void *')
gzFile in = gzopen(fname, "r");
^ ~~~~~~~~~~~~~~~~~~
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:50:
In file included from ../../src/include/freeling/morfo/dep_treeler.h:49:
In file included from ../../src/libtreeler/treeler/dep/dependency_parser.h:42:
In file included from ../../src/libtreeler/treeler/control/models.h:50:
In file included from ../../src/libtreeler/treeler/tag/tag.h:44:
In file included from ../../src/libtreeler/treeler/base/scores.h:151:
../../src/libtreeler/treeler/base/wf-scores.h:138:14: warning: moving a local
object in a return statement prevents copy elision [-Wpessimizing-move]
return std::move(s);
^
../../src/libtreeler/treeler/base/wf-scores.h:138:14: note: remove std::move call
here
return std::move(s);
^~~~~~~~~~ ~
In file included from analyzer.cc:32:
In file included from ../../src/include/freeling/morfo/analyzer.h:37:
In file included from ../../src/include/freeling.h:50:
In file included from ../../src/include/freeling/morfo/dep_treeler.h:50:
In file included from ../../src/libtreeler/treeler/srl/srl_parser.h:39:
../../src/libtreeler/treeler/srl/srl.h:250:16: warning: moving a local object in a
return statement prevents copy elision [-Wpessimizing-move]
return std::move(pred_list);
^
../../src/libtreeler/treeler/srl/srl.h:250:16: note: remove std::move call here
return std::move(pred_list);
^~~~~~~~~~ ~
8 warnings and 3 errors generated.
make[2]: *** [analyzer.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Thanks for your prompt reply, LluĂ­s.
I have now included zlib in the requirements' paths:

./configure --enable-boost-locale CPPFLAGS="-I/usr/local/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/zlib/include" LDFLAGS="-L/usr/local/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/zlib/lib"

Unfortunately, now I get new although different errors:

clang: error: no such file or directory: '.libs/version.o'
clang: error: no such file or directory: '.libs/util.o'
clang: error: no such file or directory: '.libs/regexp.o'
clang: error: no such file or directory: '.libs/traces.o'
clang: error: no such file or directory: '.libs/language.o'
clang: error: no such file or directory: '.libs/configfile.o'
make[2]: *** [libfreeling.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Please ignore my previous post. I think I made a mistake reverting in git. The following is as far as I get now, in case you may help. Thanks again.

In file included from corrector/dicc2phon.cc:50:
../../src/include/freeling/morfo/util.h:159:20: warning: 'tmpnam' is deprecated:
This function is provided for compatibility reasons only. Due to security
concerns inherent in the design of tmpnam(3), it is highly recommended that
you use mkstemp(3) instead. [-Wdeprecated-declarations]
err_type err = NEW_TMPNAME(tempfile,L_tmpnam+1);
^
../../src/include/freeling/morfo/util.h:58:29: note: expanded from macro
'NEW_TMPNAME'
#define NEW_TMPNAME(buf,sz) tmpnam(buf)
^
/usr/include/stdio.h:276:7: note: 'tmpnam' has been explicitly marked deprecated
here
char *tmpnam(char *);
^
1 warning generated.
mv -f corrector/.deps/dicc2phon-dicc2phon.Tpo corrector/.deps/dicc2phon-dicc2phon.Po
/bin/sh ../../libtool --tag=CXX --mode=link g++ -I/usr/local/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/zlib/include -Wall -fPIC -std=gnu++0x -Wall -fPIC -L/usr/local/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/zlib/lib -L../../src/libfreeling -L/usr/local/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/zlib/lib -o dicc2phon corrector/dicc2phon-dicc2phon.o -lfreeling -lboost_regex"-mt" -lboost_locale"-mt" -lboost_thread"-mt" -lboost_system"-mt" -lz
libtool: link: g++ -I/usr/local/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/zlib/include -Wall -fPIC -std=gnu++0x -Wall -fPIC -o .libs/dicc2phon corrector/dicc2phon-dicc2phon.o -Wl,-bind_at_load -L/usr/local/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/zlib/lib -L../../src/libfreeling /Users/jmm/Documents/Corpus_software/FreeLing/src/libfreeling/.libs/libfreeling.dylib -L../../src/libtreeler -L../../src/libfoma /Users/jmm/Documents/Corpus_software/FreeLing/src/libtreeler/.libs/libtreeler.dylib /Users/jmm/Documents/Corpus_software/FreeLing/src/libfoma/.libs/libfoma.dylib -lboost_regex-mt -lboost_locale-mt -lboost_thread-mt -lboost_system-mt -lz
make[2]: Nothing to be done for `all-am'.
Making all in data
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all-am'.