OpenBSD/x86-64 prt0 contains non-pic code
Original Reporter info from Mantis: leonardorame
-
Reporter name: Leonardo M. Ramé
Original Reporter info from Mantis: leonardorame
- Reporter name: Leonardo M. Ramé
Description:
Compiler used 2.6.2 installed via "pkg_add fpc", then updated svn repo and "gmake clean all":
...
/bin/rm -rf units
/bin/rm -f *.o *.ppu *.rst *.s *.a *.so *.ppl
/bin/rm -rf .sl
/bin/rm -f fpcmade. Package.fpc ./ppas.sh script.res link.res
/bin/rm -f *_ppas.sh
gmake[6]: Leaving directory /home/martin/devel/fpc/compiler/utils'<br/> /bin/rm -rf x86_64/units<br/> /bin/rm -f x86_64/*.o x86_64/*.ppu x86_64/*.rst x86_64/*.s x86_64/*.a x86_64/*.so x86_64/*.ppl<br/> /bin/rm -f x86_64/ppc386 x86_64/ppc68k x86_64/ppcx64 x86_64/ppcppc x86_64/ppcsparc x86_64/ppcppc64 x86_64/ppcarm x86_64/ppcmips x86_64/ppcmipsel x86_64/ppcjvm x86_64/ppc8086 x86_64/ppcx64<br/> /bin/rm -f ppcx64<br/> /bin/mkdir -p x86_64/units/x86_64-openbsd<br/> /home/martin/devel/fpc/compiler/ppc1 -FD -Ur -Xs -O2 -n -Fux86_64 -Fusystems -Fu/home/martin/devel/fpc/rtl/units/x86_64-openbsd -Fix86_64 -FE. -FUx86_64/units/x86_64-openbsd -Cg -dRELEASE -dx86_64 -dGDB -dBROWSERLOG -Fux86 -Sew pp.pas<br/> /usr/bin/ld: /home/martin/devel/fpc/rtl/units/x86_64-openbsd/prt0.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC<br/> /home/martin/devel/fpc/rtl/units/x86_64-openbsd/prt0.o: could not read symbols: Bad value<br/> pp.pas(247,1) Error: Error while linking<br/> pp.pas(247,1) Fatal: There were 1 errors compiling module, stopping<br/> Fatal: Compilation aborted<br/> gmake[5]: *** [ppcx64] Error 1<br/> gmake[5]: Leaving directory
/home/martin/devel/fpc/compiler'
gmake[4]: *** [next] Error 2
gmake[4]: Leaving directory /home/martin/devel/fpc/compiler'<br/> gmake[3]: *** [ppc2] Error 2<br/> gmake[3]: Leaving directory
/home/martin/devel/fpc/compiler'
gmake[2]: *** [cycle] Error 2
gmake[2]: Leaving directory /home/martin/devel/fpc/compiler'<br/> gmake[1]: *** [compiler_cycle] Error 2<br/> gmake[1]: Leaving directory
/home/martin/devel/fpc'
gmake: *** [build-stamp.x86_64-openbsd] Error 2
Mantis conversion info:
- Mantis ID: 25855
- OS: OpenBSD
- OS Build: 5.4
- Build: 27114
- Platform: x86_64
- Version: 2.7.1