Compilation error on latest code

146 views
Skip to first unread message

Robin Liu

unread,
Mar 13, 2016, 10:20:41 PM3/13/16
to Folly: the Facebook Open-source LibrarY
The version is :
git log
commit 1c15b5bb9efd09201a956885e863fc8815c67b87
Author: Giuseppe Ottaviano <o...@fb.com>
Date:   Sat Mar 12 16:12:44 2016 -0800

and the error on both Mac 10.11 of Ubuntu14.04 are the same:
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -g -O2 -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -lboost_chrono  -o range_test RangeTest.o libfollytestmain.la -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lglog -lgflags
libtool: link: g++ -std=gnu++0x -g -O2 -o .libs/range_test RangeTest.o  ./.libs/libfollytestmain.a /home/robin/fb/folly/folly/init/.libs/libfollyinit.so /home/robin/fb/folly/folly/experimental/symbolizer/.libs/libfollysymbolizer.so /home/robin/fb/folly/folly/.libs/libfolly.so -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -lboost_chrono -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lglog -lgflags
RangeTest.o: In function `createProtectedBuf(folly::Range<char const*>&, char**)':
/home/robin/fb/folly/folly/test/RangeTest.cpp:981: undefined reference to `folly::detail::aligned_malloc(unsigned long, unsigned long)'
RangeTest.o: In function `freeProtectedBuf(char*)':
/home/robin/fb/folly/folly/test/RangeTest.cpp:993: undefined reference to `folly::detail::aligned_free(void*)'
collect2: error: ld returned 1 exit status

Patryk Małek

unread,
Mar 23, 2016, 5:31:09 PM3/23/16
to Folly: the Facebook Open-source LibrarY
I am also receiving this error on 9895ee0. After checking out v0.57.0 this error goes away but I am getting the following on "make check"

make[3]: `spooky_hash_v1_test' is up to date.
make[3]: `spooky_hash_v2_test' is up to date.
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -g -O2 -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread  -o token_bucket_test TokenBucketTest.o libgtest.la ../libfolly.la ../libfollybenchmark.la -llzma -lz -liberty -levent -ldouble-conversion -lssl -lgflags -lglog 
libtool: link: g++ -std=gnu++0x -g -O2 -o .libs/token_bucket_test TokenBucketTest.o  ./.libs/libgtest.a -lboost_context -lboost_program_options -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread ../.libs/libfolly.so ../.libs/libfollybenchmark.so -llzma -lz -liberty -levent -ldouble-conversion -lssl -lgflags -lglog -Wl,-rpath -Wl,/home/USER/programming/c/folly/lib
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[3]: *** [token_bucket_test] Error 1
make[3]: Leaving directory `/home/USER/programming/git/folly/folly/test'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/USER/programming/git/folly/folly/test'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/USER/programming/git/folly/folly/test'
make: *** [check-recursive] Error 1
Reply all
Reply to author
Forward
Message has been deleted
0 new messages