admin管理员组

文章数量:1310306

I am building a Ruby on Rails project into docker images with GitHub Actions: /.github/workflows/docker-image.yml

This has worked great for a while, but on my most recent change, it now consistently fails to build. It seems to be failing to build gem native extensions. My setup builds on both linux/amd64 and linux/arm64, using QEMU. The failure is only on linux/arm64, and it started when ubuntu-latest started pointing to 24.04 instead of 22.04.

Failed run:

Operating System
  Ubuntu
  24.04.1
  LTS
...
#22 [linux/arm64  5/11] RUN bundle install
...
#22 603.4 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
#22 603.4 gcc: internal compiler error: Segmentation fault signal terminated program cc1

Previous successful run:

Operating System
  Ubuntu
  22.04.5
  LTS

Any ideas why GCC is seg-faulting when building on arm64 with Ubuntu 24.04 but not 22.04?

Note: Builds do succeed when I explicitly specify ubuntu-22.04 instead of ubuntu-latest:

Edit: The initial failure was from the msgpack gem, I was able to remove that dependency, and then it failed on the pg gem. Both times the failure was the first native gem to be built so I don't think it is a gem-specific issue.

本文标签: