Open Brenneisen opened 1 month ago
Bump. This is happening for us as well.
os: linux
dist: focal
language: ruby
rvm:
- "2.7.5"
services:
- docker
deploy:
- provider: elasticbeanstalk
access_key_id: ${AWS_ACCESS_KEY_ID}
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
region: eu-west-1
app: {our app}
env: {our env}
bucket: {our bucket}
edge: true
on:
branch: development
Error:
Install deployment dependencies
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/travis/.rvm/gems/ruby-3.3.5/gems/racc-1.8.1/ext/racc/cparse
/home/travis/.rvm/rubies/ruby-3.3.5/bin/ruby extconf.rb
creating Makefile
current directory: /home/travis/.rvm/gems/ruby-3.3.5/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20240912-10121-9phwsw sitelibdir\=./.gem.20240912-10121-9phwsw clean
current directory: /home/travis/.rvm/gems/ruby-3.3.5/gems/racc-1.8.1/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20240912-10121-9phwsw sitelibdir\=./.gem.20240912-10121-9phwsw
compiling cparse.c
gcc: error: unrecognized command line option ‘-fdeclspec’
gcc: error: unrecognized command line option ‘-Wextra-tokens’; did you mean ‘-Wextra-semi’?
gcc: error: unrecognized command line option ‘-Wdivision-by-zero’; did you mean ‘-Wdiv-by-zero’?
gcc: error: unrecognized command line option ‘-Wshorten-64-to-32’
make: *** [Makefile:248: cparse.o] Error 1
make failed, exit code 2`
EDIT: Apparently bionic, focal and jammy where updated to ruby v3.3.5 -> https://changelog.travis-ci.com/build-environments-updates-deployed-300293. So why changing the dist works, is beyond me.
Fixed by using a dist with an internal ruby version < 3.3.4.
So this will work:
os: linux
dist: bionic
language: ruby
As bionic comes with ruby v3.3.0
RVM seems to have an compiler version mismatch for prebuilt binaries in 3.3.4 and 3.3.5 -> https://github.com/rubygems/rubygems/issues/8015 and https://github.com/rvm/rvm/issues/5502
During the installation of dpl the following error occurred: