Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update types #38

Merged
merged 5 commits into from
Dec 23, 2024
Merged

Update types #38

merged 5 commits into from
Dec 23, 2024

Conversation

ebma
Copy link
Member

@ebma ebma commented Dec 23, 2024

This PR

  • fixes a problem in the Dockerfile that made the generation of new types impossible
  • regenerates the SCP types

The error that occurred when running

$ cd autogenerator
$ npm run build

is

5.805 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
5.805 
5.805     current directory: /usr/local/bundle/gems/json-2.9.1/ext/json/ext/generator
5.805 /usr/local/bin/ruby extconf.rb
5.805 checking for whether -std=c99 is accepted as CFLAGS... *** extconf.rb failed ***
5.805 Could not create Makefile due to some reason, probably lack of necessary
5.805 libraries and/or headers.  Check the mkmf.log file for more details.  You may
5.805 need configuration options.
5.805 
5.805 Provided configuration options:
5.805   --with-opt-dir
5.805   --without-opt-dir
5.805   --with-opt-include
5.805   --without-opt-include=${opt-dir}/include
5.805   --with-opt-lib
5.805   --without-opt-lib=${opt-dir}/lib
5.805   --with-make-prog
5.805   --without-make-prog
5.805   --srcdir=.
5.805   --curdir
5.805   --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
5.805 /usr/local/lib/ruby/3.2.0/mkmf.rb:490:in `try_do': The compiler failed to
5.805 generate an executable file. (RuntimeError)
5.805 You have to install development tools first.
5.805 
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:616:in `block in try_compile'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:563:in `with_werror'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:616:in `try_compile'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:680:in `try_cflags'
5.805 from /usr/local/lib/ruby/3.2.0/mkmf.rb:1025:in `block (2 levels) in
5.805 append_cflags'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:989:in `block in checking_for'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:354:in `block (2 levels) in postpone'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:324:in `open'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:354:in `block in postpone'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:324:in `open'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:350:in `postpone'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:988:in `checking_for'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:1024:in `block in append_cflags'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:1023:in `each'
5.805   from /usr/local/lib/ruby/3.2.0/mkmf.rb:1023:in `append_cflags'
5.805   from extconf.rb:7:in `<main>'
5.805 
5.805 To see why this extension failed to compile, please check the mkmf.log which can
5.805 be found here:
5.805 
5.805   /usr/local/bundle/extensions/aarch64-linux-musl/3.2.0/json-2.9.1/mkmf.log
5.805 
5.805 extconf failed, exit code 1
5.805 
5.805 Gem files will remain installed in /usr/local/bundle/gems/json-2.9.1 for
5.805 inspection.
5.805 Results logged to
5.805 /usr/local/bundle/extensions/aarch64-linux-musl/3.2.0/json-2.9.1/gem_make.out
5.805 
5.805   /usr/local/lib/ruby/3.2.0/rubygems/ext/builder.rb:119:in `run'
5.805   /usr/local/lib/ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:28:in `build'
5.805   /usr/local/lib/ruby/3.2.0/rubygems/ext/builder.rb:187:in `build_extension'
5.805 /usr/local/lib/ruby/3.2.0/rubygems/ext/builder.rb:221:in `block in
5.805 build_extensions'
5.805   /usr/local/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `each'
5.805   /usr/local/lib/ruby/3.2.0/rubygems/ext/builder.rb:218:in `build_extensions'
5.805   /usr/local/lib/ruby/3.2.0/rubygems/installer.rb:846:in `build_extensions'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/rubygems_gem_installer.rb:111:in
5.805 `build_extensions'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/rubygems_gem_installer.rb:30:in
5.805 `install'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/source/rubygems.rb:205:in
5.805 `install'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/installer/gem_installer.rb:55:in
5.805 `install'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/installer/gem_installer.rb:17:in
5.805 `install_from_spec'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/installer/parallel_installer.rb:133:in
5.805 `do_install'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/installer/parallel_installer.rb:124:in
5.805 `block in worker_pool'
5.805   /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/worker.rb:62:in `apply_func'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/worker.rb:57:in `block in
5.805 process_queue'
5.805   /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/worker.rb:54:in `loop'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/worker.rb:54:in
5.805 `process_queue'
5.805 /usr/local/bundle/gems/bundler-2.6.1/lib/bundler/worker.rb:90:in `block (2
5.805 levels) in create_threads'
5.805 
5.805 An error occurred while installing json (2.9.1), and Bundler cannot continue.
5.805 
5.805 In Gemfile:
5.805   octokit was resolved to 9.2.0, which depends on
5.805     sawyer was resolved to 0.9.2, which depends on
5.805       faraday was resolved to 2.12.2, which depends on
5.805         json
------
Dockerfile:11
--------------------
   9 |     ADD ./ruby /data
  10 |     RUN #apt-get update && apt-get install -y build-essential
  11 | >>> RUN bundle install
  12 |     
  13 |     CMD ["rake", "xdr:update"]
--------------------
ERROR: failed to solve: process "/bin/sh -c bundle install" did not complete successfully: exit code: 5

@ebma ebma merged commit 5760e4d into master Dec 23, 2024
1 check passed
@ebma ebma deleted the chore/update-types branch December 23, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant