[fpc-pascal] Installation/Compilation of FPC for Darwin 8.0 (x86)
Werner Bochtler
werner.bochtler at zkrd.de
Fri Aug 31 14:14:13 CEST 2007
> You probably need a newer version of darwin/x86:
> http://lists.apple.com/archives/darwin-x86/2007/Jul/msg00015.html
I have updated the kernel, clib and gcc:
-> Darwin Kernel Version 8.9.0: root:xnu-792.17.14/BUILD/obj/RELEASE_I386
The problem is the same:
/bin/ppcuniversal: Bad executable (or shared library)
----
Therefore I have tried to build a new compiler via cross compilation
(linux -> darwin):
1. I have downloaded odcctools from
<http://biolpc22.york.ac.uk/pub/linux-mac-cross/>
2. I have unpacked odcctools-20060413-gcc-5247-bin.tar.bz2
3. I have included the folder /opt/mac/bin to the search path
4. I have tried to compile fpc as follows:
make OS_TARGET=darwin all BINUTILSPREFIX=i686-apple-darwin8- OPT="-Xd
-Fl$HOME/odcctools/opt/mac/lib"
The following files are reported as missing:
libc.dylib
crt1.o
After copying these files from the darwin machine to the linux machine I
was able to built fpc.
Unfortunately the generated ppc386 still does not work on the darwin
machine.
'file ppc386' gives "ppc386: Mach-0 executable i386"
but
'ppc386 -h' gives "Illegal instruction"
Any ideas what's going wrong here?
Has anyone ever make FPC running on a pure darwin (not Mac OS X!)
installation?
Many thanks in advance,
Werner
More information about the fpc-pascal
mailing list