Sign in Join

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

Mailing lists / fpc-pascal / 2011-07

FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

14 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Marcos Douglas

Hi,
I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3.

Before update, I ran 'make distclean'.

Console output:
[snip]
Start building package fcl-web for target i386-win32. Compiling src\base\custfcgi.pp
The installer encountered the following error:
External command "W:/md/dev/freepascal/compiler/2.5.1/compiler/ppc386.exe -Twin3 2 -FUunits\i386-win32 -FuW:\md\dev\freepascal\compiler\2.5.1\rtl\units\i386-win3 2 -FuW:\md\dev\freepascal\compiler\2.5.1\packages\fcl-base\units\i386-win32 -FuW :\md\dev\freepascal\compiler\2.5.1\packages\fcl-db\units\i386-win32 -FuW:\md\dev \freepascal\compiler\2.5.1\packages\fcl-xml\units\i386-win32 -FuW:\md\dev\freepa scal\compiler\2.5.1\packages\fcl-json\units\i386-win32 -FuW:\md\dev\freepascal\c ompiler\2.5.1\packages\fcl-net\units\i386-win32 -FuW:\md\dev\freepascal\compiler \2.5.1\packages\fcl-process\units\i386-win32 -FuW:\md\dev\freepascal\compiler\2. 5.1\packages\fastcgi\units\i386-win32 -FuW:\md\dev\freepascal\compiler\2.5.1\pac kages\httpd22\units\i386-win32 -Ur -Xs -O2 -n -FuW:/md/dev/freepascal/compiler/2 .5.1/rtl/units/i386-win32 -FuW:/md/dev/freepascal/compiler/2.5.1/packages/hash/u nits/i386-win32 -FuW:/md/dev/freepascal/compiler/2.5.1/packages/paszlib/units/i3 86-win32 -FuW:/md/dev/freepascal/compiler/2.5.1/packages/fcl-process/units/i386- win32 -FuW:/md/dev/freepascal/compiler/2.5.1/packages/fpmkunit/units/i386-win32 -FE. -FUunits/i386-win32 -di386 -dRELEASE -XX -CX src/base\custfcgi.pp" failed w ith exit code 1. Console output:
Target OS: Win32 for i386
Compiling src\base\custfcgi.pp
PPU Loading W:\md\dev\freepascal\compiler\2.5.1\packages\fastcgi\units\i386-win3 2\fastcgi.ppu
PPU Invalid Version 128
Fatal: Can't find unit fastcgi used by custfcgi
Fatal: Compilation aborted

make[3]: *** [smart] Error 1
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/packages/fcl-web '
make[2]: *** [fcl-web_smart] Error 2
make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/packages' make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make: *** [build-stamp.i386-win32] Error 2

W:\md\dev\freepascal\compiler\2.5.1>

Marcos Douglas

Reply by email

Marco van de Voort
to Marcos Douglas

In our previous episode, Marcos Douglas said:

Show quoted text 11 lines
I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3. Before update, I ran 'make distclean'. Compiling src\base\custfcgi.pp PPU Loading W:\md\dev\freepascal\compiler\2.5.1\packages\fastcgi\units\i386-win3 2\fastcgi.ppu PPU Invalid Version 128 Fatal: Can't find unit fastcgi used by custfcgi Fatal: Compilation aborted

I also had this, and this fixed it for me, and for Paul on IRC

1) manually delete the .ppu's in packages that have this problem ( I ran del /s *.ppu and *.o in packages/)

2) delete all old fpmake.exe (del /s fpmake.exe in packages/)

Reply by email

Marcos Douglas
to Marco van de Voort
Marco van de Voort wrote 19 lines
In our previous episode, Marcos Douglas said: > I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) > on WinXP-SP3. > > Before update, I ran 'make distclean'. > Compiling src\base\custfcgi.pp > PPU Loading W:\md\dev\freepascal\compiler\2.5.1\packages\fastcgi\units\i386-win3 > 2\fastcgi.ppu > PPU Invalid Version 128 > Fatal: Can't find unit fastcgi used by custfcgi > Fatal: Compilation aborted I also had this, and this fixed it for me, and for Paul on IRC 1) manually delete the .ppu's in packages that have this problem ( I ran del /s *.ppu  and *.o in packages/) 2) delete all old fpmake.exe  (del /s fpmake.exe in packages/)

Ok, thanks, worked!
But why this? In /branches/fixes_2_4 do not happens this error.

BTW, updates for fixes_2_4 was stopped?

Marcos Douglas

Reply by email

Marco van de Voort
to Marcos Douglas

In our previous episode, Marcos Douglas said:

Show quoted text 7 lines
> 1) manually delete the .ppu's in packages that have this problem ( I ran del > /s *.ppu ?and *.o in packages/) > > 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) Ok, thanks, worked! But why this?

In some packages in 2.5.1, fpmake is being used on an experimental basis, to root out problems by use in practice.

In /branches/fixes_2_4 do not happens this error.

These experimental changes were of course not merged back to the stable branch 2.4.0

At this moment it is not decided yet if these will go in 2.6.0

BTW, updates for fixes_2_4 was stopped?

2.4.x receives some updates from time to time. Mostly fixes in packages/

This is mostly done to have a fallback if something goes wrong with the start of the 2.6.x release series that is being planned for the fall.

If that goes reasonably well, there probably will be no more 2.4.x releases.

Merging is getting harder and harder in 2.4.x, so mostly only packages that are wholly merged can be merged.

Reply by email

Marcos Douglas
to Marco van de Voort
Marco van de Voort wrote 30 lines
In our previous episode, Marcos Douglas said: > > 1) manually delete the .ppu's in packages that have this problem ( I ran del > > /s *.ppu ?and *.o in packages/) > > > > 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) > > Ok, thanks, worked! > But why this? In some packages in 2.5.1, fpmake is being used on an experimental basis, to root out problems by use in practice. > In /branches/fixes_2_4 do not happens this error. These experimental changes were of course not merged back to the stable branch 2.4.0 At this moment it is not decided yet if these will go in 2.6.0 > BTW, updates for fixes_2_4 was stopped? 2.4.x receives some updates from time to time. Mostly fixes in packages/ This is mostly done to have a fallback if something goes wrong with the start of the 2.6.x release series that is being planned for the fall. If that goes reasonably well, there probably will be no more 2.4.x releases. Merging is getting harder and harder in 2.4.x, so mostly only packages that are wholly merged can be merged.

OK, thanks for the explanation.

Marcos Douglas

Reply by email

Marcos Douglas
to Marco van de Voort: In our previous episode, Marcos Douglas said: In some packages in 2.5.1, fpmake is being…
Marco van de Voort wrote 11 lines
In our previous episode, Marcos Douglas said: > > 1) manually delete the .ppu's in packages that have this problem ( I ran del > > /s *.ppu ?and *.o in packages/) > > > > 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) > > Ok, thanks, worked! > But why this? In some packages in 2.5.1, fpmake is being used on an experimental basis, to root out problems by use in practice.

Marco,

When the fpmake experimental will be fixed?
I think that is what is breaking my cross-compile, see:

[...]
make[2]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1
W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1/bin/i386-win32
make compiler_install FPC=W:/md/dev/freepascal/compiler/2.5.1/compiler/ppcrossx6 4.exe ZIPDESTDIR=W:/md/dev/freepascal/compiler/2.5.1 FPCMAKE=fpcmake make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' make -C compiler install
make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/compiler' make -C utils install
make[5]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/compiler/utils'

make[5]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/compiler/utils' echo ppcrossx64.exe
ppcrossx64.exe
W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1/bin/i386-win32
W:/md/dev/freepascal/binutils/2.5.1/i386-win32/cp.exe -fp ppcrossx64.exe W:\md\d ev\freepascal\compiler\2.5.1/bin/i386-win32/ppcrossx64.exe make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/compiler' make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make rtl_install FPC=W:/md/dev/freepascal/compiler/2.5.1/compiler/ppcrossx64.exe ZIPDESTDIR=W:/md/dev/freepascal/compiler/2.5.1 FPCMAKE=fpcmake make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' make -C rtl install
make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/rtl' make -C win64 all
make[5]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/rtl/win64' make[5]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/rtl/win64' fpcmake -p -Tx86_64-win64 Makefile.fpc
process_begin: CreateProcess((null), fpcmake -p -Tx86_64-win64 Makefile.fpc, ... ) failed.
make (e=2): The system can not find the file specified. make[4]: *** [fpc_install] Error 2
make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/rtl' make[3]: *** [rtl_install] Error 2
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make[2]: *** [installbase] Error 2
make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make[1]: *** [install] Error 2
make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make: *** [crossinstall] Error 2
W:\md\dev\freepascal\compiler\2.5.1>

Marcos Douglas

Reply by email

Florian Klämpfl
to Marcos Douglas
Marcos Douglas wrote 16 lines
On Fri, Jul 29, 2011 at 5:18 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >>> 1) manually delete the .ppu's in packages that have this problem ( I ran del >>> /s *.ppu ?and *.o in packages/) >>> >>> 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) >> >> Ok, thanks, worked! >> But why this? > > In some packages in 2.5.1, fpmake is being used on an experimental basis, to > root out problems by use in practice. Marco, When the fpmake experimental will be fixed?

fpmake is something different than fpcmake.

The log below simply shows, that you have no properly installed FPC on your system.

Show quoted text 53 lines
I think that is what is breaking my cross-compile, see: [...] make[2]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1 W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1/bin/i386-win32 make compiler_install FPC=W:/md/dev/freepascal/compiler/2.5.1/compiler/ppcrossx6 4.exe ZIPDESTDIR=W:/md/dev/freepascal/compiler/2.5.1 FPCMAKE=fpcmake make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' make -C compiler install make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/compiler' make -C utils install make[5]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/compiler/utils' make[5]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/compiler/utils' echo ppcrossx64.exe ppcrossx64.exe W:/md/dev/freepascal/binutils/2.5.1/i386-win32/ginstall.exe -m 755 -d W:\md\dev\ freepascal\compiler\2.5.1/bin/i386-win32 W:/md/dev/freepascal/binutils/2.5.1/i386-win32/cp.exe -fp ppcrossx64.exe W:\md\d ev\freepascal\compiler\2.5.1/bin/i386-win32/ppcrossx64.exe make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/compiler' make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make rtl_install FPC=W:/md/dev/freepascal/compiler/2.5.1/compiler/ppcrossx64.exe ZIPDESTDIR=W:/md/dev/freepascal/compiler/2.5.1 FPCMAKE=fpcmake make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1' make -C rtl install make[4]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/rtl' make -C win64 all make[5]: Entering directory `W:/md/dev/freepascal/compiler/2.5.1/rtl/win64' make[5]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/rtl/win64' fpcmake -p -Tx86_64-win64 Makefile.fpc process_begin: CreateProcess((null), fpcmake -p -Tx86_64-win64 Makefile.fpc, ... ) failed. make (e=2): The system can not find the file specified. make[4]: *** [fpc_install] Error 2 make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1/rtl' make[3]: *** [rtl_install] Error 2 make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make[2]: *** [installbase] Error 2 make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make[1]: *** [install] Error 2 make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.5.1' make: *** [crossinstall] Error 2 W:\md\dev\freepascal\compiler\2.5.1> Marcos Douglas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Marcos Douglas
to Florian Klämpfl
Florian Klämpfl wrote 5 lines
fpmake is something different than fpcmake. The log below simply shows, that you have no properly installed FPC on your system.

Your are right, sorry about that.
My FPC is works correctly in two versions: 2.4.5 (fixes_2_4) and 2.5.1 (fixes_2_6).
So, my only problem is cross-compile 32-bit to 64-bit on WinXP.

Well, I will try the same script using FPC 2.4.5...

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 13 lines
On Thu, Aug 25, 2011 at 4:58 PM, Florian Klämpfl wrote: > > fpmake is something different than fpcmake. > > The log below simply shows, that you have no properly installed FPC on > your system. Your are right, sorry about that. My FPC is works correctly in two versions: 2.4.5 (fixes_2_4) and 2.5.1 (fixes_2_6). So, my only problem is cross-compile 32-bit to 64-bit on WinXP. Well, I will try the same script using FPC 2.4.5...

Well, other error, but is an error (see below).
Could you give me some tip, please?

make -C zlib all
make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.4.5/packages/zlib' W:/md/dev/freepascal/binutils/2.4.5/i386-win32/gmkdir.exe -p units/x86_64-win64 W:/md/dev/freepascal/compiler/2.4.5/compiler/ppcrossx64.exe -Twin64 -Px86_64 -XP x86_64-win64- -Xr -Ur -Xs -O2 -n -FuW:/md/dev/freepascal/compiler/2.4.5/rtl/unit s/x86_64-win64 -Fisrc -FE. -FUunits/x86_64-win64 -gl -dx86_64 -dRELEASE src/zli b.pp
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.5/packages/zlib' make -C imagemagick all
make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.4.5/packages/imagem agick'
W:/md/dev/freepascal/binutils/2.4.5/i386-win32/gmkdir.exe -p units/x86_64-win64 W:/md/dev/freepascal/compiler/2.4.5/compiler/ppcrossx64.exe -Twin64 -Px86_64 -XP x86_64-win64- -Xr -Ur -Xs -O2 -n -FuW:/md/dev/freepascal/compiler/2.4.5/rtl/unit s/x86_64-win64 -Fisrc -FE. -FUunits/x86_64-win64 -gl -dx86_64 -dRELEASE src/bui ldim.pp
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.5/packages/imagema gick'
make -C gdbint all
make[3]: Entering directory `W:/md/dev/freepascal/compiler/2.4.5/packages/gdbint '
W:/md/dev/freepascal/binutils/2.4.5/i386-win32/gmkdir.exe -p units/x86_64-win64 W:/md/dev/freepascal/binutils/2.4.5/i386-win32/cp.exe src/gdbver_nogdb.inc src/g dbver.inc
Different target os or cpu, using default GDB GDB_V606 W:/md/dev/freepascal/compiler/2.4.5/compiler/ppcrossx64.exe -Twin64 -Px86_64 -XP x86_64-win64- -Xr -Ur -Xs -O2 -n -FuW:/md/dev/freepascal/compiler/2.4.5/rtl/unit s/x86_64-win64 -FlW:/md/dev/freepascal/compiler/2.4.5/libgdb/win64 -FoW:/md/dev/ freepascal/compiler/2.4.5/libgdb/win64 -FiW:/md/dev/freepascal/compiler/2.4.5/li bgdb/win64 -Fisrc -FE. -FUunits/x86_64-win64 -gl -dx86_64 -dRELEASE -dGDB_V606 -Fisrc -Fusrc src/gdbint.pp
gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea der size
gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\user32.dll, invalid heade r size
Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted
make[3]: *** [gdbint.ppu] Error 1
make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.5/packages/gdbint'

make[2]: *** [gdbint_all] Error 2
make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.5/packages' make[1]: *** [packages_all] Error 2
make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.4.5' make: *** [build-stamp.x86_64-win64] Error 2
W:\md\dev\freepascal\compiler\2.4.5>

Marcos Douglas

Reply by email

Florian Klämpfl
to Marcos Douglas
Marcos Douglas wrote 5 lines
-Fisrc -Fusrc src/gdbint.pp gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea der size gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\user32.dll, invalid heade r size

Afaik this is broken in 2.4.1, but fixed at least in trunk

Reply by email

Marcos Douglas
to Florian Klämpfl
Florian Klämpfl wrote 8 lines
Am 25.08.2011 22:07, schrieb Marcos Douglas: >   -Fisrc -Fusrc src/gdbint.pp > gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea > der size > gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\user32.dll, invalid heade > r size Afaik this is broken in 2.4.1, but fixed at least in trunk

Yes, in trunk or fixes_2_6 this error does not occur. But these errors only happen when I try cross-compile.
If I only compile FPC to 32-bit (to fixes_2_4 or fixes_2_6) no errors happens.

I only tryed to make a cross-compile using fixes_2_4, just to test, but I want to use fixes_2_6.

Marcos Douglas

Reply by email

Marcos Douglas
to Florian Klämpfl: fpmake is something different than fpcmake. The log below simply shows, that you have no…
Florian Klämpfl wrote 23 lines
Am 25.08.2011 21:56, schrieb Marcos Douglas: > On Fri, Jul 29, 2011 at 5:18 PM, Marco van de Voort wrote: >> In our previous episode, Marcos Douglas said: >>>> 1) manually delete the .ppu's in packages that have this problem ( I ran del >>>> /s *.ppu ?and *.o in packages/) >>>> >>>> 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) >>> >>> Ok, thanks, worked! >>> But why this? >> >> In some packages in 2.5.1, fpmake is being used on an experimental basis, to >> root out problems by use in practice. > > Marco, > > When the fpmake experimental will be fixed? fpmake is something different than fpcmake. The log below simply shows, that you have no properly installed FPC on your system.

Ok, my mistake.
There were no errors about my FPC installation. The problem was my script. I wrote some options to compile, like: i386, x64 or CROSS. My idea was not compile everything. So, I could to compile just a i386 option and so the cross-compiling was not called.
So, the real problem was in 'make' parameters. My script has a 'clean' parameter, always. So, when I tried to compile a CROSS, the 'clean' kill all utilities that a cross-compiler needs.

Well, I hope you have understood.

Thanks.

Marcos Douglas

Reply by email

Marcos Douglas
to Florian Klämpfl: Afaik this is broken in 2.4.1, but fixed at least in trunk
Florian Klämpfl wrote 8 lines
Am 25.08.2011 22:07, schrieb Marcos Douglas: >   -Fisrc -Fusrc src/gdbint.pp > gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea > der size > gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\user32.dll, invalid heade > r size Afaik this is broken in 2.4.1, but fixed at least in trunk

Florian,

This problem is back in fixes_2_6:
http://lists.freepascal.org/lists/fpc-pascal/2011-October/030305.html

I tried that http://www.hu.freepascal.org/lists/fpc-devel/2011-January/023626.html but not worked.

Any tips?

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 19 lines
On Thu, Aug 25, 2011 at 5:32 PM, Florian Klämpfl wrote: > Am 25.08.2011 22:07, schrieb Marcos Douglas: >>   -Fisrc -Fusrc src/gdbint.pp >> gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\kernel32.dll, invalid hea >> der size >> gdbint.pp(3091) Error: Invalid DLL C:\WINDOWS\system32\user32.dll, invalid heade >> r size > > Afaik this is broken in 2.4.1, but fixed at least in trunk Florian, This problem is back in fixes_2_6: http://lists.freepascal.org/lists/fpc-pascal/2011-October/030305.html I tried that http://www.hu.freepascal.org/lists/fpc-devel/2011-January/023626.html but not worked. Any tips?

Sorry, I did mean fixes_2_4.

Marcos Douglas

Reply by email