Recent

Author Topic: SOLVED: FreeBSD 12 Lazarus build failure  (Read 1474 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1799
  • Former Delphi 1-7, 10.2 user
SOLVED: FreeBSD 12 Lazarus build failure
« on: October 31, 2021, 01:20:52 pm »
Lazarus 2.30 from today:

Quote
/usr/local/share/lazarus/ide/main.pp(421,35) Hint: (5024) Parameter "Sender" not used
/usr/local/share/lazarus/ide/main.pp(13907,3) Note: (6058) Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
/usr/local/share/lazarus/ide/lazarus.pp(155,7) Note: (6058) Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
/usr/local/share/lazarus/ide/lazarus.pp(161,3) Note: (6058) Call to subroutine "procedure FreeThenNil(var obj:<Formal type>);" marked as inline is not inlined
/usr/local/share/lazarus/ide/lazarus.pp(163,3) Note: (6058) Call to subroutine "function GetDebugLogger:TLazLogger;" marked as inline is not inlined
(9022) Compiling resource ../units/x86_64-freebsd/gtk2/lazarus.or
(9015) Linking ../lazarus
/usr/local/share/lazarus/ide/lazarus.pp(167,1) Error: (9013) Error while linking
/usr/local/share/lazarus/ide/lazarus.pp(167,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted

Notes:
- The default linker ld is in fact ld.bfd.
- Lazarus 2.0.12 builds and links successfully.
- The compiler is FPC 3.2.2

Any ideas?
« Last Edit: November 19, 2021, 11:33:48 am by trev »
Lazarus 2.3, FPC 3.3.1 macOS 12.1 x86_64 Xcode 13.2
Lazarus 2.3, FPC 3.3.1 macOS 12.1 aarch64 Xcode 13.2
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 amd64 VM

Alextp

  • Hero Member
  • *****
  • Posts: 1554
    • UVviewsoft
Re: FreeBSD 12 Lazarus build failure
« Reply #1 on: October 31, 2021, 01:26:38 pm »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1799
  • Former Delphi 1-7, 10.2 user
Re: FreeBSD 12 Lazarus build failure
« Reply #2 on: October 31, 2021, 01:37:32 pm »
I'd consider it Alexey, if it weren't for the fact that Lazarus 2.0.12 builds and links successfully with FPC 3.2.2 "as is".

For Lazarus 2.3.0 it successfully builds and links lazbuild, but then dies when linking the IDE.

Thanks for pointing out your patch though which looks like it might be useful to enable the building of FPC 3.3.1 - I'll give that a go when I get some spare time again.
Lazarus 2.3, FPC 3.3.1 macOS 12.1 x86_64 Xcode 13.2
Lazarus 2.3, FPC 3.3.1 macOS 12.1 aarch64 Xcode 13.2
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 amd64 VM

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1799
  • Former Delphi 1-7, 10.2 user
Re: SOLVED: FreeBSD 12 Lazarus build failure
« Reply #3 on: November 19, 2021, 11:40:01 am »
As of today it builds and links :-)

Quote
(9022) Compiling resource ../units/x86_64-freebsd/gtk2/lazarus.or
(9015) Linking ../lazarus
(1008) 298654 lines compiled, 56.2 sec
(1021) 41 warning(s) issued
(1022) 3201 hint(s) issued
(1023) 594 note(s) issued
[...]
(9022) Compiling resource ../units/x86_64-freebsd/gtk2/startlazarus.or
(9015) Linking ../startlazarus
(1008) 547 lines compiled, 2.2 sec
(1022) 3 hint(s) issued
« Last Edit: November 19, 2021, 11:41:50 am by trev »
Lazarus 2.3, FPC 3.3.1 macOS 12.1 x86_64 Xcode 13.2
Lazarus 2.3, FPC 3.3.1 macOS 12.1 aarch64 Xcode 13.2
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 amd64 VM

 

TinyPortal © 2005-2018