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
gnm (binutils) fails on Mojave (and breaks gcc-8) #32516
Comments
Indeed, it appears that binutils' gnm cannot read MachO files:
Could you report this bug to the binutils project? It does not appear to be specific to Homebrew. |
done the bug report is available at https://sourceware.org/bugzilla/show_bug.cgi?id=23728 Meanwhile, should something been done for Mojave (such as not installing /usr/local/bin/gnm) in order not to break |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@dmarinescu your trolling is very unwelcome here, good speed. |
Hi @ggouaillardet, I have the same problem with Xcode 10, the latest version. (I don't think it is caused by the new OS Mojave because gcc works nicely with old Xcode 7 on Mojave.) A temporary solution is to set nm to gnm as follows mv /usr/local/bin/gnm /usr/local/bin/gnm-backup
ln -s /usr/bin/nm /usr/local/bin/gnm |
We could introduce a conflict between the two packages, but in general that's not true. It's a case of bug in |
@fxcoudert I was something in between. For example, we could install The benefits (to be tested) are :
|
I'm going to open a PR to make binutils keg_only since it's so incredibly broken/janky on macOS. |
`gnm` is broken with macOS 10.14 Mojave/XCode 10. This breaks gcc when binutils is linked. Fixes: Homebrew#32516 See also: https://sourceware.org/bugzilla/show_bug.cgi?id=23728
`gnm` is broken with macOS 10.14 Mojave/XCode 10. This breaks gcc when binutils is linked. Fixes: #32516 See also: https://sourceware.org/bugzilla/show_bug.cgi?id=23728
Patch series to address the issue has been sent upstream: https://sourceware.org/ml/binutils/2018-11/msg00031.html |
This now-upstreamed patch fixes it: https://sourceware.org/bugzilla/show_bug.cgi?id=23728 I've added it in Homebrew/formula-patches#256 |
When the
binutils
formula is not installed,gcc-8
works just finenow, after installing
binutils
, the same command failsHere is the error generated by manually invoking
gnm
Unsurprisingly, removing the
binutils
formula solves the issue.I initially thought something was wrong with my system (I recently upgraded OS X from High Sierra to Mojave) so uninstalled
brew
and made a fresh install with just a few packages, and am still able to reproduce the very same issue.The text was updated successfully, but these errors were encountered: