[fpc-devel] OpenBSD compiler

Leonardo M. Ramé martinrame at yahoo.com
Sun Oct 9 00:18:41 CEST 2011


----- Original Message -----

> From: Marco van de Voort <marcov at stack.nl>
> To: Leonardo M. Ramé <martinrame at yahoo.com>
> Cc: 
> Sent: Saturday, October 8, 2011 5:06 PM
> Subject: Re: [fpc-devel] OpenBSD compiler
> 
> In our previous episode, Leonardo M. Ram? said:
>>   Pierre, glad to hear that. What compiler did you use to bootstrap?.
> 
> I updated with Pierre changes and duplicated it. I put the resulting (2.7.1)
> compiler at
> 
> ftp://ftp.freepascal.org/pub/fpc/contrib/i386-openbsd-ppc386.bz2
> 
> I did some minor additional fixes to makefiles and target selection, they
> are in SVN now.
> 
>>>>   I've downloaded one from FreePascal's ftp, but it gives me 
> 
>>>  "Bad system call" when I run it.
>> 
>>>  As said, easiest is to use a linux binary. All three BSDs can run linux
>>>  binaries using a fairly thin compatibility layer (sometimes called 
> linuxator).
> 
>>  I did my tests with a linux i386 binary. Linuxator is installed as you
>>  described in a previous mail in this same thread.  ?  Leonardo M.  Ram? 
>>  http://leonardorame.blogspot.com
> 
> Did you also give the sysctl to enable it?  That did it for me.
>

Thanks, the compiler runs ok. But I can't "gmake build all" using it.

I updated trunk from svn, then did:

gmake PP=~/i386-openbsd-ppc386 clean all


And got this:

(stripped irrelevant parts)
...
/bin/rm -f fpcmade.i386-openbsd Package.fpc ppas.sh script.res link.res
/bin/rm -f *.s *_ppas.sh
gmake[7]: Leaving directory `/var/home/leonardo/fpc/rtl/openbsd'
gmake[6]: Leaving directory `/var/home/leonardo/fpc/rtl'
gmake -C /var/home/leonardo/fpc/rtl 'OPT=' all
gmake[6]: Entering directory `/var/home/leonardo/fpc/rtl'
gmake -C openbsd all
gmake[7]: Entering directory `/var/home/leonardo/fpc/rtl/openbsd'
as -o /var/home/leonardo/fpc/rtl/units/i386-openbsd/prt0.o i386/prt0.as
as -o /var/home/leonardo/fpc/rtl/units/i386-openbsd/cprt0.o i386/cprt0.as
/var/home/leonardo/i386-openbsd-ppc386 -Ur -FD -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fi../bsd -Fi../bsd/i386 -Fi../openbsd/i386 -FE. -FU/var/home/leonardo/fpc/rtl/units/i386-openbsd -di386 -dRELEASE -Us -Sg ../bsd/system.pp
gmake[7]: *** [system.ppu] Bad system call (core dumped)
gmake[7]: Leaving directory `/var/home/leonardo/fpc/rtl/openbsd'
gmake[6]: *** [openbsd_all] Error 2
gmake[6]: Leaving directory `/var/home/leonardo/fpc/rtl'
gmake[5]: *** [rtl] Error 2
gmake[5]: Leaving directory `/var/home/leonardo/fpc/compiler'
gmake[4]: *** [next] Error 2
gmake[4]: Leaving directory `/var/home/leonardo/fpc/compiler'
gmake[3]: *** [ppc1] Error 2
gmake[3]: Leaving directory `/var/home/leonardo/fpc/compiler'
gmake[2]: *** [cycle] Error 2
gmake[2]: Leaving directory `/var/home/leonardo/fpc/compiler'
gmake[1]: *** [compiler_cycle] Error 2
gmake[1]: Leaving directory `/var/home/leonardo/fpc'
gmake: *** [build-stamp.i386-openbsd] Error 2


 
Leonardo M. Ramé
http://leonardorame.blogspot.com



More information about the fpc-devel mailing list