libfte link failure.
Linking fails on my system due to missing -fPIC
.
g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro build/temp.linux-x86_64-2.7/fte/rank_unrank.o build/temp.linux-x86_64-2.7/fte/cDFA.o -Lthirdparty/re2/obj -Lthirdparty/gmp/bin -Lthirdparty/gmp/lib -L/usr/lib -lgmp -lpython2.7 -o build/lib.linux-x86_64-2.7/fte/cDFA.so thirdparty/re2/obj/libre2.a -Wl,-undefined,dynamic_lookup
/usr/bin/ld: build/temp.linux-x86_64-2.7/fte/rank_unrank.o: relocation R_X86_64_PC32 against symbol `_ZN3DFA21getNumWordsInLanguageEjj' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
Adding '-fPIC'
to extra_compile_args
in setup.py fixes it for me.