Setting system gcc when `port select --set gcc app-gcc*` is set
Steven Smith
steve.t.smith at gmail.com
Thu Oct 3 17:49:48 UTC 2019
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:build 45 | #include <sys/cdefs.h>
> :info:build | ^~~~~~~~~~~~~
This is with the port hlint, which uses port group haskell_cabal:
https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/haskell_cabal-1.0.tcl <https://github.com/macports/macports-ports/blob/master/_resources/port1.0/group/haskell_cabal-1.0.tcl>
The build works if I make sure that “gcc” points to /usr/bin/gcc.
How should this be done in MacPorts to avoid this issue? I just want to make sure that the native system gcc is used, not the MacPorts gcc.
We’re already setting these compiler options in haskell_cabal:
> compiler.library_path
> compiler.cpath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191003/a1781363/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191003/a1781363/attachment.bin>
More information about the macports-dev
mailing list