Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-12

Building trunk Lazarus with trunk FPC

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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?

I appreciate that neither of these OSes are particularly fresh, but I'd comment that Lenny in particular is a bit of a "sweet spot" as far as non-x86 platforms go: SPARC, some PPC and some ARM (and possibly other systems which I don't have here) suffer from fairly severe "bit rot" on later versions.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] make[2]: Entering directory `/usr/local/share/lazarus-trunk/ide' /usr/local/bin/ppcsparc -gl -Sci -dlclnogui -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/rtl -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/paszlib -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/fcl-process -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/hash -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/fpmkunit -Fu/usr/local/lib/fpc/2.7.1/units/sparc-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/sparc-linux/nogui -Fl/usr/lib/gcc/sparc-linux-gnu/4.3.2 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -Fu../packager/units/sparc-linux -Fu../components/codetools/units/sparc-linux -Fu../components/lazutils/lib/sparc-linux -Fu../lcl/units/sparc-linux -Fu../lcl/units/sparc-linux/nogui -Fu../components/ideintf/units/sparc-linux/nogui -Fu../components/synedit/units/sparc-linux/nogui -Fu../components/lazcontrols/lib/sparc-linux/nogui -Fu../units/sparc-linux/nogui -dsparc lazbuild.lpr

Reply by email

Sergei Gorelkin
to Mark Morgan Lloyd

21.12.2013 21:11, Mark Morgan Lloyd ?????:

Show quoted text 35 lines
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

Reply by email

Marco van de Voort
to Mark Morgan Lloyd: I know that this is not a supported combination, but I've just been trying to build trunk…
Mark Morgan Lloyd wrote
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.

That's odd, that should have been fixed in r26213. Only if you use cairogobject there should be that link.

Reply by email

Mark Morgan Lloyd
to Marco van de Voort
Marco van de Voort wrote 8 lines
On Sat, Dec 21, 2013 at 05:11:29PM +0000, Mark Morgan Lloyd wrote: > 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. That's odd, that should have been fixed in r26213. Only if you use cairogobject there should be that link.

Just checked with Lazarus r43583 and FPC trunk rr26269 and still get

Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lcairo-gobject
lazarus.pp(142,1) Error: Error while linking

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd: I know that this is not a supported combination, but I've just been trying to build trunk…
Mark Morgan Lloyd wrote 21 lines
> 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 SPARC-Linux (Debian "Lenny"), I get this: > I appreciate that neither of these OSes are particularly fresh, but I'd > comment that Lenny in particular is a bit of a "sweet spot" as far as > non-x86 platforms go: SPARC, some PPC and some ARM (and possibly other > systems which I don't have here) suffer from fairly severe "bit rot" on > later versions. 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

Raised as http://bugs.freepascal.org/view.php?id=25455

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 24 lines
Mark Morgan Lloyd wrote: >> 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 SPARC-Linux (Debian "Lenny"), I get this: >> I appreciate that neither of these OSes are particularly fresh, but >> I'd comment that Lenny in particular is a bit of a "sweet spot" as >> far as non-x86 platforms go: SPARC, some PPC and some ARM (and >> possibly other systems which I don't have here) suffer from fairly >> severe "bit rot" on later versions. > 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 Raised as http://bugs.freepascal.org/view.php?id=25455

Thanks for the fix Sergei, looks good.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd: Just checked with Lazarus r43583 and FPC trunk rr26269 and still get Linking ../lazarus…
Mark Morgan Lloyd wrote 17 lines
Marco van de Voort wrote: > On Sat, Dec 21, 2013 at 05:11:29PM +0000, Mark Morgan Lloyd wrote: >> 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. > > That's odd, that should have been fixed in r26213. Only if you use > cairogobject there should be that link. Just checked with Lazarus r43583 and FPC trunk rr26269 and still get Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lcairo-gobject lazarus.pp(142,1) Error: Error while linking

Now reported as http://bugs.freepascal.org/view.php?id=25460

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email