pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59444: textproc/ruby-nokogiri fails to install



>Number:         59444
>Category:       pkg
>Synopsis:       textproc/ruby-nokogiri fails to install
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 26 20:10:00 +0000 2025
>Originator:     Frédéric Fauberteau
>Release:        NetBSD 10.99.12
>Organization:
>Environment:
System: NetBSD goliath.triaxx.org 10.99.12 NetBSD 10.99.12 (GENERIC) #0: Mon Feb 10 00:52:25 CET 2025  triaxx%goliath.triaxx.org@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
When trying to install textproc/ruby-nokogiri, the following error occurs. It occurs with both ruby 5.2 and 5.3.

=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for nokogiri-1.18.8.gem
=> Checksum SHA512 OK for nokogiri-1.18.8.gem
===> Installing dependencies for ruby33-nokogiri-1.18.8
=> Tool dependency ruby33-pkg-config-[0-9]*: found ruby33-pkg-config-1.6.2
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.4.3nb1
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency ruby33-mini_portile2>=2.8.2: found ruby33-mini_portile2-2.8.9
=> Full dependency libxml2>=2.14.2nb1: found libxml2-2.14.2nb2
=> Full dependency libxslt>=1.1.42nb4: found libxslt-1.1.43nb4
=> Full dependency ruby33>=3.3.8: found ruby33-3.3.8
===> Checking for vulnerabilities in ruby33-nokogiri-1.18.8
===> Overriding tools for ruby33-nokogiri-1.18.8
===> Extracting for ruby33-nokogiri-1.18.8
Unpacked gem: '/home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/nokogiri-1.18.8'
===> Patching for ruby33-nokogiri-1.18.8
===> Creating toolchain wrappers for ruby33-nokogiri-1.18.8
===> Configuring for ruby33-nokogiri-1.18.8
=> Generating pkg-config files for builtin xz package.
=> Checking for portability problems in extracted files
===> Building for ruby33-nokogiri-1.18.8
=> Override gemspec
=> Removing backup files of patch before build
WARNING:  expected RubyGems version 3.5.22, was 3.6.8
WARNING:  bin/nokogiri is not executable
WARNING:  See https://guides.rubygems.org/specification-reference/ for help
  Successfully built RubyGem
  Name: nokogiri
  Version: 1.18.8
  File: nokogiri-1.18.8.gem
===> Installing for ruby33-nokogiri-1.18.8
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR:  Error installing /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/nokogiri-1.18.8/nokogiri-1.18.8.gem:
	ERROR: Failed to build gem native extension.

    current directory: /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri
/home/triaxx/pkg/bin/ruby33 extconf.rb
checking for whether -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include is accepted as CFLAGS... yes
checking for whether -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include is accepted as CPPFLAGS... yes
checking for whether -Wl,-zrelro -L/home/triaxx/pkg/lib -Wl,-R/home/triaxx/pkg/lib -L/usr/lib -Wl,-R/usr/lib -pthread is accepted as LDFLAGS... yes
checking for whether -std=c99 is accepted as CFLAGS... yes
checking for whether -Wno-declaration-after-statement is accepted as CFLAGS... yes
checking for whether -O2 is accepted as CFLAGS... yes
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 -Wconversion is accepted as CFLAGS... no
Building nokogiri using system libraries.
checking for gzdopen() in -lz... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
Using mini_portile version 2.8.9
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libgumbo-1.0.0-nokogiri.
Configuration options: --enable-shared --disable-static
Copying gumbo-parser files into tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/gumbo-parser...
Running 'compile' for libgumbo 1.0.0-nokogiri... ERROR. Please review logs to see what happened:
----- contents of '/home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri/tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/compile.log' -----
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c ascii.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c attribute.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c char_ref.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c error.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c foreign_attrs.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c parser.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c string_buffer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c string_piece.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c svg_attrs.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c svg_tags.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tag.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tag_lookup.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c token_buffer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c tokenizer.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c utf8.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c util.c
cc -O2 -pthread -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -fPIC -O2 -g -std=c99 -Wall -I/home/triaxx/pkg/include/libxml2 -I/usr/include -I/home/triaxx/pkg/include -c vector.c
ar rl libgumbo.a ascii.o  attribute.o  char_ref.o  error.o  foreign_attrs.o  parser.o  string_buffer.o  string_piece.o  svg_attrs.o  svg_tags.o  tag.o  tag_lookup.o  token_buffer.o  tokenizer.o  utf8.o  util.o  vector.o
ar: ascii.o: file format not recognized
*** Error code 1

Stop.
make: stopped making "libgumbo.a" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8/ext/nokogiri/tmp/x86_64--netbsd/ports/libgumbo/1.0.0-nokogiri/gumbo-parser
----- end of file -----
*** 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=${opt-dir}/include
	--without-opt-include
	--with-opt-lib=${opt-dir}/lib
	--without-opt-lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/home/triaxx/pkg/bin/$(RUBY_BASE_NAME)33
	--help
	--clean
	--prevent-strip
	--enable-system-libraries
	--disable-system-libraries
	--use-system-libraries=true
	--enable-system-libraries
	--disable-system-libraries
	--use-system-libraries=true
	--enable-xml2-legacy
	--disable-xml2-legacy
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include=${zlib-dir}/include
	--without-zlib-include
	--with-zlib-lib=${zlib-dir}/lib
	--without-zlib-lib
	--with-z-dir
	--without-z-dir
	--with-z-include=${z-dir}/include
	--without-z-include
	--with-z-lib=${z-dir}/lib
	--without-z-lib
	--with-zlib
	--without-zlib
	--with-xml2-dir
	--without-xml2-dir
	--with-xml2-include=${xml2-dir}/include
	--without-xml2-include
	--with-xml2-lib=${xml2-dir}/lib
	--without-xml2-lib
	--with-xml2lib
	--without-xml2lib
	--with-xslt-dir
	--without-xslt-dir
	--with-xslt-include=${xslt-dir}/include
	--without-xslt-include
	--with-xslt-lib=${xslt-dir}/lib
	--without-xslt-lib
	--with-xsltlib
	--without-xsltlib
	--with-exslt-dir
	--without-exslt-dir
	--with-exslt-include=${exslt-dir}/include
	--without-exslt-include
	--with-exslt-lib=${exslt-dir}/lib
	--without-exslt-lib
	--with-exsltlib
	--without-exsltlib
	--gumbo-dev
	--enable-cross-build
	--disable-cross-build
/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:628:in `block in execute': Failed to complete compile task (RuntimeError)
	from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `chdir'
	from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:594:in `execute'
	from extconf.rb:1115:in `compile'
	from /home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/mini_portile2-2.8.9/lib/mini_portile2/mini_portile.rb:238:in `cook'
	from extconf.rb:550:in `block (2 levels) in process_recipe'
	from extconf.rb:329:in `chdir'
	from extconf.rb:329:in `chdir_for_build'
	from extconf.rb:550:in `block in process_recipe'
	from <internal:kernel>:90:in `tap'
	from extconf.rb:448:in `process_recipe'
	from extconf.rb:1071:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/extensions/x86_64-netbsd/3.3.0/nokogiri-1.18.8/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/gems/nokogiri-1.18.8 for inspection.
Results logged to /home/triaxx/pkgsrc/textproc/ruby-nokogiri/work/.inst/home/triaxx/pkg/lib/ruby/gems/3.3.0/extensions/x86_64-netbsd/3.3.0/nokogiri-1.18.8/gem_make.out
*** Error code 1

Stop.
bmake[1]: stopped making "install" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri
*** Error code 1

Stop.
bmake: stopped making "install" in /home/triaxx/pkgsrc/textproc/ruby-nokogiri
>How-To-Repeat:
cd ~/pkgsrc/textproc/ruby-nokogiri && ~/pkg/bin/bmake install
>Fix:
No idea



Home | Main Index | Thread Index | Old Index