[fpc-devel] fpc binary for OpenBSD 4.4
Tomas Hajny
XHajT03 at mbox.vol.cz
Fri Mar 13 16:19:06 CET 2009
On Fri, March 13, 2009 15:50, Constantine Cusulos wrote:
> I would like to compile fpc on my OpenBSD4.4/i386 system. The buildfaq
> (http://www.stack.nl/~marcov/buildfaq.pdf) requires to have a usable fpc
> binary in order to compile fpc source.
>
> OpenBSD has emulation for binaries from linux and FreeBSD so i got the
> corresponding binaries from Ubuntu/i386 and FreeBSD/i386. Emulation
> didn't work. That means that i was not able to use the freepascal
> compiler on my system with either of those binaries.
>
> Is there a way i can compile fpc on OpenBSD4.4/i386?
Well, do you ask whether there's a way you can compile fpc _on_ OpenBSD,
or create fpc _for_ that OpenBSD? For the former the answer is probably
"no" (if you tried the emulation and it didn't work). If your goal is
"just" having fpc working on your platform at the end, you can build it on
one of the supported platforms (e.g. Linux or FreeBSD). There are two ways
for doing it (I believe there's some information on cross-compilation on
our Wiki among others). One way is using assembler (as) and linker (ld)
running on the source platform (e.g. Linux or FreeBSD) and supporting the
target platform (OpenBSD). However, that often requires you to copy some
files from the target platform (and you need to find the right ones,
etc.), so this may not be the easiest option. 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).
Tomas
More information about the fpc-devel
mailing list