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.
本文标签:
版权声明:本文标题:ruby on rails - Failed to build native gem extensions on Ubuntu 24.04 emulating arm64 with QEMU in Github Actions: gcc segfault 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741811956a2398849.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论