21.12.2013 21:11, Mark Morgan Lloyd пишет:
I know that this is not a supported combination, but I've just been trying to 
build trunk Lazarus
(r43576) with trunk FPC (r26258) to see if I can work around a couple of 
recently-fixed issues. FPC
trunk builds clean, and Lazarus (default configuration) builds with FPC 2.6.2.

On x86-Linux (Debian "Squeeze"), I notice a dependency on cairo-gobject, which 
only appears to have
been added to typical distreaux recently. I presume that this is more of an FPC 
issue.

On SPARC-Linux (Debian "Lenny"), I get this:

..
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':
/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
..
/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'
..

Does anybody have any thoughts on this, or suggestions as to how I can get more 
useful debugging info?

Yes, that's codegeneration issue. 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

Feel free to report a bug, so it won't be forgotten.

Regards,
Sergei

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to