[fpc-pascal] PowerPC crosscompiler on i386 Mac OS X looks for, wrong assembler and linker

Daniël Mantione daniel.mantione at freepascal.org
Tue Jul 3 11:01:28 CEST 2007



Op Tue, 3 Jul 2007, schreef Adriaan van Os:

> I am not at all saying that FPC should follow GNU conventions, no, but at
> least the rules are clear there. You configure for target, host and build and
> then the Makefile takes cares of the rest. If a configuration is not supported
> or if there is a problem, you get a clear error message.

The rules themselves are pretty clear: You have the PowerPC 
compiler on your system. This PowerPC compiler is capable of generating 
programs for MacOS classic, MacOS X, Linux and MorphOS.

You run in on OS X, but that is not really important here, except that by 
default it is configured to generate programs for OS X, and if you compile 
for this default it calls "as" and "ld". If you do not use the default, 
you probably need a different assembler and linker, and can use -XP option 
to specify how they are called.

To help you the installation script puts "-XP$fpctarget-" in your config 
file, so that if you compile for Linux the compiler will search for 
powerpc-linux-as and powerpc-linux-ld.

If things don't work out as expected, this is regrettable, but 
troubleshooting this is at least as least not harder than troubleshooting 
an unexpected Autoconf failure.

Daniël


More information about the fpc-pascal mailing list