Closed vegeta03 closed 9 years ago
make check
Making check in src
make[1]: Entering directory /home/vegeta/NaturalLI/src' make check-recursive make[2]: Entering directory
/home/vegeta/NaturalLI/src'
Making check in fnv
make[3]: Entering directory /home/vegeta/NaturalLI/src/fnv' make check-am make[4]: Entering directory
/home/vegeta/NaturalLI/src/fnv'
make[4]: Nothing to be done for check-am'. make[4]: Leaving directory
/home/vegeta/NaturalLI/src/fnv'
make[3]: Leaving directory /home/vegeta/NaturalLI/src/fnv' make[3]: Entering directory
/home/vegeta/NaturalLI/src'
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Bloom.o -MD -MP -MF .deps/naturalli_server-Bloom.Tpo -c -o naturalli_server-Bloom.o test -f 'Bloom.cc' || echo './'
Bloom.cc
mv -f .deps/naturalli_server-Bloom.Tpo .deps/naturalli_server-Bloom.Po
/usr//bin/protoc -I=. --cpp_out=. Messages.proto
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Messages.pb.o -MD -MP -MF .deps/naturalli_server-Messages.pb.Tpo -c -o naturalli_server-Messages.pb.o test -f 'Messages.pb.cc' || echo './'
Messages.pb.cc
mv -f .deps/naturalli_server-Messages.pb.Tpo .deps/naturalli_server-Messages.pb.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Trie.o -MD -MP -MF .deps/naturalli_server-Trie.Tpo -c -o naturalli_server-Trie.o test -f 'Trie.cc' || echo './'
Trie.cc
mv -f .deps/naturalli_server-Trie.Tpo .deps/naturalli_server-Trie.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-FactDB.o -MD -MP -MF .deps/naturalli_server-FactDB.Tpo -c -o naturalli_server-FactDB.o test -f 'FactDB.cc' || echo './'
FactDB.cc
mv -f .deps/naturalli_server-FactDB.Tpo .deps/naturalli_server-FactDB.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Postgres.o -MD -MP -MF .deps/naturalli_server-Postgres.Tpo -c -o naturalli_server-Postgres.o test -f 'Postgres.cc' || echo './'
Postgres.cc
mv -f .deps/naturalli_server-Postgres.Tpo .deps/naturalli_server-Postgres.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Utils.o -MD -MP -MF .deps/naturalli_server-Utils.Tpo -c -o naturalli_server-Utils.o test -f 'Utils.cc' || echo './'
Utils.cc
mv -f .deps/naturalli_server-Utils.Tpo .deps/naturalli_server-Utils.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Graph.o -MD -MP -MF .deps/naturalli_server-Graph.Tpo -c -o naturalli_server-Graph.o test -f 'Graph.cc' || echo './'
Graph.cc
mv -f .deps/naturalli_server-Graph.Tpo .deps/naturalli_server-Graph.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-InferenceServer.o -MD -MP -MF .deps/naturalli_server-InferenceServer.Tpo -c -o naturalli_server-InferenceServer.o test -f 'InferenceServer.cc' || echo './'
InferenceServer.cc
mv -f .deps/naturalli_server-InferenceServer.Tpo .deps/naturalli_server-InferenceServer.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Search.o -MD -MP -MF .deps/naturalli_server-Search.Tpo -c -o naturalli_server-Search.o test -f 'Search.cc' || echo './'
Search.cc
mv -f .deps/naturalli_server-Search.Tpo .deps/naturalli_server-Search.Po
/usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -MT naturalli_server-Map.o -MD -MP -MF .deps/naturalli_server-Map.Tpo -c -o naturalli_server-Map.o test -f 'Map.cc' || echo './'
Map.cc
mv -f .deps/naturalli_server-Map.Tpo .deps/naturalli_server-Map.Po
/bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++ -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -o naturalli_server naturalli_server-Bloom.o naturalli_server-Messages.pb.o naturalli_server-Trie.o naturalli_server-FactDB.o naturalli_server-Postgres.o naturalli_server-Utils.o naturalli_server-Graph.o naturalli_server-InferenceServer.o naturalli_server-Search.o naturalli_server-Map.o -L/usr/lib/x86_64-linux-gnu -lpq -L/usr//lib -lprotobuf -Lfnv -lfnv32 -lfnv64 -ltcmalloc
libtool: link: /usr/bin/g++ -std=c++0x -pthread -I/usr/include/postgresql -I/usr//include -O0 -ggdb -o naturalli_server naturalli_server-Bloom.o naturalli_server-Messages.pb.o naturalli_server-Trie.o naturalli_server-FactDB.o naturalli_server-Postgres.o naturalli_server-Utils.o naturalli_server-Graph.o naturalli_server-InferenceServer.o naturalli_server-Search.o naturalli_server-Map.o -L/usr/lib/x86_64-linux-gnu -lpq -L/usr//lib -lprotobuf -Lfnv /home/vegeta/NaturalLI/src/fnv/.libs/libfnv32.a /home/vegeta/NaturalLI/src/fnv/.libs/libfnv64.a -ltcmalloc -pthread
naturalli_server-Messages.pb.o: In function bool google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<float, (google::protobuf::internal::WireFormatLite::FieldType)2>(google::protobuf::io::CodedInputStream*, google::protobuf::RepeatedField<float>*)': /usr/include/google/protobuf/wire_format_lite_inl.h:328: undefined reference to
google::protobuf::io::CodedInputStream::BytesUntilLimit()'
collect2: error: ld returned 1 exit status
make[3]: * [naturalli_server] Error 1
make[3]: Leaving directory /home/vegeta/NaturalLI/src' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory
/home/vegeta/NaturalLI/src'
make[1]: *\ [check] Error 2
make[1]: Leaving directory `/home/vegeta/NaturalLI/src'
make: * [check-recursive] Error 1
please help fix this error..
Is this error because of this header files not loaded, and how to fix it :
Some of these are printing no..
checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking algorithm usability... no checking algorithm presence... no checking for algorithm... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking cmath usability... no checking cmath presence... no checking for cmath... no checking cstdio usability... no checking cstdio presence... no checking for cstdio... no checking cstdlib usability... no checking cstdlib presence... no checking for cstdlib... no checking cstring usability... no checking cstring presence... no checking for cstring... no checking ctime usability... no checking ctime presence... no checking for ctime... no checking exception usability... no checking exception presence... no checking for exception... no checking map usability... no checking map presence... no checking for map... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking queue usability... no checking queue presence... no checking for queue... no checking set usability... no checking set presence... no checking for set... no checking sstream usability... no checking sstream presence... no checking for sstream... no checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking string usability... no checking string presence... no checking for string... no checking sys/errno.h usability... yes checking sys/errno.h presence... yes checking for sys/errno.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/types.h... (cached) yes checking vector usability... no checking vector presence... no checking for vector... no
In config.log :
conftest.c:19:21: fatal error: algorithm: No such file or directory
^
compilation terminated. conftest.c:54:17: fatal error: cmath: No such file or directory
^
compilation terminated. configure:3673: $? = 1 configure: failed program was: | /* confdefs.h */
i saw this solution online, that it is the problem of link to library.. and to add -lm on after C files on the command line. If this is the solution, where should i add -lm and how Is it the src/Makefile.am
please help...
My guess is you're using some very old or misconfigured version of g++. What version are you using? Particularly worrisome is that it can't find
just like you said i configured the conf with CXXFLAGS="-O0 -ggdb" and when "make check" performed the above error occurs.
./configure --with-protoc=/usr/ \