[fpc-pascal] FPC on NetBSD (i386)
Adrian Maier
adrian.maier at gmail.com
Wed Apr 19 21:25:21 CEST 2006
On 4/19/06, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> It depends. If you get 2.0 running, there's probably not that much
> you have to change to your patches to get 2.0.2 and 2.1.1 running as
> wel. The downside is that you have to download the 2.0 sources. The
> upside is that you don't have to mess with cross binutils etc.
Ok. I'll try to get 2.0.0 working, but i'll certainly need some guidance at
the beginning.
I downloaded the release_2_0_0 from svn , and i am now trying to
compile rtl using the fpc 1.0.10 .
1. cd rtl/netbsd
2. gmake
[...]
/usr/local/bin/ppc386 -dUNIX -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd
-Fi../bsd/i386 -Fi../netbsd/i386 -FE. -FU../../rtl/units/i386-netbsd
-di386 ../bsd/system.pp
Compiling ../bsd/system.pp
system.pp(24,21) Error: Illegal unit name: SYSBSD
system.pp(24,21) Warning: Compiling the system unit requires the -Us switch
3. I've modified in bsd/system.pp the line :
Unit {$ifdef VER1_0}SysBSD{$else}System{$endif};
to :
Unit System;
Is this correct ?
Then I ran ppc386 manually (and added the -Us switch) :
/usr/local/bin/ppc386 -dUNIX -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd
-Fi../bsd/i386 -Fi../netbsd/i386 -FE. -FU../../rtl/units/i386-netbsd
-di386 -Us ../bsd/system.pp
4. Ran gmake again , but when building the baseunix unit it is missing some
files:
$(BSDINC)/bunxtype.inc
$(BSDINC)/ctypes.inc
$(BSDINC)/bunxmain.inc
$(BSDINC)/bunxfunc.inc
$(BSDINC)/ossysch.inc
$(BSDINC)/bunxmacr.inc
I have noticed that in freebsd/Makefile these files are not referred .
This is the progress so far.
Adrian Maier
More information about the fpc-pascal
mailing list