[fpc-pascal] Could use some help with DOS cross compile

Reinier Olislagers reinierolislagers at gmail.com
Sun Oct 20 12:56:47 CEST 2013


Trying to create dos cross compiler using FPC trunk x86 r25833, Windows

NASM binaries etc from Marco's post [2]
dir c:\Development\cross\bin\i8086-msdos
..
02/01/2013  11:06           743,424 msdos-nasm.exe
25/05/2010  08:36            33,792 msdos-wlib.exe
25/05/2010  08:51            33,792 msdos-wlink.exe
02/01/2013  11:06           743,424 nasm.exe
25/05/2010  08:36           172,018 wlibd.dll
25/05/2010  08:51           395,646 wlinkd.dll
25/05/2010  08:51            13,604 wlsystem.lnk

rem DOS binutils first, then trunk compiler+binutils
set
path=C:\development\cross\bin\i8086-msdos;C:\Development\fpctrunk\bin\i386-win32
cd /d c:\development\fpctrunk
rem clean
C:\development\fpcbootstrap\make.exe
"FPC=C:\development\fpcbootstrap\ppc386.exe"
"--directory=C:\development\fpctrunk"
"INSTALL_PREFIX=C:\development\fpctrunk"
"CROSSBINDIR=C:\development\cross\bin\i8086-msdos" "UPXPROG=echo"
"COPYTREE=echo" "clean" "OS_TARGET=msdos" "CPU_TARGET=i8086"
"BINUTILSPREFIX=msdos-" "OPT=-gw2 -gl -O-1 -XPmsdos-"
rem make all
C:\development\fpcbootstrap\make.exe
"FPC=C:\development\fpcbootstrap\ppc386.exe"
"--directory=C:\development\fpctrunk"
"INSTALL_PREFIX=C:\development\fpctrunk"
"CROSSBINDIR=C:\development\cross\bin\i8086-msdos" "UPXPROG=echo"
"COPYTREE=echo" "all" "OS_TARGET=msdos" "CPU_TARGET=i8086"
"BINUTILSPREFIX=msdos-" "OPT=-gw2 -gl -O-1 -XPmsdos-"
rem make crossinstall would be next...

I get this on stderr
make.exe[5]: *** [system.ppu] Error 1
make.exe[4]: *** [msdos_all] Error 2
make.exe[3]: *** [rtl] Error 2
make.exe[2]: *** [cycle] Error 2
make.exe[1]: *** [compiler_cycle] Error 2
C:\development\fpcbootstrap\make.exe: *** [build-stamp.i8086-msdos] Error 2

And this on stdout:
...
nasm -f obj -o c:/Development/fpctrunk/rtl/units/msdos/prt0m.o prt0m.asm
c:/Development/fpctrunk/compiler/ppcross8086.exe -Tmsdos -Pi8086
-XPmsdos- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../i8086
-FDC:\development\cross\bin\i8086-msdos -FE.
-FUc:/Development/fpctrunk/rtl/units/msdos -gw2 -gl -O-1 -XPmsdos-
-di8086 -dRELEASE  -Us -Sg system.pp
heap.inc(775,18) Warning: range check error while evaluating constants
(1048576 must be between 0 and 65535)
heap.inc(911,50) Warning: Comparison might be always true due to range
of constant and expression
text.inc(2222,14) Warning: Implicit string type conversion from
"AnsiString" to "UnicodeString"
text.inc(2441,53) Warning: Implicit string type conversion with
potential data loss from "UnicodeString" to "AnsiString"
system.inc(1770,8) Warning: Implicit string type conversion from
"RawByteString" to "UnicodeString"
system.pp(359) Fatal: Internal error 200704252
Fatal: Compilation aborted


Am I doing something wrong?


[2] http://www.bttr-software.de/forum/forum_entry.php?id=12985



More information about the fpc-pascal mailing list