[fpc-devel] fpc binary for OpenBSD 4.4

Constantine Cusulos nohacer at freemail.gr
Fri Mar 13 19:57:34 CET 2009

Before posting here, i asked a question about binary emulation on
openbsd-misc (http://marc.info/?l=openbsd-misc&m=123688274008042&w=2). 
If i combine the answers i got there with a little openbsd-misc 
archive-searching, i can say that OpenBSD's emulation capabilities are 
at least problematic nowdays.

So, my answer to my initial question would be, most probably, no.

Regarding a "fresh start", as Marco van de Voort put it, i have found 
some info in the wiki (namely 
http://wiki.freepascal.org/Porting_Free_Pascal and 

@Tomas Hajny
> The other would be only
> creating assembler files on the source platform using -s parameter and
> copying these to the target platform to assemble and link the ppc386/fpc
> binary there (possibly after adjusting some paths in the linker script).

I do not fully understand this process. From the fpc man page:

-s     Tells the compiler not to call the assembler and linker. 
Instead, the compiler writes a script, PPAS.BAT under DOS, or ppas.sh 
under Linux, which can then  be  executed to produce an executable.

There is not much info beyond that. So, a shell script is produced under 
linux? That could be a potential problem since OpenBSD uses the korn 
shell and linux uses the bash shell.

In any case, if anybody has a few pointers on how i could begin a fresh 
start, please submit them.

More information about the fpc-devel mailing list