compiler selection on PPC

Ken Cunningham ken.cunningham.webuse at
Wed Dec 6 20:19:03 UTC 2017

There have been a number of tickets over the past two years that relate to compiler selection on PPC systems.

Basically, on PPC, if the default compiler (gcc 4.2 on 10.5, or apple-gcc42 on Tiger) does not work to build a port, the only other compiler that should be then used is gcc6. Maybe someday this might be gcc7, if we fix up the extra errors found in gcc7.

Presently, however, PPC systems go down the same compiler selection path as Intel systems. That usually leads to clang 3.3 or clang 3.4 being selected, and this always fails miserably on PPC.

Finally, there are a number of ports that blacklist all gcc compilers like this *gcc* . This is often appropriate for Intel systems, but completely wrong for PPC. So I don't know if it is possible to clear or ignore that setting in a Portfile -- probably not, but when I set the default_compiler in macports.conf, it does appear override that setting, so maybe it is possible.



More information about the macports-dev mailing list