Closed longwdl closed 1 year ago
brew config
outputHOMEBREW_VERSION: 3.6.7 ORIGIN: https://github.com/Homebrew/brew HEAD: 6a7eac25e167a1eb2d49e13c8cc530a3188af995 Last commit: 4 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: a91882c2bd7f58d6b615b51f2aa0bf261073f12d Core tap last commit: 19 minutes ago Core tap branch: master HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 16 Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby CPU: 16-core 64-bit unknown_0x6_0xa5 Clang: N/A Git: 2.37.0 => /usr/bin/git Curl: 7.58.0 => /usr/bin/curl Kernel: Linux 5.15.0-52-generic x86_64 GNU/Linux OS: Unknown Host glibc: 2.27 /usr/bin/gcc: 7.5.0 /usr/bin/ruby: N/A glibc: 2.35_1 gcc@11: N/A gcc: 12.2.0 xorg: N/A
brew doctor
outputYour system is ready to brew.
Verification
- [x] I ran
brew update
and am still able to reproduce my issue.- [x] I have resolved all warnings from
brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Run
bear -- make
to generate compile_commands.json file.What happened (include all command output)?
> bear -- make make: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) make: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) > cat compile_commands.json []
What did you expect to happen?
File compile_commands.json fill with compiling details.
Step-by-step reproduction instructions (by running
brew
commands)โฏ docker run -it --rm homebrew/ubuntu18.04:3.5.4 bash linuxbrew@2c7b59cffe64:~$ brew update ==> Homebrew has enabled anonymous aggregate formula and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations Updated 1 tap (homebrew/core). ==> New Formulae agg go-camo popeye antidote go@1.18 postgresql@15 apophenia got protobuf@3 autocorrect gum prql-compiler aws2-wrap has prr bazarr helix purescript-language-server bdftopcf highway pymol berkeley-db@5 hof pymupdf bfgminer hpp-fcl python-build burst hyx python-gdbm@3.11 c iir1 python-tk@3.11 c2rust interface99 python-typing-extensions camlp-streams jj python@3.11 cargo-crev json2tsv pyyaml cargo-depgraph jupp qsv cargo-nextest kalign quilt-installer cargo-udeps kubesess railway cargo-zigbuild libbpf rdb cbindgen libeatmydata ripsecrets censys libff rome chain-bench liblbfgs rush-parallel circumflex libplacebo sambamba commitlint libretls scala@2.13 cpp-httplib liburing schemathesis cql-proxy libvatek sgn create-api licenseplist sgr crytic-compile licensor shaderc curlcpp linux-headers@5.15 slither-analyzer dart-sdk llvm@14 smap datatype99 lmfit snapcast distrobox lucky-commit snowball docker-buildx mailsy snowflake dooit manifest-tool solc-select dronedb meek spr dsda-doom mesheryctl sqlcmd dunamai metalang99 svt-av1 dura metview swiftdraw dynein mkp224o taplo echidna mqttui tbls edencommon mxnet tea enex2notion mycorrhiza tere fastfetch neovide textract felinks netcdf-cxx tfel fend netcdf-fortran tlsx ferium nmrpflash toml-test fonts-encodings nuraft treefmt fortls objconv trezor-bridge fred ocl-icd ttdl fuego-firestore onlykey-agent tuntox gator open62541 typewritten gaze opencl-icd-loader verovio gcc@11 openvi vile gcem ouch vineyard gdrive-downloader page vulkan-loader gebug pgsync wasm-micro-runtime ghc@8.10 pinocchio weasyprint ghorg pint x86_64-linux-gnu-binutils git-codereview pipe-rename xctesthtmlreport git-delete-merged-branches pixiewps xdg-ninja git-machete pkcs11-tools xq git-sync pocl xwin linuxbrew@2c7b59cffe64:~$ brew install bear Running `brew update --auto-update`... ==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/manifests/5.15.57-1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/linux-headers/5.15/blobs/sha256:8692682830cbb1 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8692682830 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/glibc/manifests/2.35_1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/glibc/blobs/sha256:274dd06ae6ecaee3025d6bf21cf ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:274dd06ae6 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1_1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:786ae29f0c0b06ea86e42bd9c6ac2 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:786ae29f0c ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.25 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:c0244c95ed9cc89b826868de83bec ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c0244c95ed ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.1.0-p13 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/blobs/sha256:345a3d99db0f4149f84f0aa16c0e ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:345a3d99db ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.2.1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/blobs/sha256:d74eb5f1377d8fa72fad88baca ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d74eb5f137 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.4 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/lz4/blobs/sha256:1757fefc3840e11c4822e4c2a95aa ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:1757fefc38 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.2.7 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:dda25f66145c180884d0550a36d684 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:dda25f6614 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/zlib/manifests/1.2.13 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/zlib/blobs/sha256:0082aa29a61507e237389ee4e9fb ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0082aa29a6 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.2-3 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/zstd/blobs/sha256:006b5ab6a4616a8b6f59953cb9ef ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:006b5ab6a4 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.39_1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/binutils/blobs/sha256:efa7497e2ea56d9b68ce4136 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:efa7497e2e ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/gcc/manifests/12.2.0-1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:c7f773f9af560766b2d971d815a8d ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c7f773f9af ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/fmt/manifests/9.1.0 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/fmt/blobs/sha256:978a0685bf616cf383c4ffacf8210 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:978a0685bf ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/abseil/manifests/20220623.1-1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/abseil/blobs/sha256:f35a7844efa0e3862361a1bbff ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f35a7844ef ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.18.1_1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/blobs/sha256:7b66f4b75a81bd37ad1eebefc4 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7b66f4b75a ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022-10-11 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:1b264e579e31b3041 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:1b264e579e ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1q ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:abec715f01eb20edda202 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:abec715f01 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/protobuf/manifests/21.8 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/protobuf/blobs/sha256:427c12abde99ab19c1a284df ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:427c12abde ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/re2/manifests/20220601 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/re2/blobs/sha256:0f6532af8d10af84905b47b7e1fe9 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0f6532af8d ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/grpc/manifests/1.50.0 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/grpc/blobs/sha256:471989e2b6652cf10d3c3785740a ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:471989e2b6 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/nlohmann-json/manifests/3.11.2 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/nlohmann-json/blobs/sha256:9ca4704d40b8e80ae94 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9ca4704d40 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/spdlog/manifests/1.10.0_1-1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/spdlog/blobs/sha256:5f2f10b826d54cdb6a3e8a4008 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5f2f10b826 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/bear/manifests/3.0.20_4 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/bear/blobs/sha256:5e533a4a8b72144dd716fd7d0d23 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5e533a4a8b ######################################################################## 100.0% ==> Installing dependencies for bear: linux-headers@5.15, glibc, gmp, isl, mpfr, libmpc, lz4, xz, zlib, zstd, binutils, gcc, fmt, abseil, c-ares, ca-certificates, openssl@1.1, protobuf, re2, grpc, nlohmann-json and spdlog ==> Installing bear dependency: linux-headers@5.15 ==> Pouring linux-headers@5.15--5.15.57.x86_64_linux.bottle.1.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/linux-headers@5.15/5.15.57: 963 files, 5.7MB ==> Installing bear dependency: glibc ==> Pouring glibc--2.35_1.x86_64_linux.bottle.tar.gz ==> /home/linuxbrew/.linuxbrew/Cellar/glibc/2.35_1/sbin/ldconfig ==> Installing locale data for en_US.UTF-8 ==> /home/linuxbrew/.linuxbrew/Cellar/glibc/2.35_1/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 ๐บ /home/linuxbrew/.linuxbrew/Cellar/glibc/2.35_1: 1,404 files, 47MB ==> Installing bear dependency: gmp ==> Pouring gmp--6.2.1_1.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/gmp/6.2.1_1: 23 files, 3.9MB ==> Installing bear dependency: isl ==> Pouring isl--0.25.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/isl/0.25: 74 files, 9.2MB ==> Installing bear dependency: mpfr ==> Pouring mpfr--4.1.0-p13.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/mpfr/4.1.0-p13: 31 files, 6.0MB ==> Installing bear dependency: libmpc ==> Pouring libmpc--1.2.1.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/libmpc/1.2.1: 13 files, 550.2KB ==> Installing bear dependency: lz4 ==> Pouring lz4--1.9.4.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/lz4/1.9.4: 22 files, 695.6KB ==> Installing bear dependency: xz ==> Pouring xz--5.2.7.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/xz/5.2.7: 151 files, 2.5MB ==> Installing bear dependency: zlib ==> Pouring zlib--1.2.13.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/zlib/1.2.13: 13 files, 471.8KB ==> Installing bear dependency: zstd ==> Pouring zstd--1.5.2.x86_64_linux.bottle.3.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/zstd/1.5.2: 31 files, 2.6MB ==> Installing bear dependency: binutils ==> Pouring binutils--2.39_1.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/binutils/2.39_1: 4,687 files, 370.5MB ==> Installing bear dependency: gcc ==> Pouring gcc--12.2.0.x86_64_linux.bottle.1.tar.gz ==> Creating the GCC specs file: /home/linuxbrew/.linuxbrew/Cellar/gcc/12.2.0/bin/../lib/gcc/cu ๐บ /home/linuxbrew/.linuxbrew/Cellar/gcc/12.2.0: 1,633 files, 306.4MB ==> Installing bear dependency: fmt ==> Pouring fmt--9.1.0.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/fmt/9.1.0: 27 files, 1.2MB ==> Installing bear dependency: abseil ==> Pouring abseil--20220623.1.x86_64_linux.bottle.1.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/abseil/20220623.1: 590 files, 6.0MB ==> Installing bear dependency: c-ares ==> Pouring c-ares--1.18.1_1.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/c-ares/1.18.1_1: 87 files, 627.9KB ==> Installing bear dependency: ca-certificates ==> Pouring ca-certificates--2022-10-11.all.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/ca-certificates/2022-10-11: 3 files, 241.3KB ==> Installing bear dependency: openssl@1.1 ==> Pouring openssl@1.1--1.1.1q.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1q: 8,411 files, 24.4MB ==> Installing bear dependency: protobuf ==> Pouring protobuf--21.8.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/protobuf/21.8: 282 files, 37.2MB ==> Installing bear dependency: re2 ==> Pouring re2--20220601.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/re2/20220601: 17 files, 756.5KB ==> Installing bear dependency: grpc ==> Pouring grpc--1.50.0.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/grpc/1.50.0: 328 files, 21.4MB ==> Installing bear dependency: nlohmann-json ==> Pouring nlohmann-json--3.11.2.all.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/nlohmann-json/3.11.2: 53 files, 1.3MB ==> Installing bear dependency: spdlog ==> Pouring spdlog--1.10.0_1.x86_64_linux.bottle.1.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/spdlog/1.10.0_1: 99 files, 2.3MB ==> Installing bear ==> Pouring bear--3.0.20_4.x86_64_linux.bottle.tar.gz ๐บ /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4: 48 files, 3.6MB ==> Running `brew cleanup bear`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). linuxbrew@2c7b59cffe64:~$ echo "int main(void){return 0;}" >tt.c linuxbrew@2c7b59cffe64:~$ echo -e 'tt:\n\tcc -o tt tt.c' >Makefile linuxbrew@2c7b59cffe64:~$ make cc -o tt tt.c linuxbrew@2c7b59cffe64:~$ rm tt linuxbrew@2c7b59cffe64:~$ bear -- make make: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) make: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) linuxbrew@2c7b59cffe64:~$ cat compile_commands.json [] linuxbrew@2c7b59cffe64:~$ ldd /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/linuxbrew/.linuxbrew/Cellar/bear/3.0.20_4/lib/bear/libexec.so) linux-vdso.so.1 (0x00007ffc841e5000) libstdc++.so.6 => /home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/libstdc++.so.6 (0x00007f71ac60a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f71ac219000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f71abe7b000) /lib64/ld-linux-x86-64.so.2 (0x00007f71ac87f000) libgcc_s.so.1 => /home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/libgcc_s.so.1 (0x00007f71aca71000)
I walk around this problem by disalbe homebrew auto update.
export HOMEBREW_NO_AUTO_UPDATE=1
brew config
outputbrew doctor
outputVerification
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)?
Run
bear -- make
to generate compile_commands.json file.What happened (include all command output)?
What did you expect to happen?
File compile_commands.json fill with compiling details.
Step-by-step reproduction instructions (by running
brew
commands)