Skip to content

gcc@14 is broken #228131

@bigerl

Description

@bigerl

brew gist-logs <formula> link OR brew config AND brew doctor output

brew uninstall gcc@14
  brew install gcc@14
  brew config || true
  brew doctor || true
  
  CC_VER="gcc-14"
  if [[ ${CC_VER:0:4} != gcc- ]] ; then exit 1; fi
  GCC_VERSION=${CC_VER:4:6}
  GCC_PREFIX="$(brew --prefix "gcc@${GCC_VERSION}")"
  echo CC="${GCC_PREFIX}/bin/gcc-${GCC_VERSION}" >> $GITHUB_ENV
  echo CXX="${GCC_PREFIX}/bin/g++-${GCC_VERSION}" >> $GITHUB_ENV
  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
Uninstalling /opt/homebrew/Cellar/gcc@14/14.3.0... (1,524 files, 411.8MB)
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/14/manifests/14.3.0
==> Fetching gcc@14
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/14/blobs/sha256:a506cdc6f124d98860376b407ea1ccd7efc26c17599dd36e8d84fe5a8d9174d7
==> Pouring [email protected]_sequoia.bottle.tar.gz
🍺  /opt/homebrew/Cellar/gcc@14/14.3.0: 1,524 files, 411.8MB
HOMEBREW_VERSION: 4.5.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6301c2d31f8dc07d2d16ddaa33711cf5a41d4e17
Last commit: 11 days ago
Branch: stable
Core tap HEAD: d51ff323afd93d393ef5b24ea1475ec9880d1e0f
Core tap last commit: 3 days ago
Core tap JSON: 23 Jun 04:15 UTC
Core cask tap HEAD: 0eb19f36ef456af96f6c06c802909c31d22ed153
Core cask tap last commit: 2 days ago
Core cask tap JSON: 23 Jun 04:15 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: ["--no-quarantine"]
HOMEBREW_COLOR: set
HOMEBREW_MAKE_JOBS: 3
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_INSTALL_CLEANUP: set
Homebrew Ruby: 3.4.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/bin/ruby
CPU: 3-core 64-bit dunno
Clang: 16.0.0 build 1600
Git: 2.50.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.4.0.0.1.1747106510
Xcode: 16.0 => /Applications/Xcode_16.app/Contents/Developer
Rosetta 2: false
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: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  [email protected]

Warning: The following formulae have the same name as core formulae:
  aws/tap/eksctl
  hashicorp/tap/consul-template
  hashicorp/tap/levant
  hashicorp/tap/nomad
  hashicorp/tap/packer
  hashicorp/tap/terraform
  hashicorp/tap/terraform-ls
  hashicorp/tap/vault
  hashicorp/tap/waypoint
Some of these can be resolved with:
  brew untap aws/tap

Warning: You have an unnecessary local Cask tap.
This can cause problems installing up-to-date casks.
Please remove it by running:
  brew untap homebrew/cask

Warning: You have an unnecessary local Core tap!
This can cause problems installing up-to-date formulae.
Please remove it by running:
 brew untap homebrew/core

Warning: You have uncommitted modifications to Homebrew/homebrew-core.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /opt/homebrew/Library/Taps/homebrew/homebrew-core && git stash -u && git clean -d -f

Uncommitted files:
   M Formula/o/[email protected]

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

The problem occurs since about 2 weeks. Builds including iostream or cstdio.h seem to break since then.
This is problem also seems to affect other repositories using github action runners, e.g., munich-quantum-toolkit/core#979 So it is probably a rather major issue affecting everybody who uses brew to install a recent gcc on macos GitHub Action runners.

What happened (include all command output)?

  cmake -G Ninja -B build_dir -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    CC: /opt/homebrew/opt/gcc@14/bin/gcc-14
    CXX: /opt/homebrew/opt/gcc@14/bin/g++-14
    CXXFLAGS: -march=armv8-a+aes+sha2 -Wno-unused-command-line-argument  
  
-- The C compiler identification is GNU 14.3.0
-- The CXX compiler identification is GNU 14.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/opt/gcc@14/bin/gcc-14 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/opt/gcc@14/bin/g++-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMake-Conan: first find_package() found. Installing dependencies with Conan
-- CMake-Conan: Checking if a default profile exists
/Users/runner/.conan2/profiles/default
-- CMake-Conan: cmake_system_name=Darwin
-- CMake-Conan: cmake_osx_sysroot=/Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk
-- CMake-Conan: cmake_osx_deployment_target=
-- CMake-Conan: cmake_system_processor=armv8
-- CMake-Conan: CMake compiler=GNU
-- CMake-Conan: CMake compiler version=14.3.0
-- CMake-Conan: [settings] compiler=gcc
-- CMake-Conan: [settings] compiler.version=14
-- Performing Test _conan_is_gnu_libstdcxx
-- Performing Test _conan_is_gnu_libstdcxx - Success
-- Performing Test _conan_gnu_libstdcxx_is_cxx11_abi
-- Performing Test _conan_gnu_libstdcxx_is_cxx11_abi - Failed
-- CMake-Conan: Creating profile /Users/runner/work/rdf4cpp/rdf4cpp/build_dir/conan_host_profile
-- CMake-Conan: Profile: 
[settings]
arch=armv8
os=Macos
compiler=gcc
compiler.version=14
-- Performing Test HWY_EMSCRIPTEN
-- Performing Test HWY_EMSCRIPTEN - Failed
-- Performing Test HWY_RISCV
-- Performing Test HWY_RISCV - Failed
-- Looking for sys/auxv.h
-- Looking for sys/auxv.h - not found
-- Looking for asm/hwcap.h
-- Looking for asm/hwcap.h - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/build/Debug
highway/1.2.0: Running CMake.build()
highway/1.2.0: RUN: cmake --build "/Users/runner/.conan2/p/b/highwc1d165efaf09b/b/build/Debug" -- -j3
[1/40] Building CXX object CMakeFiles/hwy.dir/hwy/abort.cc.o
FAILED: CMakeFiles/hwy.dir/hwy/abort.cc.o 
/opt/homebrew/opt/gcc@14/bin/g++-14 -DHWY_STATIC_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -DTOOLCHAIN_MISS_SYS_AUXV_H -D_GLIBCXX_USE_CXX11_ABI=0 -I/Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src -march=armv8-a+aes+sha2 -Wno-unused-command-line-argument -g -arch arm64 -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -std=c++17 -MD -MT CMakeFiles/hwy.dir/hwy/abort.cc.o -MF CMakeFiles/hwy.dir/hwy/abort.cc.o.d -o CMakeFiles/hwy.dir/hwy/abort.cc.o -c /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/abort.cc
In file included from /opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/stdio.h:75,
                 from /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/abort.cc:9:
/opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/_stdio.h:78:10: fatal error: _bounds.h: No such file or directory
   78 | #include <_bounds.h>
      |          ^~~~~~~~~~~
compilation terminated.
[2/40] Building CXX object CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o
FAILED: CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o 
/opt/homebrew/opt/gcc@14/bin/g++-14 -DHWY_STATIC_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -DTOOLCHAIN_MISS_SYS_AUXV_H -D_GLIBCXX_USE_CXX11_ABI=0 -I/Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src -march=armv8-a+aes+sha2 -Wno-unused-command-line-argument -g -arch arm64 -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -std=c++17 -MD -MT CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o -MF CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o.d -o CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o -c /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/nanobenchmark.cc
In file included from /opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/stdio.h:75,
                 from /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/nanobenchmark.cc:18:
/opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/_stdio.h:78:10: fatal error: _bounds.h: No such file or directory
   78 | #include <_bounds.h>
      |          ^~~~~~~~~~~
compilation terminated.
[3/40] Building CXX object CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o
FAILED: CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o 
/opt/homebrew/opt/gcc@14/bin/g++-14 -DHWY_STATIC_DEFINE -DTOOLCHAIN_MISS_ASM_HWCAP_H -DTOOLCHAIN_MISS_SYS_AUXV_H -D_GLIBCXX_USE_CXX11_ABI=0 -I/Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src -march=armv8-a+aes+sha2 -Wno-unused-command-line-argument -g -arch arm64 -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-builtin-macro-redefined -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor -Wcast-align -fmath-errno -fno-exceptions -Wno-psabi -std=c++17 -MD -MT CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o -MF CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o.d -o CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o -c /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/aligned_allocator.cc
In file included from /opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/stdio.h:75,
                 from /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_wchar.h:90,
                 from /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h:67,
                 from /opt/homebrew/Cellar/gcc@14/14.3.0/include/c++/14/cwchar:44,
                 from /opt/homebrew/Cellar/gcc@14/14.3.0/include/c++/14/bits/postypes.h:40,
                 from /opt/homebrew/Cellar/gcc@14/14.3.0/include/c++/14/iosfwd:42,
                 from /opt/homebrew/Cellar/gcc@14/14.3.0/include/c++/14/bits/shared_ptr.h:52,
                 from /opt/homebrew/Cellar/gcc@14/14.3.0/include/c++/14/memory:80,
                 from /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/aligned_allocator.h:27,
                 from /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/src/hwy/aligned_allocator.cc:16:
/opt/homebrew/Cellar/gcc@14/14.3.0/lib/gcc/14/gcc/aarch64-apple-darwin24/14/include-fixed/

[job-logs.txt](https://github.com/user-attachments/files/20906795/job-logs.txt)

_stdio.h:78:10: fatal error: _bounds.h: No such file or directory
   78 | #include <_bounds.h>
      |          ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
highway/1.2.0: ERROR: 
Package '644a30d5ea0b18c0d10ed2ec3b4f910d9f6d7b99' build failed
highway/1.2.0: WARN: Build folder /Users/runner/.conan2/p/b/highwc1d165efaf09b/b/build/Debug
ERROR: highway/1.2.0: Error in build() method, line 96
	cmake.build()
	ConanException: Error 1 while executing
CMake Error at conan_provider.cmake:490 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  conan_provider.cmake:598 (conan_install)
  CMakeLists.txt:17 (find_package)
CMake Error at CMakeLists.txt:17 (find_package):
  By not providing "Findexpected-lite.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "expected-lite", but CMake did not find one.
  Could not find a package configuration file provided by "expected-lite"
  with any of the following names:
    expected-liteConfig.cmake
    expected-lite-config.cmake
  Add the installation prefix of "expected-lite" to CMAKE_PREFIX_PATH or set
  "expected-lite_DIR" to a directory containing one of the above files.  If
  "expected-lite" provides a separate development package or SDK, be sure it
  has been installed.
-- Configuring incomplete, errors occurred!
See also "/Users/runner/work/rdf4cpp/rdf4cpp/build_dir/CMakeFiles/CMakeOutput.log".
See also "/Users/runner/work/rdf4cpp/rdf4cpp/build_dir/CMakeFiles/CMakeError.log".
Error: Process completed with exit code 1.

What did you expect to happen?

Builds were successful before. Then, with an update either in the GitHub Actions macos image or Homebrew's gcc@14, it stopped working.

Step-by-step reproduction instructions (by running brew commands)

Rerun the action as described here: 
- https://github.com/rdf4cpp/rdf4cpp/blob/6ed561f0876bc4ad36a79fbaa8caf4140e17e453/.github/workflows/reusable_run_test_and_examples_by_linking_type.yml (see this PR https://github.com/rdf4cpp/rdf4cpp/pull/384)

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream issueAn upstream issue report is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions