Xonotic Forums
[SOLVED] linux compile/link error - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] linux compile/link error (/showthread.php?tid=7581)



linux compile/link error - BuddyFriendGuy - 11-26-2017

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?


RE: linux compile/link error - martin-t - 11-27-2017

Known issue. Try `./all clean && ./all compile -r -0`


RE: linux compile/link error - BuddyFriendGuy - 11-27-2017

That did it! Thanks!


RE: linux compile/link error - Lyberta - 11-27-2017

Wow, div didn't merge it yet. We're gonna celebrate a year of this bug!