Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #11637

Closed
Open
Created Apr 28, 2014 by Yawning Angel@yawning

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking