[fpc-devel] Testing FPC on PPC Mac

Pierre Free Pascal pierre at freepascal.org
Thu Feb 12 13:16:14 CET 2015


 Hi Mark,

  you should use -s option
for compilation.
  This will generate a ppas.sh script
that contains the call to the linker.

  Maybe removing this command line option will be enough 
to fix linking.

  I hope you will be able to generate a recent 
Free Pascal Complier on your machine!

Pierre Muller

> -----Message d'origine-----
> De : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> bounces at lists.freepascal.org] De la part de Mark Morgan Lloyd
> Envoyé : jeudi 12 février 2015 12:17
> À : fpc-devel at lists.freepascal.org
> Objet : Re: [fpc-devel] Testing FPC on PPC Mac
> 
> Mark Morgan Lloyd wrote:
> 
> >> Afaik that's it, binutils+make+gdb from xcode + the installer.
> >
> > Thanks, I'll see where I get to.
> 
> Testing 2.7.1 at revision 29398, compiling with
> 
> make NOGDB=1 OPT='-V2.6.4 -O- -gl -Xs-' all
> 
> which has worked for the other architectures I've tried it on, I get
> 
> /bin/mkdir -p powerpc/units/powerpc-darwin
> /usr/local/bin/ppcppc -Ur -Xs -O2 -n -Fupowerpc -Fusystems
> -Fu/usr/local/src/fpc/trunk-2.7.1-29398/rtl/units/powerpc-darwin
> -Fipowerpc -FE. -FUpowerpc/units/powerpc-darwin -dRELEASE -V2.6.4 -O-
> -gl -Xs-   -dpowerpc -dGDB -dBROWSERLOG -Fuppcgen -Sew pp.pas
> /usr/bin/ld: unknown flag: -macosx_version_min
> An error occurred while linking
> pp.pas(244,13) Error: Error while linking
> pp.pas(244,13) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> 
> I presume that ld from Xcode 2.0 is slightly too old, and that that
> flag
> isn't supported. Is there a way of accommodating this at the command
> line, or is the only way by finding the flag in the build files and
> disabling it?
> 
> [Slightly later] It looks as though it's in the compiler itself, so I'd
> presumably have to start off with a cross-build or work back to
> 2.6.0...
> which is a lot of work for an architecture that I don't really use.
> 
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
> 
> [Opinions above are the author's, not those of his employers or
> colleagues]
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel



More information about the fpc-devel mailing list