Hello,
I’m trying to build couchbase server from source according https://github.com/couchbase/tlm/
I’m getting error:
[ 23%] Building C object couchstore/CMakeFiles/couch_dbdump.dir/src/quicksort.c.o
[ 23%] Building CXX object couchstore/CMakeFiles/couch_dbdump.dir/src/os.cc.o
[ 23%] Linking CXX executable couch_dbdump
/usr/bin/ld: …/tlm/deps/flatbuffers.exploded/lib/libflatbuffers.a(idl_parser.cpp.o): relocation R_X86_64_32S against `.rodata’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: …/tlm/deps/flatbuffers.exploded/lib/libflatbuffers.a(idl_gen_text.cpp.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: …/tlm/deps/flatbuffers.exploded/lib/libflatbuffers.a(util.cpp.o): relocation R_X86_64_32S against symbol `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4’ can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status