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

md at rpzdesign.com md at rpzdesign.com
Mon Mar 10 19:11:21 CET 2014


Peter:

I must use some form of {$LINKLIB gcc}

{$LINKLIB c} still WORKS under OSX 10.9

{$LINKLIB gcc} does not work user OSX 10.9 Mavericks.

"__divdi3" unresolved reference lives in the gcc run time library chain.

md








On 3/10/2014 11:21 AM, Peter Brooks wrote:
> Why are you wanting to use gcc instead? If I wanted to do this, I'd
> just replace c with a link to gcc.
>
>
> On 10 March 2014 16:14, md at rpzdesign.com <md at rpzdesign.com> wrote:
>> Peter:
>>
>> I was surprised too.  That is why I broadcast the alarm to the FPC
>> community.
>>
>> I am running FPC 2.6.2 - Lazarus 1.0.14
>>
>> Yes, I can recompile FPC from scratch on Mavericks.
>> I can compile perfectly well on Mavericks too.
>>
>> No, I cannot issue the {$LINKLIB gcc } command on Mavericks OSX 10.9
>>
>> Have you tried the {$LINKLIB gcc } command?
>>
>> Anybody else got ideas?
>>
>> md
>>
>>
>> On 3/10/2014 1:03 AM, Peter Brooks wrote:
>>> 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
>>> _______________________________________________
>>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> _______________________________________________
> 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