ebrains-spack-builds fails with gcc@13.3.0
Summary
ebrains-spack-builds fails in general for a number of sub-packages, this issue is specifically backlogged for the package: bazel@5.4.0
Summary | Spack package build failure |
Package info | bazel@5.4.0 |
System | JSC: JUWELS, Local installation: Ubuntu |
Related | NA |
Steps to reproduce the issue
Follow the steps below to reproduce the error:
- Ensure that gcc@13.3.0 is installed in the development setup.
- Clone the source repository:
git clone https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds.git
- Clone Spack:
git clone --depth 1 -c advice.detachedHead=false -c feature.manyFiles=true --branch v0.21.1 https://github.com/spack/spack
- Source Spack:
source spack/share/spack/setup-env.sh
- Add the Spack repository:
spack repo add ebrains-spack-builds
- Set the system name:
export SYSTEMNAME=ebrainslab
- Modify
<checkout-dir>/ebrains-spack-builds/spack.yaml
to include onlybazel@5.4.0
in thespec
section. - Modify
<checkout-dir>/ebrains-spack-builds/site-config/ebrainslab/packages.yaml
to remove allpy-*
packages. - Ensure that
<checkout-dir>/ebrains-spack-builds/site-config/ebrainslab/packages.yaml
specifies gcc@13.3.0:packages: all: target: [x86_64] compiler: [gcc@13.3.0]
- Remove
<checkout-dir>/ebrains-spack-builds/site-config/ebrainslab/spack.yaml
. - Start the build:
spack -d --env ebrains-spack-builds -j8 install --fresh
- The build of Bazel will fail with the errors described in the section below.
The full error log is attached.install_log_2025-01-31-15-43-07.txt
Error message
Error message
11851 44 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::c;
11852 | ^~~~~~~~~~~~~~~~~~~~~~~
11853 external/com_google_absl/absl/strings/internal/str_format/extension.h:169:18: note: in expansion of macro 'ABSL_INTERNAL_CHAR_SET_CASE'
11854 169 | X_VAL(n) X_SEP X_VAL(p)
11855 | ^~~~~
11856 external/com_google_absl/absl/strings/internal/str_format/extension.cc:45:1: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
11857 45 | ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_CHAR_SET_CASE, )
11858 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0;91m>> 11859 external/com_google_absl/absl/strings/internal/str_format/extension.cc:49:11: error: 'FormatConversionCharSet' does not name a type; did you mean 'F
ormatConversionCharInternal'?[0m
11860 49 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::kStar;
11861 | ^~~~~~~~~~~~~~~~~~~~~~~
11862 | FormatConversionCharInternal
[0;91m>> 11863 external/com_google_absl/absl/strings/internal/str_format/extension.cc:51:11: error: 'FormatConversionCharSet' does not name a type; did you mean 'F
ormatConversionCharInternal'?[0m
11864 51 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::kIntegral;
11865 | ^~~~~~~~~~~~~~~~~~~~~~~
11866 | FormatConversionCharInternal
[0;91m>> 11867 external/com_google_absl/absl/strings/internal/str_format/extension.cc:53:11: error: 'FormatConversionCharSet' does not name a type; did you mean 'F
ormatConversionCharInternal'?[0m
11868 53 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::kFloating;
11869 | ^~~~~~~~~~~~~~~~~~~~~~~
11870 | FormatConversionCharInternal
[0;91m>> 11871 external/com_google_absl/absl/strings/internal/str_format/extension.cc:55:11: error: 'FormatConversionCharSet' does not name a type; did you mean 'F
ormatConversionCharInternal'?[0m
11872 55 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::kNumeric;
11873 | ^~~~~~~~~~~~~~~~~~~~~~~
11874 | FormatConversionCharInternal
[0;91m>> 11875 external/com_google_absl/absl/strings/internal/str_format/extension.cc:57:11: error: 'FormatConversionCharSet' does not name a type; did you mean 'F
ormatConversionCharInternal'?[0m
11876 57 | constexpr FormatConversionCharSet FormatConversionCharSetInternal::kPointer;
11877 | ^~~~~~~~~~~~~~~~~~~~~~~
11878 | FormatConversionCharInternal
11879 [1,321 / 2,422] 7 actions running
11880 Compiling upbc/protoc-gen-upb.cc [for host]; 2s local
11881 Compiling absl/strings/internal/cord_rep_btree.cc [for host]; 1s local
...
11898 INFO: Elapsed time: 192.768s, Critical Path: 75.43s
11899 [1,328 / 2,422] checking cached actions
11900
11901 INFO: 1328 processes: 77 internal, 1028 local, 223 worker.
11902 [1,328 / 2,422] checking cached actions
11903
[0;91m>> 11904 FAILED: Build did NOT complete successfully[0m
11905
[0;91m>> 11906 FAILED: Build did NOT complete successfully[0m
11907
11908 ERROR: Could not build Bazel
Information on your system
GCC version: gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Spack: v0.21.1
Operating system:
- Description: Ubuntu 24.04.1 LTS
- Release: 24.04
- Codename: noble
Additional information
This appears to be a known issue in the Spack community: spack/spack#41346. If the build explicitly uses gcc@10.3.0, the Bazel build will succeed.
The following packages also failed during the complete build of ebrains-spack-builds. Each of these failures can be individually reproduced by following similar steps: