1
General / SFML fails to link when building on 64-bit Ubuntu 17.10
« on: September 12, 2017, 07:59:25 pm »
"set(CMAKE_POSITION_INDEPENDENT_CODE ON)" for SFML doesn't appear to make any difference:
/usr/bin/ld:` /usr/local/lib/libfreetype.a(ftbase.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftbitmap.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftglyph.c.o): relocation R_X86_64_32 against symbol `ft_outline_glyph_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftinit.c.o): relocation R_X86_64_32 against symbol `autofit_module_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftstroke.c.o): relocation R_X86_64_32S against symbol `ft_outline_glyph_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftsystem.c.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: /usr/local/lib/libfreetype.a(bdf.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(cff.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(type1cid.c.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: /usr/local/lib/libfreetype.a(pcf.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(pfr.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(psaux.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(pshinter.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(psnames.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(raster.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(sfnt.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(smooth.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(truetype.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(type1.c.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: /usr/local/lib/libfreetype.a(type42.c.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: /usr/local/lib/libfreetype.a(winfnt.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(autofit.c.o): relocation R_X86_64_32S against symbol `af_script_classes' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftgzip.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftlzw.c.o): relocation R_X86_64_32S against `.text' 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
src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/build.make:860: recipe for target 'lib/libsfml-graphics-d.so.2.4.2' failed
make[2]: *** [lib/libsfml-graphics-d.so.2.4.2] Error 1
/usr/bin/ld:` /usr/local/lib/libfreetype.a(ftbase.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftbitmap.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftglyph.c.o): relocation R_X86_64_32 against symbol `ft_outline_glyph_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftinit.c.o): relocation R_X86_64_32 against symbol `autofit_module_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftstroke.c.o): relocation R_X86_64_32S against symbol `ft_outline_glyph_class' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftsystem.c.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: /usr/local/lib/libfreetype.a(bdf.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(cff.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(type1cid.c.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: /usr/local/lib/libfreetype.a(pcf.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(pfr.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(psaux.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(pshinter.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(psnames.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(raster.c.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(sfnt.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(smooth.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(truetype.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(type1.c.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: /usr/local/lib/libfreetype.a(type42.c.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: /usr/local/lib/libfreetype.a(winfnt.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(autofit.c.o): relocation R_X86_64_32S against symbol `af_script_classes' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftgzip.c.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfreetype.a(ftlzw.c.o): relocation R_X86_64_32S against `.text' 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
src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/build.make:860: recipe for target 'lib/libsfml-graphics-d.so.2.4.2' failed
make[2]: *** [lib/libsfml-graphics-d.so.2.4.2] Error 1