Open nobu opened 6 hours ago
This is an incompatibility with Xcode 16's as
: https://github.com/iains/gcc-14-branch/commit/ea41179dab5df144d2ec137c94dcbe171e427728. A patch rollup release came last week and we're currently working on getting it updated (https://github.com/Homebrew/homebrew-core/pull/194797), hopefully by tomorrow.
@Bo98 Thank you, I'm happy to hear it. Will it be applied to other versions, gcc@13 and earlier too?
$ set -x; for gcc in gcc-{11..14}; do $gcc -c conftest.c && $gcc -c -pipe conftest.c; done; set +x
+ for gcc in gcc-{11..14}
+ gcc-11 -c conftest.c
+ gcc-11 -c -pipe conftest.c
clang: error: no input files
+ for gcc in gcc-{11..14}
+ gcc-12 -c conftest.c
+ gcc-12 -c -pipe conftest.c
clang: error: no input files
+ for gcc in gcc-{11..14}
+ gcc-13 -c conftest.c
+ gcc-13 -c -pipe conftest.c
clang: error: no input files
+ for gcc in gcc-{11..14}
+ gcc-14 -c conftest.c
+ gcc-14 -c -pipe conftest.c
clang: error: no input files
+ set +x
Backporting work for GCC 13 is ongoing: https://github.com/iains/gcc-13-branch/commits/gcc-13-3-darwin. I believe it's nearly ready and is being tested now so we should be applying those changes soon.
GCC 12 and earlier has other compatibility issues with Xcode 16 which requires different patches, so the timeframe of that is unclear at the moment. A temporary workaround could be to use macos-13
, which will have Xcode 15.2 installed.
GCC 11 is technically EOL but we'll probably update it when patches are available since the macOS fork will continue development. GCC 10 and earlier are no longer supported by us on macOS 14 and later, regardless whether there's upstream patches or not.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew config:
brew doctor:
Verification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Compile with
-pipe
option.What happened (include all command output)?
Failed with "clang: error: no input files" message.
What did you expect to happen?
Compile as well as without
-pipe
option.Step-by-step reproduction instructions (by running
brew
commands)Create a C program that should compile successfully.
Compile it, and succeeds.
Compile it with
-pipe
option.Other gcc-14, such as MacPorts, apt on Ubuntu etc, work with
-pipe
option.