[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"
BINUTILSPREFIX=x86_64-win64- INSTALL_PREFIX=%FPCDIR%\%FPCVERSION%
FPC=%BINUTILSDIR%\ppc386-Cur.exe"
>make -C gdbint all
>make[3]: Entering directory
`C:/Programming/Compiler/fpc/2.4.3/source/packages/gdbint'
>C:/Programming/Compiler/binutils/i386-win32/gmkdir.exe -p
units/x86_64-win64
>C:/Programming/Compiler/binutils/i386-win32/cp.exe
src/gdbver_nogdb.inc src/gdbver.inc
>Different target os or cpu, using default GDB GDB_V606
>C:/Programming/Compiler/fpc/2.4.3/source/compiler/ppcrossx64.exe
-Twin64 -Px86_64 -XPx86_64-win64- -Xr -Ur -Xs -O2 -n -F
>uC:/Programming/Compiler/fpc/2.4.3/source/rtl/units/x86_64-win64
-FlC:/Programming/Compiler/fpc/2.4.3/source/libgdb/win6
>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 ...
regards,
--
Dimitrios Chr. Ioannidis
More information about the fpc-devel
mailing list