Recent

Author Topic: Can't build lazarus trunk  (Read 2810 times)

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Can't build lazarus trunk
« on: December 23, 2022, 08:28:39 pm »
Hi folks

Code: Pascal  [Select][+][-]
  1. leyba@DESKTOP-4H3TBSB c:\laz_qt\fpcsrc
  2. $ git log -1
  3. commit 28b4189a9a704b284e75ff7436d1cb808e569382 (HEAD -> main, origin/main, origin/HEAD)
  4. Author: florian <florian@freepascal.org>
  5. Date:   Fri Dec 23 18:16:52 2022 +0100
  6.  
  7.       * mess cleaned up
  8.  
  9. leyba@DESKTOP-4H3TBSB c:\laz_qt\lazarus
  10. $ git log -1
  11. commit 5719672f10190551b9af7dd7f1761aae1c280297 (HEAD -> main, origin/main, origin/HEAD)
  12. Author: Juha <juha@lazarus-ide.org>
  13. Date:   Fri Dec 23 15:24:13 2022 +0200
  14.  
  15.     Codetools: Fix SmartHint for generic specialized types. Issue #29860.

I get error
Code: Pascal  [Select][+][-]
  1. lcltype.pp(1136,36) Note: Values in enumeration types have to be ascending
  2. lcltype.pp(1430,36) Error: Identifier not found "LF_FULLFACESIZE"
  3. lcltype.pp(1430,51) Error: Illegal expression
  4. lcltype.pp(1431,32) Error: Identifier not found "LF_FACESIZE"
  5. lcltype.pp(1431,43) Error: Illegal expression
  6. lcltype.pp(3010,1) Fatal: There were 4 errors compiling module, stopping
  7. Fatal: Compilation aborted
  8. make[1]: *** [alllclunits.ppu] Error 1
  9. make[1]: Leaving directory `c:/laz_qt/lazarus/lcl'
  10. c:\laz_qt\fpc\bin\x86_64-win64\make: *** [lazbuild] Error 2

when I try to build current lazarus trunk.

Someone please check it
« Last Edit: December 23, 2022, 08:56:25 pm by zoltanleo »
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #1 on: December 23, 2022, 10:06:00 pm »
when I try to build current lazarus trunk.

Someone please check it

Alright, within the past 6 hours I've done a couple builds against the latest trunk, the latest just now.

FPC and Lazarus versions from git describe.

  • 3.3.1-12232-g30e0df384d main-2_3-3114-g5719672f10
  • 3.3.1-12235-g28b4189a9a main-2_3-3114-g5719672f10

Both builds completed fine, no failures.

Both are the same as the second version you are showing.

What build instructions are you following?

I'm using my own script from here:
https://github.com/bogen85/das-upgrade-fpc-lazarus-from-source/blob/main/upgrade-all.sh
https://github.com/bogen85/das-upgrade-fpc-lazarus-from-source/blob/main/lib/build-lazarus.sh

Specifically this, but this is run in the context of the upgrade all script:

Code: Text  [Select][+][-]
  1. echo '@@ Build Lazarus'
  2. (
  3.   set -x;
  4.   cd $SHARED_FPC_GIT_/lazarus-main;
  5.  
  6.   git describe
  7.  
  8.   make --silent cleanall;
  9.   export PATH=$SHARED_FPC_BIN_:$SHARED_FPC_BASE_:$PATH;
  10.   make --silent bigide 2>&1 |\
  11.   grep -Ev '(Linking |Start compiling package|warning: |Warning: |Hint: |Note: |Writing Resource String| not found)' |\
  12.   grep -Ev '(Free Pascal Compiler version |Copyright |\(s\) issued| lines compiled.|Target OS: )'
  13.  
  14.   git describe
  15.   true
  16. )
  17.  
« Last Edit: December 23, 2022, 10:08:11 pm by Bogen85 »

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #2 on: December 23, 2022, 10:12:53 pm »
Code: Text  [Select][+][-]
  1. (3104) Compiling ttkern.pas
  2. (3104) Compiling easylazfreetype.pas
  3. (3104) Compiling ttraster.pas
  4. (3104) Compiling ttprofile.pas
  5. (3104) Compiling lazfreetypefontcollection.pas
  6. (3104) Compiling lazfreetypefpimagedrawer.pas
  7. (3104) Compiling ttdebug.pas
  8. Compiling alllclunits.pp
  9. Compiling checklst.pas
  10. Compiling lcltype.pp # <<--- lcltype.pp compiled there
  11. Compiling lclintf.pas
  12. Compiling lclproc.pas
  13. Compiling lclstrconsts.pas
  14. Compiling lmessages.pp
  15. Compiling interfacebase.pp
  16. Compiling lclplatformdef.pas
  17. Compiling intfgraphics.pas
  18. Compiling lclversion.pas
  19. Compiling icnstypes.pas

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #3 on: December 23, 2022, 10:14:15 pm »
I guess the biggest difference is that I'm building on Linux and you are building on Windows.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Can't build lazarus trunk
« Reply #4 on: December 23, 2022, 10:31:25 pm »
I guess the biggest difference is that I'm building on Linux and you are building on Windows.
Hi Bogen85

This is quite possible, I didn't have time to check the assembly for Linux. But I tried to build lazarus in the console, and also I tried to build lazarus with fpcupdeluxe. I got the same errors.

I created a ticket in the bugtracker
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40063
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4650
  • I like bugs.
Re: Can't build lazarus trunk
« Reply #5 on: December 23, 2022, 10:36:13 pm »
I created a ticket in the bugtracker
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40063
Update to the latest FPC development version.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

bytebites

  • Hero Member
  • *****
  • Posts: 767
Re: Can't build lazarus trunk
« Reply #6 on: December 23, 2022, 10:58:52 pm »
Make clean ffirst

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Can't build lazarus trunk
« Reply #7 on: December 23, 2022, 11:29:53 pm »
@JuhaManninen
@bytebites

I rebuilt the compiler, re-downloaded lazarus to a new directory, and even did

Code: Pascal  [Select][+][-]
  1. $ make clean

The compilation failure for windows persists. For Linux (Debian 11) build succeeds
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4650
  • I like bugs.
Re: Can't build lazarus trunk
« Reply #8 on: December 24, 2022, 12:02:17 am »
I rebuilt the compiler, re-downloaded lazarus to a new directory, ...
Rebuilding the compiler is not enough. You must get the latest version from Gitlab's FPC main branch.
Another choice is to use the released FPC 3.2.2.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Can't build lazarus trunk
« Reply #9 on: December 24, 2022, 12:32:55 am »
Rebuilding the compiler is not enough. You must get the latest version from Gitlab's FPC main branch.
Another choice is to use the released FPC 3.2.2.
Maybe I don't understand something. I got the latest commit

Code: Pascal  [Select][+][-]
  1. 28b4189a9a704b284e75ff7436d1cb808e569382.

Isn't it the last?
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #10 on: December 24, 2022, 12:37:25 am »
Rebuilding the compiler is not enough. You must get the latest version from Gitlab's FPC main branch.
Another choice is to use the released FPC 3.2.2.
Maybe I don't understand something. I got the latest commit

Code: Pascal  [Select][+][-]
  1. 28b4189a9a704b284e75ff7436d1cb808e569382.

Isn't it the last?

Yes, per git describe what you are referring above is the latest on the FPC gitlab main branch.
3.3.1-12235-g28b4189a9a

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Can't build lazarus trunk
« Reply #11 on: December 24, 2022, 01:27:09 am »
Yes, per git describe what you are referring above is the latest on the FPC gitlab main branch.
3.3.1-12235-g28b4189a9a
So for windows I build lazarus using this compiler build
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #12 on: December 24, 2022, 02:21:59 am »
Yes, per git describe what you are referring above is the latest on the FPC gitlab main branch.
3.3.1-12235-g28b4189a9a
So for windows I build lazarus using this compiler build

yes.
28b4189a9a704b284e75ff7436d1cb808e569382 == 3.3.1-12235-g28b4189a9a

The latter, the output from git describe has an abbreviated/shortened git hash.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Can't build lazarus trunk
« Reply #13 on: December 24, 2022, 02:22:42 am »
I completely removed and re-downloaded the compiler source code. After building the compiler, I made a Lazarus build. This process was successful.

Obviously I made a mistake somewhere when I updated the compiler. I apologize to everyone for the false alarm. Thanks for the help.  :-[
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

Bogen85

  • Hero Member
  • *****
  • Posts: 703
Re: Can't build lazarus trunk
« Reply #14 on: December 24, 2022, 02:28:34 am »
I completely removed and re-downloaded the compiler source code. After building the compiler, I made a Lazarus build. This process was successful.

I actually ran into that a few times... (my scripts were just doing a git pull...)
So I finally just changed them to do fresh clones and that stopped happening.

Obviously I made a mistake somewhere when I updated the compiler. I apologize to everyone for the false alarm. Thanks for the help.  :-[

Not a problem!

 

TinyPortal © 2005-2018