Skip to content

Instantly share code, notes, and snippets.

@sonnens
Created October 29, 2014 03:33
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 sonnens/79beb8af944ca11c64bc to your computer and use it in GitHub Desktop.
Save sonnens/79beb8af944ca11c64bc to your computer and use it in GitHub Desktop.
/bin/bash ./libtool --tag=CXX --mode=link g++ -DLEVELDB_PLATFORM_POSIX -DSNAPPY -fno-builtin-memcmp -fno-builtin-memcmp -I/tmp/snappy.influxdb.arm -fpic -mfloat-abi=hard -L/tmp/snappy.influxdb.arm/.libs -o db_bench db/db_bench.o util/testutil.o libhyperleveldb.la -lpthread -lsnappy
libtool: link: g++ -DLEVELDB_PLATFORM_POSIX -DSNAPPY -fno-builtin-memcmp -fno-builtin-memcmp -I/tmp/snappy.influxdb.arm -fpic -mfloat-abi=hard -o db_bench db/db_bench.o util/testutil.o -L/tmp/snappy.influxdb.arm/.libs ./.libs/libhyperleveldb.a -lpthread /tmp/snappy.influxdb.arm/.libs/libsnappy.a
./.libs/libhyperleveldb.a(db_impl.o): In function `hyperleveldb::DBImpl::SequenceWriteBegin(hyperleveldb::DBImpl::Writer*, hyperleveldb::WriteBatch*)':
db_impl.cc:(.text+0x8480): undefined reference to `__sync_add_and_fetch_8'
./.libs/libhyperleveldb.a(db_impl.o): In function `hyperleveldb::DBImpl::LiveBackup(hyperleveldb::Slice const&)':
db_impl.cc:(.text+0x909c): undefined reference to `__sync_add_and_fetch_8'
./.libs/libhyperleveldb.a(env_posix.o): In function `hyperleveldb::(anonymous namespace)::PosixMmapFile::WriteAt(unsigned long long, hyperleveldb::Slice const&)':
env_posix.cc:(.text+0x1220): undefined reference to `__sync_add_and_fetch_8'
env_posix.cc:(.text+0x12e4): undefined reference to `__sync_val_compare_and_swap_8'
./.libs/libhyperleveldb.a(env_posix.o): In function `hyperleveldb::(anonymous namespace)::PosixMmapFile::Append(hyperleveldb::Slice const&)':
env_posix.cc:(.text+0x1388): undefined reference to `__sync_val_compare_and_swap_8'
collect2: ld returned 1 exit status
Makefile:799: recipe for target 'db_bench' failed
make[2]: *** [db_bench] Error 1
Makefile:571: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/tmp/hyperleveldb.influxdb.arm'
Makefile:198: recipe for target '/tmp/hyperleveldb.influxdb.arm/.libs/libhyperleveldb.a' failed
make: *** [/tmp/hyperleveldb.influxdb.arm/.libs/libhyperleveldb.a] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment