Repository navigation
Closed
Labels
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: darwinRunning or building packages on Darwin
Description
Describe the bug
When I try building asciidoctor, I get an error that one of it's dependencies fails to build (nokogiri). I quickly checked ruby-gems and asciidoctor definitions, and haven't seen any change in a while. This was building with nixpkgs from Sep 2021.
Steps To Reproduce
Steps to reproduce the behavior:
nix-build . -K -A asciidoctor
Expected behavior
I would expect that this finishes successfully.
Additional context
This is the exact error message I get:
❯ nix-build . -K -A asciidoctor
these derivations will be built:
/nix/store/pqg9s25hdp4imwxn44ba2531qpshmfvm-ruby2.7.4-nokogiri-1.11.7.drv
/nix/store/raha8s790wf8crn4wnh9q3g4i8lln70y-ruby2.7.4-gepub-1.0.13.drv
/nix/store/l2vmd8zm04va3s2xvlsva3zghpam9y1q-ruby2.7.4-asciidoctor-epub3-1.5.1.drv
/nix/store/qw0pynpcnnzm9fa6cnlpvhyp85m29wp8-asciidoctor-2.0.15.drv
/nix/store/6y03307f7rbmsr2xim1xzf7rlf0v182j-asciidoctor-2.0.15.drv
building '/nix/store/pqg9s25hdp4imwxn44ba2531qpshmfvm-ruby2.7.4-nokogiri-1.11.7.drv'...
unpacking sources
patching sources
configuring
no configure script, doing nothing
installing
buildFlags: --use-system-libraries --with-zlib-lib=/nix/store/8qfa6i69ldha3rvvhhkkswmnqvjqabsi-zlib-1.2.11/lib --with-zlib-include=/nix/store/fiingcfsn0fgy2z3igp86gqm1w30wcd6-zlib-1.2.11-dev/include --with-xml2-lib=/nix/store/hm7xg5gdxpzaw2iw4c9kjms60mahyk19-libxml2-2.9.12/lib --with-xml2-include=/nix/store/1vpjj9aza91r164sfmcyjjnjfnczlps5-libxml2-2.9.12-dev/include/libxml2 --with-xslt-lib=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-xslt-include=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-exslt-lib=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-exslt-include=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-iconv-dir=/nix/store/gix4yzxa3hsvqdpw7g46894pl0b53rl4-libiconv-50
WARNING: You build with buildroot.
Build root: /
Bin dir: /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/bin
Gem home: /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0
Plugins dir: /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/plugins
Building native extensions with: '--use-system-libraries --with-zlib-lib=/nix/store/8qfa6i69ldha3rvvhhkkswmnqvjqabsi-zlib-1.2.11/lib --with-zlib-include=/nix/store/fiingcfsn0fgy2z3igp86gqm1w30wcd6-zlib-1.2.11-dev/include --with-xml2-lib=/nix/store/hm7xg5gdxpzaw2iw4c9kjms60mahyk19-libxml2-2.9.12/lib --with-xml2-include=/nix/store/1vpjj9aza91r164sfmcyjjnjfnczlps5-libxml2-2.9.12-dev/include/libxml2 --with-xslt-lib=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-xslt-include=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-exslt-lib=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-exslt-include=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-iconv-dir=/nix/store/gix4yzxa3hsvqdpw7g46894pl0b53rl4-libiconv-50'
This could take a while...
ERROR: Error installing /nix/store/a35hgacdgwh9a52mx6ssf0ijb60axkcn-nokogiri-1.11.7.gem:
ERROR: Failed to build gem native extension.
current directory: /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.7/ext/nokogiri
/nix/store/6pmrf1633z5c9b73w6a8ah4h65gxhqvb-ruby-2.7.4/bin/ruby -I /nix/store/6pmrf1633z5c9b73w6a8ah4h65gxhqvb-ruby-2.7.4/lib/ruby/2.7.0 -r ./siteconf20211103-70415-162rag0.rb extconf.rb --use-system-libraries --with-zlib-lib\=/nix/store/8qfa6i69ldha3rvvhhkkswmnqvjqabsi-zlib-1.2.11/lib --with-zlib-include\=/nix/store/fiingcfsn0fgy2z3igp86gqm1w30wcd6-zlib-1.2.11-dev/include --with-xml2-lib\=/nix/store/hm7xg5gdxpzaw2iw4c9kjms60mahyk19-libxml2-2.9.12/lib --with-xml2-include\=/nix/store/1vpjj9aza91r164sfmcyjjnjfnczlps5-libxml2-2.9.12-dev/include/libxml2 --with-xslt-lib\=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-xslt-include\=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-exslt-lib\=/nix/store/vvgrrrx1vyz4bf3dp6cnfn7lb9ln6naz-libxslt-1.1.34/lib --with-exslt-include\=/nix/store/pa6ryvi00jhvd4w8gcmgr6isphngv008-libxslt-1.1.34-dev/include --with-iconv-dir\=/nix/store/gix4yzxa3hsvqdpw7g46894pl0b53rl4-libiconv-50
checking for whether -g is accepted as CFLAGS... yes
checking for whether -Winline is accepted as CFLAGS... yes
checking for whether -Wmissing-noreturn is accepted as CFLAGS... yes
checking for whether -Wno-error=unused-command-line-argument-hard-error-in-future is accepted as CFLAGS... no
checking for whether -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2 is accepted as CPPFLAGS... yes
Building nokogiri using system libraries.
checking for gzdopen() in -lz... yes
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
checking for libxml-2.0 using `pkg_config`... no
Please install either the `pkg-config` utility or the `pkg-config` rubygem.
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
extconf.rb:266:in `ensure_package_configuration'
xml2 is missing. Please locate mkmf.log to investigate how it is failing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/nix/store/6pmrf1633z5c9b73w6a8ah4h65gxhqvb-ruby-2.7.4/bin/$(RUBY_BASE_NAME)
--help
--clean
--prevent-strip
--enable-system-libraries
--disable-system-libraries
--use-system-libraries
--enable-system-libraries
--disable-system-libraries
--use-system-libraries
--with-zlib-dir
--without-zlib-dir
--with-zlib-include=${zlib-dir}/include
--with-zlib-lib=${zlib-dir}/lib
--with-z-dir
--without-z-dir
--with-z-include
--without-z-include=${z-dir}/include
--with-z-lib
--without-z-lib=${z-dir}/lib
--with-zlib
--without-zlib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include=${xml2-dir}/include
--with-xml2-lib=${xml2-dir}/lib
--with-xml2lib
--without-xml2lib
--with-libxml2-dir
--without-libxml2-dir
--with-libxml2-include
--without-libxml2-include=${libxml2-dir}/include
--with-libxml2-lib
--without-libxml2-lib=${libxml2-dir}/lib
--with-libxml2lib
--without-libxml2lib
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-pkg-config
--without-pkg-config
--with-xml2lib
--without-xml2lib
--with-libxml2lib
--without-libxml2lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-17/2.7.0/nokogiri-1.11.7/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/gems/nokogiri-1.11.7 for inspection.
Results logged to /nix/store/gacpi6ya1vyqarah30zhhrhbbz1fzcr2-ruby2.7.4-nokogiri-1.11.7/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-17/2.7.0/nokogiri-1.11.7/gem_make.out
note: keeping build directory '/private/tmp/nix-build-ruby2.7.4-nokogiri-1.11.7.drv-1'
builder for '/nix/store/pqg9s25hdp4imwxn44ba2531qpshmfvm-ruby2.7.4-nokogiri-1.11.7.drv' failed with exit code 1
cannot build derivation '/nix/store/qw0pynpcnnzm9fa6cnlpvhyp85m29wp8-asciidoctor-2.0.15.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6y03307f7rbmsr2xim1xzf7rlf0v182j-asciidoctor-2.0.15.drv': 1 dependencies couldn't be built
error: build of '/nix/store/6y03307f7rbmsr2xim1xzf7rlf0v182j-asciidoctor-2.0.15.drv' failed
Notify maintainers
@gpyh @nicknovitski
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-darwin"`
- host os: `Darwin 18.7.0, macOS 10.14.6`
- multi-user?: `no`
- sandbox: `no`
- version: `nix-env (Nix) 2.3.16`
- channels(knl): `""`
- nixpkgs: `/nix/store/jx01qkcafxq71wdaaqjcn81ry4xyk14w-nixpkgs-src`Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: asciidoctor
# a list of nixos modules affected by the problem
module:Reacted by Matt Sawyer
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer6.topic: darwinRunning or building packages on Darwin
Activity
r-burns commentedon Nov 3, 2021
FYI, I noticed this issue in staging-next but didn't have time to diagnose before it landed. I'm bisecting it but it's very slow because a darwin bootstrap takes about 8 hours on my humble hardware. Hopefully I will find the culprit soon.
happysalada commentedon Nov 4, 2021
It took me a while!
#144582
You guys are welcome to test (just in case I missed something).
(since this breaks asciidoctor, it breaks ripgrep and then a bunch of things.)