On 09 May 2007, at 19:59, Vincent Snijders wrote:

I tried to create powerpc units for the lcl on an intelmac, but the compiler crashes. Is this a known issue?

The compiler is trying to use RTL/packages units compiled by a native ppc compiler (most likely the ones globally installed on the system). Those cannot be used by a little->big endian cross compiler. Try instead something like this:

make OPT="-n -Fu~/fpcinst/usr/local/lib/fpc/2.1.4/units/powerpc- darwin/* -O2 -vei -ap" FPC=~/fpcinst/usr/local/lib/fpc/2.1.4/ppcppc clean all

(-n to prevent the compiler loading the global config files)


Jonas

PS: note that if you're doing this on mischi's iMac, it won't work when linking: /usr/bin/powerpc-darwin-ld: warning /sw/lib//libglib-1.2.0.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) /usr/bin/powerpc-darwin-ld: warning /sw/lib//libgdk-1.2.0.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) /usr/bin/powerpc-darwin-ld: warning /sw/lib//libgtk-1.2.0.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded) /usr/bin/powerpc-darwin-ld: warning /sw/lib//libgdk_pixbuf.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)

(i.e., only the i386 versions of those libraries are installed on the system)
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to