[fpc-pascal] Freepascal on OSX 10.9 Mavericks $LINKLIB gcc broken

Peter Brooks peter.brooks at kchclinics.com
Mon Mar 10 06:03:26 CET 2014


I'm a bit surprised. As it happens, just this week I compiled the fpc
compiler from scratch on Mavericks. It worked perfectly well, and is
compiling perfectly well - version 2.6.0.

I was wondering, though, whether there was any enhanced support for
features on the Intel 'Sandy-Bridge' and 'Ivy-Bridge' processors - the
i5 chips.

On 10 March 2014 05:32, md at rpzdesign.com <md at rpzdesign.com> wrote:
> Now that OSX Mavericks 10.9 is running full speed, it has broken the
> {$LINKLIB gcc} compiler directive.
>
> {$LINKLIB c} still WORKS.
> But {$LINKLIB gcc} does not.
>
> The reason is that Mavericks does not use GCC any more, it is using clang,
> a new compiler.
>
> So now Freepascal users need to know how to resolve errors:
>
> Undefined symbols for architecture i386:
> "___divdi3", referenced from libmystatic.a,
> "___moddi3", referenced from libmystatic.a, etc...
>
> ANybody got ideas?
>
> I tried {$LINKLIB clang}, it does not exist.
>
> Thanks for any ideas,
>
> Marco
>
>
>
>
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list