Sign in Join

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

Mailing lists / fpc-devel / 2011-01

Cross build fpc to x86_64 error

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Dimitrios Chr. Ioannidis

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

Reply by email

Jonas Maebe
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote 8 lines
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"

Add NOGDB=1 (it only means that the text mode ide won't have a built- in debugger, it does not remove gdb debug information generation support from the compiler)

Jonas

Reply by email