You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The consul-ui packages currently fails to build on 18.03 and master.
Steps to reproduce
$ nix-shell -p consul-ui
these derivations will be built:
/nix/store/x8b8xlknjh425ky2l7r7dqsq8s7sf475-ruby2.4.4-json-1.8.2.drv
/nix/store/qwsf6rywlr5x6xlgjiwa8w3ryj246nys-ruby2.4.4-uglifier-2.7.0.drv
/nix/store/c2h1qnzv0zgvj12fg2wwl73f4qnc0wxb-consul-ui-deps.drv
/nix/store/h1cbwca0g7w1cv34qsb87qp2xwb125ph-consul-ui-0.9.3.drv
these paths will be fetched (25.46 MiB download, 76.03 MiB unpacked):
/nix/store/dh3csihrs75b43d3pdwd5ddnwn24yx9x-ruby2.4.4-libv8-3.16.14.11
/nix/store/nnklaqsdqmc7qgmvs7d26yq6qqf3czph-ruby2.4.4-therubyracer-0.12.1
/nix/store/s6di5sbkkwxm3brwhg1zdx9i8jc6y36j-v8-3.16.14.11
copying path '/nix/store/dh3csihrs75b43d3pdwd5ddnwn24yx9x-ruby2.4.4-libv8-3.16.14.11' from 'https://cache.nixos.org'...
copying path '/nix/store/s6di5sbkkwxm3brwhg1zdx9i8jc6y36j-v8-3.16.14.11' from 'https://cache.nixos.org'...
building '/nix/store/x8b8xlknjh425ky2l7r7dqsq8s7sf475-ruby2.4.4-json-1.8.2.drv'...
unpacking sources
patching sources
configuring
no configure script, doing nothing
installing
buildFlags:
WARNING: You build with buildroot.
Build root: /
Bin dir: /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/bin
Gem home: /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0
Building native extensions. This could take a while...
ERROR: Error installing /nix/store/5gwiszmhggjw9nii6as7z94yfsaip9yk-json-1.8.2.gem:
ERROR: Failed to build gem native extension.
current directory: /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
/nix/store/x932mdkafx2c4dzqznj7cwa6974lywr0-ruby-2.4.4/bin/ruby -r ./siteconf20180530-587-28rntw.rb extconf.rb
creating Makefile
current directory: /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/gems/json-1.8.2/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function'generate_json':
generator.c:867:25: error: 'rb_cFixnum' undeclared (first use in this function); did you mean 'mFixnum'?
} elseif (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:867:25: note: each undeclared identifier is reported only once foreach function it appearsin
generator.c:869:25: error: 'rb_cBignum' undeclared (first use in this function); did you mean 'rb_cFixnum'?
} elseif (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnum
generator.c: At top level:
cc1: warning: unrecognized command line option '-Wno-self-assign'
cc1: warning: unrecognized command line option '-Wno-constant-logical-operand'
cc1: warning: unrecognized command line option '-Wno-parentheses-equality'
make: *** [Makefile:242: generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/gems/json-1.8.2 for inspection.
Results logged to /nix/store/ldwp1hd5a8riflyqqrz6lwnwjb9c754h-ruby2.4.4-json-1.8.2/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.2/gem_make.out
builder for'/nix/store/x8b8xlknjh425ky2l7r7dqsq8s7sf475-ruby2.4.4-json-1.8.2.drv' failed with exit code 1
cannot build derivation '/nix/store/c2h1qnzv0zgvj12fg2wwl73f4qnc0wxb-consul-ui-deps.drv': 1 dependencies couldn't be builtcannot build derivation '/nix/store/h1cbwca0g7w1cv34qsb87qp2xwb125ph-consul-ui-0.9.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/h1cbwca0g7w1cv34qsb87qp2xwb125ph-consul-ui-0.9.3.drv' failed
Issue description
The consul-ui packages currently fails to build on 18.03 and master.
Steps to reproduce
Technical details
Fix on 18.03
On 18.03, applying the following patch causes the build to succeed:
Failure on master
however, on master, it fails with:
Misc
I've tried various things including using different versions of ruby and bundler, but none have solved the issue.
The text was updated successfully, but these errors were encountered: