New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc on mojave miss the system includes to /usr/local/include #35181
Comments
@howard0su Please provide this output. CC @fxcoudert for clarification on the expected behaviour here. |
provided all details. |
Homebrew's GCC 8 is:
so I feel like this is "sort of" a bug. It tries to look up |
@fxcoudert Feel free to close out or open/request a PR; your call. |
@fxcoudert Oh, and: thanks! ❤️ |
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?MacBook-Air:src howardsu$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: You have external commands with conflicting names.
Found command
brew-aspell-dictionaries
in following places:/usr/local/Homebrew/Library/Taps/gtdmmb/homebrew-core/cmd/brew-aspell-dictionaries.rb
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/cmd/brew-aspell-dictionaries.rb
Found command
brew-postgresql-upgrade-database
in following places:/usr/local/Homebrew/Library/Taps/gtdmmb/homebrew-core/cmd/brew-postgresql-upgrade-database.rb
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/cmd/brew-postgresql-upgrade-database.rb
brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?MacBook-Air:pages howardsu$ brew config
HOMEBREW_VERSION: 1.8.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 38493a3
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 497ca90
Core tap last commit: 10 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit sandybridge
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.20.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.7.0_71
macOS: 10.14.2-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
To help us debug your issue please explain:
What you were trying to do (and why)
Compile code under gcc with some local installed brew package. The issue is the new compiler doesn't include /usr/local/include as a system include folder.
What happened (include command output)
target/common/emu/fltk.cpp:28:10: fatal error: FL/Fl.H: No such file or directory
#include <FL/Fl.H>
^~~~~~~~~
compilation terminated.
What you expected to happen
successfully compile the code
Step-by-step reproduction instructions (by running
brew install
commands)brew install gcc
brew install fltk
compile the following code:
// a.c
#include <FL/Fl.H>
void main() { return; }
The text was updated successfully, but these errors were encountered: