Sign in Join

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

Mailing lists / lazarus / 2013-02

Trunk: problems running lazbuild to crosscompile Win x64 LCL

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Hi,

fpcup tries to build an x64 LCL on Windows after having built the compiler, a bigide etc.

For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper primary config path to build lcl\interfaces\lcl.lpk

This used to work fine.

However, when trying it just now it failed, both with FPC trunk and 2.6.

I noticed there were some commits regarding package order etc. Should I modify my code?

Attached the relevant command and output. Compiling a 64 bit application (+LCL) from within the IDE works well.

Thanks,
Reinier
-------------- next part --------------
Info: Lazarus: running make distclean (OS_TARGET=win64/CPU_TARGET=x86_64): Info: TLazarusCrossInstaller: building module LCL... Info: Lazarus: compiling LCL for x86_64-win64 using lazbuild Info: ERROR running C:\development\lazarus_fpctrunk\lazbuild.exe "--pcp=c:\devel opment\lazarussettings_fpctrunk" "--cpu=x86_64" "--os=win64" "lcl\interfaces\lcl .lpk"
Info: Command returned non-zero ExitStatus: 2
Info: Command path set to: C:\development\fpctrunk\bin\i386-win32;C:\development \fpcbootstrap;;C:\development\lazarus_fpctrunk
Info: Command current directory: C:\development\lazarus_fpctrunk Info: Command output:

Info: SetPrimaryConfigPath NewValue="c:\development\lazarussettings_fpctrunk" -> "C:\development\lazarussettings_fpctrunk"
primary config path: C:\development\lazarussettings_fpctrunk\ TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Missing state file for LCL 1.0 .1: C:\development\lazarus_fpctrunk\lcl\units\x86_64-win64\win32\LCL.compiled [TExternalToolList.Run] CmdLine="C:\development\fpctrunk\bin\i386-win32\fpc.exe -B -MObjFPC -Scghi -O1 -Twin64 -Px86_64 -g -gl -vewnhi -FiC:\development\lazaru s_fpctrunk\lcl\interfaces\win32 -FuC:\development\lazarus_fpctrunk\lcl\interface s\win32 -FuC:\development\lazarus_fpctrunk\packager\units\x86_64-win64 -FuC:\dev elopment\lazarus_fpctrunk\components\lazutils\lib\x86_64-win64 -FuC:\development \lazarus_fpctrunk\lcl\units\x86_64-win64 -FuC:\development\lazarus_fpctrunk\lcl\ interfaces\ -FUC:\development\lazarus_fpctrunk\lcl\units\x86_64-win64\win32\ -l -vm5044 lcl.pas" WorkDir="C:\development\lazarus_fpctrunk\lcl\interfaces\" Hint: Start of reading config file C:\development\fpctrunk\bin\i386-win32\fpc.cf g
Hint: End of reading config file C:\development\fpctrunk\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2013/02/13] for x86_64 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win64 for x64
Compiling lcl.pas
Compiling .\win32\alllclintfunits.pas
Compiling .\win32\win32wsdialogs.pp
win32wsdialogs.pp(41,3) Fatal: Can't find unit LCLProc used by Win32WSDialogs TExternalToolList.Run Exception: C:\development\lazarus_fpctrunk\lcl\interfaces\ win32\win32wsdialogs.pp(41,3) Fatal: Can't find unit LCLProc used by Win32WSDial ogs
ERROR: tool reported error

Info: Lazarus: error compiling LCL for x86_64-win64 Info: Error running fpcup. Technical details: error executing sequence crosswin3 2-64; line: 7, param: LCL
Info: Error running fpcup. Technical details: error executing sequence DefaultWi n32; line: 9, param: crosswin32-64
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option and/or manually deleting *.ppu/*.a/*.o followed by svn up
- if that does not work: use the --uninstall option to remove all files (includi ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required. Info: 13-2-2013 14:36:43: fpcup finished.

Reply by email

Mattias Gaertner
to Reinier Olislagers

Reinier Olislagers hat am 13. Februar 2013 um
15:19 geschrieben:

Show quoted text 14 lines
Hi, fpcup tries to build an x64 LCL on Windows after having built the compiler, a bigide etc. For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper primary config path to build lcl\interfaces\lcl.lpk This used to work fine. However, when trying it just now it failed, both with FPC trunk and 2.6. I noticed there were some commits regarding package order etc. Should I modify my code?

Maybe you were just unlucky. There was a bug in a few revisions. Updating svn and doing a "make clean all" will fix that.

Attached the relevant command and output. Compiling a 64 bit application (+LCL) from within the IDE works well.

Mattias

Reply by email

Reinier Olislagers
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
Reinier Olislagers hat am 13. Februar 2013 um 15:19 geschrieben: > fpcup tries to build an x64 LCL on Windows after having built the > compiler, a bigide etc. > > For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper > primary config path to build lcl\interfaces\lcl.lpk

<snip>

> However, when trying it just now it failed, both with FPC trunk and 2.6.

<snip>

Maybe you were just unlucky. There was a bug in a few revisions. Updating svn and doing a "make clean all" will fix that.

Thanks.

Perhaps....
Doing
svn up .
make clean
make clean
make distclean
make distclean
del *.ppu /s
del *.a /s
del *.o /s
del *.po /s
svn revert . --recursive
and running fpcup again didn't help though...

Lazarus r40299, FPC trunk r23607

I'll probably give it another go tomorrow...

Reply by email

patspiper
to Reinier Olislagers
Reinier Olislagers wrote 32 lines
On 13-2-2013 16:22, Mattias Gaertner wrote: > Reinier Olislagers hat am 13. Februar 2013 um > 15:19 geschrieben: >> fpcup tries to build an x64 LCL on Windows after having built the >> compiler, a bigide etc. >> >> For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper >> primary config path to build lcl\interfaces\lcl.lpk <snip> >> However, when trying it just now it failed, both with FPC trunk and 2.6. <snip> > Maybe you were just unlucky. There was a bug in a few revisions. Updating svn > and doing a "make clean all" will fix that. Thanks. Perhaps.... Doing svn up . make clean make clean make distclean make distclean del *.ppu /s del *.a /s del *.o /s del *.po /s svn revert . --recursive and running fpcup again didn't help though... Lazarus r40299, FPC trunk r23607 I'll probably give it another go tomorrow...

Rebuilding the Lazarus IDE (no cross compiling) fails although make clean all succeeds:
reglazwebextra.pp(125,6) Fatal: Can not find unit
sqlstringspropertyeditordlg used by reglazwebextra. Check if package SQLDBLaz is in the dependencies.

Stephano

Reply by email

Mattias Gaertner
to Reinier Olislagers: <snip> <snip> Thanks. Perhaps.... Doing svn up . make clean make clean make distclean…
Show quoted text 31 lines
On 13-2-2013 16:22, Mattias Gaertner wrote: > Reinier Olislagers hat am 13. Februar 2013 um > 15:19 geschrieben: >> fpcup tries to build an x64 LCL on Windows after having built the >> compiler, a bigide etc. >> >> For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper >> primary config path to build lcl\interfaces\lcl.lpk <snip> >> However, when trying it just now it failed, both with FPC trunk and 2.6. <snip> > Maybe you were just unlucky. There was a bug in a few revisions. Updating svn > and doing a "make clean all" will fix that. Thanks. Perhaps.... Doing svn up . make clean make clean make distclean make distclean del *.ppu /s del *.a /s del *.o /s del *.po /s svn revert . --recursive and running fpcup again didn't help though... Lazarus r40299, FPC trunk r23607

It was fixed in 40292.

Please send me the whole output of lazbuild.

Mattias

Reply by email

Reinier Olislagers
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Wed, 13 Feb 2013 17:04:26 +0100 Reinier Olislagers wrote: > On 13-2-2013 16:22, Mattias Gaertner wrote: >> Reinier Olislagers hat am 13. Februar 2013 um >> 15:19 geschrieben: >>> fpcup tries to build an x64 LCL on Windows after having built the >>> compiler, a bigide etc. >>> >>> For that it uses lazbuild --cpu=x86_64 --os=win64 with the proper >>> primary config path to build lcl\interfaces\lcl.lpk > <snip> >>> However, when trying it just now it failed, both with FPC trunk and 2.6. > <snip> >> Maybe you were just unlucky. There was a bug in a few revisions. Updating svn >> and doing a "make clean all" will fix that. > > Thanks.

<snip>

Show quoted text 5 lines
> Lazarus r40299, FPC trunk r23607 It was fixed in 40292. Please send me the whole output of lazbuild.

Thanks Mattias, solved though:

Lazarus r40312 works for me today with both FPC trunk r23612 and 2.6.0.

Thanks,
Reinier

Reply by email