Thanks for all your comments. Please see
https://github.com/macports/macports-ports/pull/5419
I “fixed” this issue by adding PATH to build.env and verified that it works:
> # ensure /usr/bin/gcc is used; see
> https://github.com/haskell/cabal/issues/1325
> default build.env
Hi,
> On 3 Oct 2019, at 6:50 pm, Steven Smith wrote:
>
> I have a build failure on a system with `port select --set gcc mp-gcc9` set:
>
>> :info:build
>> /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/ma
>> th.h:45:10: error:
>> :info:build fatal error: sys/cdefs.h:
On Thu, 3 Oct 2019 at 19:50, Steven Smith wrote:
>
> I have a build failure on a system with `port select --set gcc mp-gcc9` set:
>
> :info:build
> /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/ma
> th.h:45:10: error:
> :info:build fatal error: sys/cdefs.h: No such file
You can’t make sure gcc means any particular compiler.
One way or another this software needs to conform to normal rules, not the
other way around.
K
Sent from my iPhone
I have a build failure on a system with `port select --set gcc mp-gcc9` set:
> :info:build
> /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/include-fixed/ma
> th.h:45:10: error:
> :info:build fatal error: sys/cdefs.h: No such file or directory
> :info:build45 | #include
>