https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90834

John Marshall <John.W.Marshall at glasgow dot ac.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |John.W.Marshall at glasgow dot 
ac.
                   |                            |uk

--- Comment #9 from John Marshall <John.W.Marshall at glasgow dot ac.uk> ---
The Homebrew folks have been configuring with a sysroot to work around this on
Mojave since it came out last year:

    --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

and it bootstraps fine (in the context of their recipe [1]). Nobody seems to
complain that frameworks etc in / are now missing, but it's entirely likely
that none of their users are exercising it hard enough to notice.

This has an unfortunate side-effect that the compiler looks in the non-existent
/Library/.../MacOSX.sdk/usr/local/include instead of /usr/local/include [2].

Longterm it seems like the GCC driver would need some basic xcrun capabilities,
but as an immediate fix for that it seems like a configure option
(--with-local-prefix-outside-sysroot? --without-local-prefix-sysroot?) to make
LOCAL_INCLUDE_DIR ignore sysroots would be appropriate. (I've been composing
such a proposal for gcc@...)

(I'm just a brewed-GCC user who'd like the compiler to basically work; not a
Homebrew maintainer.)

[1] https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb
[2] https://github.com/Homebrew/homebrew-core/issues/35181

Reply via email to