On SPARC Linux, trunk FPC fails to build trunk Lazarus
Original Reporter info from Mantis: MarkMLl @MarkMLl
-
Reporter name: Mark Morgan Lloyd
Original Reporter info from Mantis: MarkMLl @MarkMLl
- Reporter name: Mark Morgan Lloyd
Description:
Code generation issue in FPC trunk, Sergei says
SPARC code generator needs to override g_external_wrapper method
and emit something more sophisticated than a simple branch (which
is limited to 8 MB in either direction).The stubs that cause a
error were not generated by FPC 2.6.2. They were introduced to
fix http://bugs.freepascal.org/view.php?id=24536
Steps to reproduce:
Using trunk FPC (2.7.1 r26273) an attempt to build Lazarus (trunk, r43586) using default parameters results in failure as below.
Additional information:
..
Assembling lazbuild
Compiling resource ../units/sparc-linux/nogui/lazbuild.or
Linking ../lazbuild
/usr/local/lib/fpc/2.7.1/units/sparc-linux/fcl-res/resource.o: In function RESOURCE_$$_finalize':<br/> /usr/local/src/fpc/fpc-trunk/packages/./fcl-res/src/resource.pp:1151: relocation truncated to fit: R_SPARC_WDISP22 against symbol
FPC_ABSTRACTERROR' defined in .text.n_fpc_abstracterrorintern section in /usr/local/lib/fpc/2.7.1/units/sparc-linux/rtl/system.o
/usr/local/src/fpc/fpc-trunk/packages/./fcl-res/src/resource.pp:1151: relocation truncated to fit: R_SPARC_WDISP22 against symbol FPC_ABSTRACTERROR' defined in .text.n_fpc_abstracterrorintern section in /usr/local/lib/fpc/2.7.1/units/sparc-linux/rtl/system.o<br/> ..<br/> /usr/local/src/fpc/fpc-trunk/packages/./fcl-res/src/resource.pp:1151: relocation truncated to fit: R_SPARC_WDISP22 against symbol
FPC_ABSTRACTERROR' defined in .text.n_fpc_abstracterrorintern section in /usr/local/lib/fpc/2.7.1/units/sparc-linux/rtl/system.o
/usr/local/src/fpc/fpc-trunk/packages/./fcl-res/src/resource.pp:1151: additional relocation overflows omitted from the output
lazbuild.lpr(1629) Error: Error while linking
lazbuild.lpr(1629) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazbuild] Error 1
make[2]: Leaving directory `/usr/local/share/lazarus-trunk/ide'
..
Mantis conversion info:
- Mantis ID: 25455
- OS: Linux
- OS Build: Debian "Lenny"
- Platform: SPARC
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 26286 (#890d7575)