Issues with compiler flags in gfortran
Christopher Jones
jonesc at hep.phy.cam.ac.uk
Tue Jan 22 22:43:38 UTC 2019
> On 22 Jan 2019, at 4:16 pm, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
>
>
> On 2019-01-22, at 2:37 AM, Joshua Root wrote:
>
>
>>
>> I think this issue overall is covered by
>> <https://trac.macports.org/ticket/37846>, and I agree with jeremyhu's
>> assessment there.
Personally I do not really completely agree with Jeremy here. MacPorts gcc ports are configured to use MacPorts toolkit, as per the cctools port. This is exactly what it is doing. I see nothing to blaim gcc for in this regard. Its not ggc’s fault that the tool kit we are configuring it to use is flawed.
The issue, from my perspective, lies with a combination of how the as shipped with cctools, Apples own open sourced version, decides whether or not to use clang, via some rather convoluted gymnastics, partly due to the ancient fallback GNU as they ship when it decides not to use clang (for licensing reasons we all know about) and in part due to the way MacPorts packages things which causes the cctools as to effectively never pick clang and always to fallback to the ancient GNU as version.
>>
>> - Josh
>
> Yes, we discussed it there similarly to this email chain.
>
> But Jeremy's solution five years ago was to leave it to gcc to fix.
>
> That -- I think -- is just never going to happen.
I agree. The only way we will improve things, I believe, is if we decide to make some changes to cctools. Ideally I think the default cctools should be variant free, and if be tweak what it does on different platforms more behind the scenes (so, for instance, things could change in the future without all the issues w.r.t. variants changing). It would also I think be a good idea to look to patching as’s driver.c code, to make it a bit more MacPorts aware and thus able to be more flexible in picking an appropriate clang to use.
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190122/0997b9f5/attachment-0001.bin>
More information about the macports-dev
mailing list