Recent

Author Topic: Compilation of Laz trunk fails with FPC fixes_3.0  (Read 7896 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Compilation of Laz trunk fails with FPC fixes_3.0
« on: February 22, 2017, 10:03:42 pm »
I just updated fpc to 3.0.2 (fixes.3.0). Downloaded laz trunk and try to compile:

Code: Text  [Select][+][-]
  1. ...
  2. Makefile:2727: warning: ignoring old recipe for target `.'
  3. c:/freepascal/binutils/i386-win32/rm.exe -f lazres.exe svn2revisioninc.exe updatepofiles.exe lrstolfm.exe lazres.o svn2revisioninc.o updatepofiles.o lrstolfm.o libplazres.a libpsvn2revisioninc.a libpupdatepofiles.a libplrstolfm.a libimplazres.a libimpsvn2revisioninc.a libimpupdatepofiles.a libimplrstolfm.a
  4. c:/freepascal/binutils/i386-win32/rm.exe -rf lazres.dbg svn2revisioninc.dbg updatepofiles.dbg lrstolfm.dbg
  5. c:/freepascal/binutils/i386-win32/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat script.res link.res
  6. c:/freepascal/binutils/i386-win32/rm.exe -f *.s *_ppas.bat
  7. make[1]: Leaving directory `c:/freepascal/laz/tools'
  8. make -C components/chmhelp/lhelp clean
  9. make[1]: Entering directory `c:/freepascal/laz/components/chmhelp/lhelp'
  10. c:/freepascal/binutils/i386-win32/rm.exe -f lhelp.exe lhelp.o libplhelp.a libimplhelp.a
  11. c:/freepascal/binutils/i386-win32/rm.exe -rf lhelp.dbg
  12. c:/freepascal/binutils/i386-win32/rm.exe -f
  13. c:/freepascal/binutils/i386-win32/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat script.res link.res
  14. c:/freepascal/binutils/i386-win32/rm.exe -f *.s *_ppas.bat
  15. make[1]: Leaving directory `c:/freepascal/laz/components/chmhelp/lhelp'
  16. make -C packager/registration
  17. make[1]: Entering directory `c:/freepascal/laz/packager/registration'
  18. c:/freepascal/binutils/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu
  19. c:/freepascal/fpc/3.0.2/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fuc:/pp/units/i386-win32/rtl -FE. -FU../units/i386-win32 -glw2 -di386 fcllaz.pas
  20. Hint: (11030) Start of reading config file c:\freepascal\fpc\3.0.2\bin\i386-win32\fpc.cfg
  21. Hint: (11031) End of reading config file c:\freepascal\fpc\3.0.2\bin\i386-win32\fpc.cfg
  22. Free Pascal Compiler version 3.0.3 [2017/02/22] for i386
  23. Copyright (c) 1993-2015 by Florian Klaempfl and others
  24. (1002) Target OS: Win32 for i386
  25. (3104) Compiling fcllaz.pas
  26. (10001) PPU Loading C:\freepascal\fpc\3.0.2\units\i386-win32\fcl-process\pipes.ppu
  27. (10011) PPU Source: pipes.pp not available
  28. (10011) PPU Source: pipes.inc not available
  29. (10028) Recompiling Pipes, checksum changed for windows {impl}
  30. Fatal: (10022) Can't find unit Pipes used by process
  31. Fatal: (1018) Compilation aborted
  32. make[1]: *** [fcllaz.ppu] Error 1
  33. make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
  34. make: *** [registration] Error 2

I used the following instructions: http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29

Any clues?

The same happens when rebuilding from inside Lazarus. While compiling FCL-Package is fine.

laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #1 on: February 22, 2017, 10:06:59 pm »
Make sure that you have up to date fpc.cfg configuration file.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #2 on: February 22, 2017, 10:10:15 pm »
Make sure that you have up to date fpc.cfg configuration file.
Was done as mentioned in instructions.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #3 on: February 22, 2017, 10:21:17 pm »
Make sure that you have up to date fpc.cfg configuration file.
Was done as mentioned in instructions.

Quote
Free Pascal Compiler version 3.0.3 [2017/02/22] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Win32 for i386
(3104) Compiling fcllaz.pas
(10001) PPU Loading C:\freepascal\fpc\3.0.2\units\i386-win32\fcl-process\pipes.ppu

Are you sure that fpc.cfg points to units built with 3.0.3 (fixes. 3.0.2 is released version) compiler?

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #4 on: February 22, 2017, 10:31:05 pm »
Are you sure that fpc.cfg points to units built with 3.0.3 (fixes. 3.0.2 is released version) compiler?
Yes. Was changed with latest commit to fixes_3_0 (r35434 on 13.2.17)
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #5 on: February 22, 2017, 10:32:04 pm »
now trying without latest commit....
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #6 on: February 22, 2017, 10:33:17 pm »
Are you building on top old installation of fixes or a new one - different target directory?

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #7 on: February 22, 2017, 10:39:23 pm »
Are you building on top old installation of fixes or a new one - different target directory?
Deleted fpc/3.0.1 and created fpc/3.0.2 and did a clean checkout of fixes_3_0 head.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #8 on: February 22, 2017, 10:44:06 pm »
Same error:
Code: Text  [Select][+][-]
  1. ...
  2. c:/freepascal/binutils/i386-win32/rm.exe -f *.s *_ppas.bat
  3. make[3]: Leaving directory `c:/freepascal/laz/components/macroscript'
  4. make[2]: Leaving directory `c:/freepascal/laz/components'
  5. make[1]: Leaving directory `c:/freepascal/laz'
  6. make -C tools clean
  7. make[1]: Entering directory `c:/freepascal/laz/tools'
  8. Makefile:2729: warning: overriding recipe for target `.'
  9. Makefile:2727: warning: ignoring old recipe for target `.'
  10. c:/freepascal/binutils/i386-win32/rm.exe -f lazres.exe svn2revisioninc.exe updatepofiles.exe lrstolfm.exe lazres.o svn2revisioninc.o updatepofiles.o lrstolfm.o libplazres.a libpsvn2revisioninc.a libpupdatepofiles.a libplrstolfm.a libimplazres.a libimpsvn2revisioninc.a libimpupdatepofiles.a libimplrstolfm.a
  11. c:/freepascal/binutils/i386-win32/rm.exe -rf lazres.dbg svn2revisioninc.dbg updatepofiles.dbg lrstolfm.dbg
  12. c:/freepascal/binutils/i386-win32/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat script.res link.res
  13. c:/freepascal/binutils/i386-win32/rm.exe -f *.s *_ppas.bat
  14. make[1]: Leaving directory `c:/freepascal/laz/tools'
  15. make -C components/chmhelp/lhelp clean
  16. make[1]: Entering directory `c:/freepascal/laz/components/chmhelp/lhelp'
  17. c:/freepascal/binutils/i386-win32/rm.exe -f lhelp.exe lhelp.o libplhelp.a libimplhelp.a
  18. c:/freepascal/binutils/i386-win32/rm.exe -rf lhelp.dbg
  19. c:/freepascal/binutils/i386-win32/rm.exe -f
  20. c:/freepascal/binutils/i386-win32/rm.exe -f fpcmade.i386-win32 Package.fpc ppas.bat script.res link.res
  21. c:/freepascal/binutils/i386-win32/rm.exe -f *.s *_ppas.bat
  22. make[1]: Leaving directory `c:/freepascal/laz/components/chmhelp/lhelp'
  23. make -C packager/registration
  24. make[1]: Entering directory `c:/freepascal/laz/packager/registration'
  25. c:/freepascal/binutils/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu
  26. c:/freepascal/fpc/3.0.2/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fuc:/pp/units/i386-win32/rtl -FE. -FU../units/i386-win32 -glw2 -di386 fcllaz.pas
  27. Hint: (11030) Start of reading config file c:\freepascal\fpc\3.0.2\bin\i386-win32\fpc.cfg
  28. Hint: (11031) End of reading config file c:\freepascal\fpc\3.0.2\bin\i386-win32\fpc.cfg
  29. Free Pascal Compiler version 3.0.1 [2017/02/22] for i386
  30. Copyright (c) 1993-2015 by Florian Klaempfl and others
  31. (1002) Target OS: Win32 for i386
  32. (3104) Compiling fcllaz.pas
  33. (10001) PPU Loading C:\freepascal\fpc\3.0.2\units\i386-win32\fcl-process\pipes.ppu
  34. (10011) PPU Source: pipes.pp not available
  35. (10011) PPU Source: pipes.inc not available
  36. (10028) Recompiling Pipes, checksum changed for windows {impl}
  37. Fatal: (10022) Can't find unit Pipes used by process
  38. Fatal: (1018) Compilation aborted
  39. make[1]: *** [fcllaz.ppu] Error 1
  40. make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
  41. make: *** [registration] Error 2
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #9 on: February 22, 2017, 11:59:03 pm »
Now i stuck at an other place (building Lazarus by Lazarus):

Code: Text  [Select][+][-]
  1. .
  2. .
  3. .
  4. Free Pascal Compiler version 3.0.3 [2017/02/22] for i386
  5. Copyright (c) 1993-2015 by Florian Klaempfl and others
  6. (1002) Target OS: Win32 for i386
  7. (3104) Compiling lazarus.pp
  8. (10001) PPU Loading C:\freepascal\laz\components\lazutils\lib\i386-win32\lazutf8.ppu
  9. (10011) PPU Source: lazutf8.pas not found
  10. (10011) PPU Source: lazutils_defines.inc not available
  11. (10011) PPU Source: winlazutf8.inc not available
  12. (10028) Recompiling LazUTF8, checksum changed for windows
  13. C:\freepascal\laz\ide\lazutf8.pas(78,12) Fatal: (10022) Can't find unit LazUTF8 used by Interfaces
  14. Fatal: (1018) Compilation aborted
  15. Error: C:\freepascal\fpc\3.0.2\bin\i386-win32\ppc386.exe returned an error exitcode
  16. make[2]: *** [lazarus.exe] Error 1
  17. make[2]: Leaving directory `C:/freepascal/laz/ide'
  18. make[1]: *** [idepkg] Error 2
  19. make[1]: Leaving directory `C:/freepascal/laz/ide'
  20. make: *** [idepkg] Error 2
  21. make: Leaving directory `C:/freepascal/laz'
  22.  

Why does LazUTF8 need to be recompiled? It has just been compiled within lazutils (see attached log.txt)
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #10 on: February 23, 2017, 12:00:58 am »
clean out old ppu and .o and retry.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #11 on: February 23, 2017, 12:07:51 am »
I've delete all *.ppu and all *.o in my laz directory.
The error remains.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #12 on: February 23, 2017, 12:10:34 am »
I had the same error a few days ago with fpcupdatedeluxe (see http://forum.lazarus.freepascal.org/index.php/topic,34645.315.html). No solution there.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #13 on: February 23, 2017, 12:20:13 am »
I don't know how this could influence? I just delete an old fpc installation in C:\pp and then it worked !?!? %)
This dir has not been in any PATH. So what was going on here?
« Last Edit: February 23, 2017, 12:25:11 am by Pascal »
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Compilation of Laz trunk fails with FPC fixes_3.0
« Reply #14 on: February 23, 2017, 12:31:19 am »
I don't know how this could influence? I just delete an old fpc installation in C:\pp and then it worked !?!? %)
This dir has not been in any PATH. So what was going on here?
Always make sure any remnants to other installations are gone.

There is no need for the a path environment variable pointing to a specific FPC directory in order for the buildsystem to 'pick' up on something that might disturb it. Any stray makefile, ppu, fpc.cfg or any of the other fpc supported environment variables could confuse the build-system.
« Last Edit: February 23, 2017, 01:01:45 am by molly »

 

TinyPortal © 2005-2018