[fpc-devel] Building trunk of today fails on Windows: Error: Invalid DLL C:\WINDOWS\system32\common.dll, invalid header size

Bart bartjunk64 at gmail.com
Wed Aug 25 11:27:02 CEST 2021


On Wed, Aug 25, 2021 at 11:11 AM Tomas Hajny via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:
>
> > And, being curious: any idea why make clean failed when %PATH% was set
> > to just C:\fpc\3.2.2\bin\i386-win32 ?
>
> No idea - I just tested on a MS Win machine I have access to and 'make
> clean all' succeeded with PATH containing just the bin\i386-win32
> subdirectory of the 3.2.2 installation. Do you have a complete FPC
> installation, or did you build 3.2.2 yourself?
>

I have a complete fpc install (official installer).
Looking at the error message, it looks like at some point it the shell
(cmd.exe) is instructed to execute code that one would expect in a
linux bash script. (Except that it has a reference to fpmake.exe,
which doesn't sound very *nix)

make -C utils distclean
make[1]: Entering directory `C:/devel/fpc/trunk/utils'
{ ./fpmake.exe distclean --localunitdir=.. --globalunitdir=../packages
--os=win32 --cpu=i386 -o -Ur -o -Xs -o -O2 -o -n -o -di386 -o
-dRELEASE --compiler=C:/devel/fpc/3.2.2/bin/i386-Win32/ppc386.exe -bu;
if [ $? != "0" ]; then { echo Something wrong with fpmake exectable.
Remove the executable and call make recursively to recover.;
/devel/fpc/3.2.2/bin/i386-Win32/rm.exe -f ./fpmake.exe; make
fpc_cleanall; }; fi;  }
'{' is not recognized as an internal or external command,
operable program or batch file.


-- 
Bart


More information about the fpc-devel mailing list