[fpc-devel] Cross build fpc to x86_64 error

Dimitrios Chr. Ioannidis dioannidis at artesoft.gr
Wed Jan 19 11:53:29 CET 2011

Hi all,

   trying to cross build fpc (2.4.3-r1:16778 [2011/01/19]) from i386 to 
x86_64 on a i386 box using the same i386 version fpc and with the 
following settings i get this error :

"make all crossinstall COPYTREE=echo OS_TARGET=win64 CPU_TARGET=x86_64 
UPXPROG=echo OPT="-gl -gw -Xs -Xg -godwarfsets" 

 >make -C gdbint all
 >make[3]: Entering directory 
 >C:/Programming/Compiler/binutils/i386-win32/gmkdir.exe -p 
src/gdbver_nogdb.inc src/gdbver.inc
 >Different target os or cpu, using default GDB GDB_V606
-Twin64 -Px86_64 -XPx86_64-win64- -Xr -Ur -Xs -O2 -n -F
 >4 -FoC:/Programming/Compiler/fpc/2.4.3/source/libgdb/win64 
-FiC:/Programming/Compiler/fpc/2.4.3/source/libgdb/win64 -Fis
 >rc -FE. -FUunits/x86_64-win64 -gl -gw -Xs -Xg -godwarfsets -dx86_64 
-dRELEASE  -dGDB_V606   -Fisrc -Fusrc src/gdbint.pp
 >gdbint.pp(3076) Error: Invalid DLL C:\windows\system32\kernel32.dll, 
invalid header size
 >gdbint.pp(3076) Error: Invalid DLL C:\windows\system32\user32.dll, 
invalid header size
 >Fatal: There were 2 errors compiling module, stopping
 >Fatal: Compilation aborted

Any hint ? I never had problems with gdb before ...

Dimitrios Chr. Ioannidis

More information about the fpc-devel mailing list