Xonotic Forums

Full Version: linux compile/link error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
I'm getting this from
$ ./all compile -r
(or "SDL_CONFIG=sdl2-config ./all compile -r")
Code:
......... similar errors omit ........
/usr/bin/ld: ../../../../misc/builddeps/linux64/gmp/lib/libgmp.a(bdiv_q.o): relocation R_X86_64_32S against symbol `__gmp_binvert_limb_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../misc/builddeps/linux64/gmp/lib/libgmp.a(redc_2.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../misc/builddeps/linux64/gmp/lib/libgmp.a(redc_n.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../misc/builddeps/linux64/gmp/lib/libgmp.a(randdef.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../misc/builddeps/linux64/gmp/lib/libgmp.a(mu_bdiv_q.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../misc/builddeps/linux64/d0_blind_id/lib/libd0_rijndael.a(libd0_rijndael_la-d0_rijndael.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [makefile.inc:524: darkplaces-dedicated] Error 1
make[2]: Leaving directory '/home/me/xonotic/work/xonotic/xonotic-official/darkplaces/build-obj/release/darkplaces-dedicated'
make[1]: *** [makefile.inc:455: bin-release] Error 2
make[1]: Leaving directory '/home/me/xonotic/work/xonotic/xonotic-official/darkplaces'
make: *** [makefile.inc:391: sv-release] Error 2
Ideas?
Known issue. Try `./all clean && ./all compile -r -0`
That did it! Thanks!