Linux gcc formula (gcc-15) doesn't use the brew binutils as, so breaks on ".base64" assembly instruction #6229
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
@c-kloukinas This is not a brew problem, you have a toolchain mismatch that needs to be taken care of in your environment. GCC15 uses binutils 2.43+, whose What you can do is install a recent binutils and add that to your path. Here are the instructions for it and then you can invoke GCC15 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @term-est , when I look at the gcc formula, binutils are not stated as a dependency. So, once binutils are stated as a dependency, as they should be, then the question becomes - what should this formula do with them? In either case, someone who installs gcc (gcc-15) shouldn't have to bother with binutils - they've asked for gcc, brew said it installed it, so gcc should just work. But it doesn't. I see that this issue has affected another formula |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Additional Info
Output of
brew configOutput of
brew doctorDescription of issue
gcc declares binutils as a dependency on Linux but the compiler (gcc-15) doesn't call the brew binutils "as" explicitly, so gets an older Linux version that doesn't know what .base64 is:
I got the test code (as-check.c) from the following bug report (not smart enough to write my own...)
https://gcc.gnu.org/pipermail/gcc-bugs/2024-October/886677.html
I tried uninstalling and re-installing gcc & binutils - same behaviour.
Beta Was this translation helpful? Give feedback.
All reactions