-
Additional Info
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I think what to do here is to start narrowing this down. You mention Python a lot, but the GCC crash seems to indicate that Python is irrelevant. It could very easily be an issue with QEMU. Here's an example I ran with a OrbStack + Rosetta. Check and see if this works or not under your Colima setup: $ docker run --platform linux/amd64 -it --rm homebrew/ubuntu22.04:master
linuxbrew@a302fb021ebe:~$ brew install gcc@11
Running `brew update --auto-update`...
==> Homebrew collects anonymous 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
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/11/manifests/11.4.0-1
######################################################################### 100.0%
==> Fetching dependencies for gcc@11: gmp, isl, mpfr, libmpc, lz4, xz, zlib, zstd and binutils
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0
######################################################################### 100.0%
==> Fetching gmp
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:3dca3544faca88
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.26
######################################################################### 100.0%
==> Fetching isl
==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:db14ba1e4ea23a
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.2.1
######################################################################### 100.0%
==> Fetching mpfr
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/blobs/sha256:18857bac44d9f
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.3.1
######################################################################### 100.0%
==> Fetching libmpc
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/blobs/sha256:f6542ae5bcf
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.4
######################################################################### 100.0%
==> Fetching lz4
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/blobs/sha256:1757fefc3840e1
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.4.5
######################################################################### 100.0%
==> Fetching xz
==> Downloading https://ghcr.io/v2/homebrew/core/xz/blobs/sha256:50675435a60d119
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zlib/manifests/1.3
######################################################################### 100.0%
==> Fetching zlib
==> Downloading https://ghcr.io/v2/homebrew/core/zlib/blobs/sha256:a47a3b5c8ee68
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.5-1
######################################################################### 100.0%
==> Fetching zstd
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/blobs/sha256:96afcbd191c99
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.41_1
######################################################################### 100.0%
==> Fetching binutils
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/blobs/sha256:ff5d14a01
######################################################################### 100.0%
==> Fetching gcc@11
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/11/blobs/sha256:ec2b9b1a17f
######################################################################### 100.0%
==> Installing dependencies for gcc@11: gmp, isl, mpfr, libmpc, lz4, xz, zlib, zstd and binutils
==> Installing gcc@11 dependency: gmp
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/70a72a71216843d66a953c06ff6337445ce9bc94fae9f0e301e2f59005274a8e--gmp-6.3.0.bottle_manifest.json
==> Pouring gmp--6.3.0.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/gmp/6.3.0: 23 files, 3.9MB
==> Installing gcc@11 dependency: isl
==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.26
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/ec0bbec77171645273dd59a9ccfdf290deccd999b3ca2082e0478d282b777ec0--isl-0.26.bottle_manifest.json
==> Pouring isl--0.26.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/isl/0.26: 74 files, 9.8MB
==> Installing gcc@11 dependency: mpfr
==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.2.1
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/a2a3424f4974f6febfa0334a93f35f508eaef3f4ad04320f73d9498302295635--mpfr-4.2.1.bottle_manifest.json
==> Pouring mpfr--4.2.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/mpfr/4.2.1: 31 files, 3.9MB
==> Installing gcc@11 dependency: libmpc
==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.3.1
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/fdfa98e0f8bb3ce075cb32776ac2345aa2f89252706c162aecfc841085fa76be--libmpc-1.3.1.bottle_manifest.json
==> Pouring libmpc--1.3.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/libmpc/1.3.1: 13 files, 614.8KB
==> Installing gcc@11 dependency: lz4
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.4
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/379e59b981667f9585b33a2ff318769d8edca3ce6fd2e9a67ed291ae3e0cc872--lz4-1.9.4.bottle_manifest.json
==> Pouring lz4--1.9.4.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/lz4/1.9.4: 22 files, 659.8KB
==> Installing gcc@11 dependency: xz
==> Downloading https://ghcr.io/v2/homebrew/core/xz/manifests/5.4.5
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/4e81fda476fb634a7e1ac650019bfe768a65d6c387015992df4cd75adf9b3fce--xz-5.4.5.bottle_manifest.json
==> Pouring xz--5.4.5.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/xz/5.4.5: 313 files, 3.8MB
==> Installing gcc@11 dependency: zlib
==> Downloading https://ghcr.io/v2/homebrew/core/zlib/manifests/1.3
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/b4c20c0489e59e6d8c5f8e4abdd47f07d52fe38699b6f0fea76781631025eecd--zlib-1.3.bottle_manifest.json
==> Pouring zlib--1.3.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/zlib/1.3: 13 files, 441.3KB
==> Installing gcc@11 dependency: zstd
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.5-1
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/fc13698599720a53800064b40cddd854399651cf8760d9b0e46092f2e8da701a--zstd-1.5.5-1.bottle_manifest.json
==> Pouring zstd--1.5.5.x86_64_linux.bottle.1.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/zstd/1.5.5: 31 files, 2.7MB
==> Installing gcc@11 dependency: binutils
==> Downloading https://ghcr.io/v2/homebrew/core/binutils/manifests/2.41_1
Already downloaded: /home/linuxbrew/.cache/Homebrew/downloads/5719c1ab7c1a761142ecbf7e99d196b1a5e6c1cae43737424dae6237609d4b86--binutils-2.41_1.bottle_manifest.json
==> Pouring binutils--2.41_1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/binutils/2.41_1: 4,729 files, 469.0MB
==> Installing gcc@11
==> Pouring [email protected]_64_linux.bottle.1.tar.gz
==> Creating the GCC specs file: /home/linuxbrew/.linuxbrew/Cellar/gcc@11/11.4.0
🍺 /home/linuxbrew/.linuxbrew/Cellar/gcc@11/11.4.0: 2,192 files, 347.8MB
==> Running `brew cleanup gcc@11`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
linuxbrew@a302fb021ebe:~$ echo 'int main() { float f = 1.1F; }' > test.cpp
linuxbrew@a302fb021ebe:~$ $(brew --prefix gcc@11)/bin/g++-11 test.cpp If you don't have the issue with the above, try slim down your setup as much as possible, e.g. run basic GCC 11 tests and remove setup steps to see what might trigger the issue. |
Beta Was this translation helpful? Give feedback.
That was it; I needed to specify to QEMU to use Nehalem in the Colima configuration in
~/.colima/default/colima.yaml
:Edit: I ended up needing to go even newer and found that
Skylake-Client-v3
instead ofNehalem
worked best for me to silence warnings about Nehalem lacking AVX.