Skip to content

Instantly share code, notes, and snippets.

@fifilyu
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fifilyu/9ef059a9a17811cc54d6 to your computer and use it in GitHub Desktop.
Save fifilyu/9ef059a9a17811cc54d6 to your computer and use it in GitHub Desktop.
[fifilyu@archlinux folly]$ ./configure --prefix=/usr/local/folly
...
checking for boostlib >= 1.51.0... yes
checking whether the Boost::Context library is available... no
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
...
configure:17431: checking whether the Boost::Context library is available
configure:17455: g++ -c -std=gnu++0x -g -O2 -I/usr/include conftest.cpp >&5
conftest.cpp: In function 'int main()':
conftest.cpp:32:71: error: invalid conversion from 'boost::context::fcontext_t {aka void*}' to 'void**' [-fpermissive]
boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);
...
configure:17455: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "folly"
| #define PACKAGE_TARNAME "folly"
| #define PACKAGE_VERSION "38.0"
| #define PACKAGE_STRING "folly 38.0"
| #define PACKAGE_BUGREPORT "folly@fb.com"
| #define PACKAGE_URL ""
| #define PACKAGE "folly"
| #define VERSION "38.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_STDCXX_0X /**/
| #define HAVE_LIBGLOG 1
| #define HAVE_LIBGFLAGS 1
| #define HAVE_LIBSSL 1
| #define HAVE_BOOST /**/
| /* end confdefs.h. */
| #include <boost/context/all.hpp>
| int
| main ()
| {
| boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);
| ;
| return 0;
| }
configure:17470: result: no
...
[fifilyu@archlinux folly]$ make check
Making check in .
make[1]: Entering directory '/home/fifilyu/workspace/folly/folly'
make[1]: Leaving directory '/home/fifilyu/workspace/folly/folly'
Making check in test
make[1]: Entering directory '/home/fifilyu/workspace/folly/folly/test'
Making check in .
make[2]: Entering directory '/home/fifilyu/workspace/folly/folly/test'
make libgtestmain.la libgtest.la benchmark_test concurrent_skiplist_benchmark sorted_vector_types_test foreach_test hash_test timeout_queue_test conv_test range_test bits_test bit_iterator_test spin_lock_test small_locks_test packed_sync_ptr_test small_vector_test discriminated_ptr_test cpuid_test fbstring_test_using_jemalloc thread_cached_int_test thread_local_test fbvector_test dynamic_test json_test scope_guard_test endian_test rw_spinlock_test synchronized_test concurrent_skiplist_test histogram_test group_varint_test map_util_test string_test producer_consumer_queue_test atomic_hash_array_test atomic_hash_map_test format_test fingerprint_test portability_test spooky_hash_v1_test spooky_hash_v2_test
make[3]: Entering directory '/home/fifilyu/workspace/folly/folly/test'
make[3]: 'libgtestmain.la' is up to date.
make[3]: 'libgtest.la' is up to date.
/bin/sh ../libtool --tag=CXX --mode=link g++ -std=gnu++0x -g -O2 -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -o benchmark_test BenchmarkTest.o libgtestmain.la ../libfollybenchmark.la ../libfolly.la -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lgflags -lglog
libtool: link: g++ -std=gnu++0x -g -O2 -o .libs/benchmark_test BenchmarkTest.o ./.libs/libgtestmain.a ../.libs/libfollybenchmark.so /home/fifilyu/workspace/folly/folly/.libs/libfolly.so ../.libs/libfolly.so -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lgflags -lglog -Wl,-rpath -Wl,/usr/local/folly/lib
/home/fifilyu/workspace/folly/folly/.libs/libfolly.so: undefined reference to `jump_fcontext'
/home/fifilyu/workspace/folly/folly/.libs/libfolly.so: undefined reference to `make_fcontext'
collect2: error: ld returned 1 exit status
Makefile:1024: recipe for target 'benchmark_test' failed
make[3]: *** [benchmark_test] Error 1
make[3]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'
Makefile:1868: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'
Makefile:1305: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'
Makefile:1448: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
...
BOOST_CONTEXT_LIB =
BOOST_CPPFLAGS = -pthread -I/usr/include
BOOST_FILESYSTEM_LIB = -lboost_filesystem
BOOST_LDFLAGS = -L/usr/lib64
BOOST_REGEX_LIB = -lboost_regex
BOOST_SYSTEM_LIB = -lboost_system
BOOST_THREAD_LIB = -lboost_thread
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -std=gnu++0x -g -O2
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DSYMUTIL =
DUMPBIN =
ECHO_C =
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment