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

[install] 1.12.5 install failed while gumbo.c compilation #2915

Closed
1 task done
hisa13 opened this issue Jun 28, 2023 · 1 comment
Closed
1 task done

[install] 1.12.5 install failed while gumbo.c compilation #2915

hisa13 opened this issue Jun 28, 2023 · 1 comment
Labels
topic/installation Installation difficulties

Comments

@hisa13
Copy link

hisa13 commented Jun 28, 2023

I tried CFLAGS=-std=c99 mentioned in here, but didn't work for me.
Because my project using bundler 2.0.1 and ruby 2.5.3, I can't install latest nokogiri gem which may be fixed this problem mentioned in another issue.
Can I handle this error and successfully install with these versions?

Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?

  • Yes!

What is the complete output of gem install or bundle install?

❯❯❯ bundle _2.0.1_ install
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
~~~
other gems...
~~~
Fetching nokogiri 1.12.5
Installing nokogiri 1.12.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri
/Users/username/.rbenv/versions/2.5.3/bin/ruby -I /Users/username/.rbenv/versions/2.5.3/lib/ruby/site_ruby/2.5.0 -r ./siteconf20230628-26888-tsryu0.rb
extconf.rb
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 -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
Building nokogiri using packaged libraries.
Static linking is enabled.
Cross build is disabled.
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
Using mini_portile version 2.6.1
checking for iconv... yes
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libxml2-2.9.12.
Configuration options: --host\=arm-apple-darwin22.3.0 --enable-static --disable-shared
--libdir\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib
--with-iconv\=yes --disable-dependency-tracking --without-python --without-readline --with-c14n --with-debug --with-threads --disable-shared
--enable-static RANLIB\=/usr/bin/ranlib AR\=/usr/bin/ar CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
The following patches are being applied:
  - 0001-Remove-script-macro-support.patch
  - 0002-Update-entities-to-remove-handling-of-ssi.patch
  - 0003-libxml2.la-is-in-top_builddir.patch
  - 0004-use-glibc-strlen.patch
  - 0005-avoid-isnan-isinf.patch
  - 0006-update-automake-files-for-arm64.patch
  - 0007-Fix-XPath-recursion-limit.patch

The Nokogiri maintainers intend to provide timely security updates, but if
this is a concern for you and want to use your OS/distro system library
instead, then abort this installation process and install nokogiri as
instructed at:

  https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries

Note, however, that nokogiri cannot guarantee compatibility with every
version of libxml2 that may be provided by OS/package vendors.

Extracting libxml2-2.9.12.tar.gz into tmp/arm-apple-darwin22.3.0/ports/libxml2/2.9.12... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0001-Remove-script-macro-support.patch... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch...
OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0003-libxml2.la-is-in-top_builddir.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0004-use-glibc-strlen.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0005-avoid-isnan-isinf.patch... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0006-update-automake-files-for-arm64.patch... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0007-Fix-XPath-recursion-limit.patch... OK
Running 'configure' for libxml2 2.9.12... OK
Running 'compile' for libxml2 2.9.12... OK
Running 'install' for libxml2 2.9.12... OK
Activating libxml2 2.9.12 (from
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12)...
Using mini_portile version 2.6.1
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libxslt-1.1.34.
Configuration options: --host\=arm-apple-darwin22.3.0 --enable-static --disable-shared
--libdir\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib
--disable-dependency-tracking --without-python --without-crypto --with-debug
--with-libxml-prefix\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12
--disable-shared --enable-static RANLIB\=/usr/bin/ranlib AR\=/usr/bin/ar CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
The following patches are being applied:
  - 0001-update-automake-files-for-arm64.patch
  - 0002-Fix-xml2-config-check-in-configure-script.patch

The Nokogiri maintainers intend to provide timely security updates, but if
this is a concern for you and want to use your OS/distro system library
instead, then abort this installation process and install nokogiri as
instructed at:

  https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries

Extracting libxslt-1.1.34.tar.gz into tmp/arm-apple-darwin22.3.0/ports/libxslt/1.1.34... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxslt/0001-update-automake-files-for-arm64.patch... OK
Running git apply with
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxslt/0002-Fix-xml2-config-check-in-configure-script.patch...
OK
Running 'configure' for libxslt 1.1.34... OK
Running 'compile' for libxslt 1.1.34... OK
Running 'install' for libxslt 1.1.34... OK
Activating libxslt 1.1.34 (from
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34)...
checking for whether -DNOKOGIRI_PACKAGED_LIBRARIES is accepted as CPPFLAGS... yes
checking for whether -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch
0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch
0007-Fix-XPath-recursion-limit.patch\"" is accepted as CPPFLAGS... yes
checking for -llzma... yes
checking for whether -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""
is accepted as CPPFLAGS... yes
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
checking for exsltFuncRegister() in libexslt/exslt.h... yes
Using mini_portile version 2.6.1
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libgumbo-1.0.0-nokogiri.
Configuration options: --disable-shared --enable-static CFLAGS\=-fPIC
Copying gumbo-parser files into tmp/arm-apple-darwin22.3.0/ports/libgumbo/1.0.0-nokogiri/gumbo-parser...
Running 'compile' for libgumbo 1.0.0-nokogiri... OK
Activating libgumbo 1.0.0-nokogiri (from ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri)...
checking for whether
-I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include
is accepted as CPPFLAGS... yes
checking for gumbo_parse_with_options() in gumbo.h... no
-----
extconf.rb:276:in `ensure_func'
gumbo_parse_with_options 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=/Users/username/.rbenv/versions/2.5.3/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
	--enable-static
	--disable-static
	--enable-cross-build
	--disable-cross-build
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--with-xml2-source-dir
	--with-xslt-source-dir
	--enable-cross-build
	--disable-cross-build

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

  /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/extensions/-darwin-22/2.5.0/nokogiri-1.12.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5 for inspection.
Results logged to /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/extensions/-darwin-22/2.5.0/nokogiri-1.12.5/gem_make.out

An error occurred while installing nokogiri (1.12.5), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.12.5' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  nokogiri
zsh: exit 5     bundle _2.0.1_ install
❯❯❯ gem install nokogiri -v '1.12.5' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    current directory: /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri
/Users/username/.rbenv/versions/2.5.3/bin/ruby -I /Users/username/.rbenv/versions/2.5.3/lib/ruby/site_ruby/2.5.0 -r ./siteconf20230628-8165-m1xi6x.rb extconf.rb
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 -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
Building nokogiri using packaged libraries.
Static linking is enabled.
Cross build is disabled.
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
Using mini_portile version 2.6.1
checking for iconv... yes
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libxml2-2.9.12.
Configuration options: --host\=arm-apple-darwin22.3.0 --enable-static --disable-shared --libdir\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib --with-iconv\=yes --disable-dependency-tracking --without-python --without-readline --with-c14n --with-debug --with-threads --disable-shared --enable-static RANLIB\=/usr/bin/ranlib AR\=/usr/bin/ar CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
The following patches are being applied:
  - 0001-Remove-script-macro-support.patch
  - 0002-Update-entities-to-remove-handling-of-ssi.patch
  - 0003-libxml2.la-is-in-top_builddir.patch
  - 0004-use-glibc-strlen.patch
  - 0005-avoid-isnan-isinf.patch
  - 0006-update-automake-files-for-arm64.patch
  - 0007-Fix-XPath-recursion-limit.patch

The Nokogiri maintainers intend to provide timely security updates, but if
this is a concern for you and want to use your OS/distro system library
instead, then abort this installation process and install nokogiri as
instructed at:

  https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries

Note, however, that nokogiri cannot guarantee compatibility with every
version of libxml2 that may be provided by OS/package vendors.

Extracting libxml2-2.9.12.tar.gz into tmp/arm-apple-darwin22.3.0/ports/libxml2/2.9.12... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0001-Remove-script-macro-support.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0003-libxml2.la-is-in-top_builddir.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0004-use-glibc-strlen.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0005-avoid-isnan-isinf.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0006-update-automake-files-for-arm64.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxml2/0007-Fix-XPath-recursion-limit.patch... OK
Running 'configure' for libxml2 2.9.12... OK
Running 'compile' for libxml2 2.9.12... OK
Running 'install' for libxml2 2.9.12... OK
Activating libxml2 2.9.12 (from /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12)...
Using mini_portile version 2.6.1
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libxslt-1.1.34.
Configuration options: --host\=arm-apple-darwin22.3.0 --enable-static --disable-shared --libdir\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib --disable-dependency-tracking --without-python --without-crypto --with-debug --with-libxml-prefix\=/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12 --disable-shared --enable-static RANLIB\=/usr/bin/ranlib AR\=/usr/bin/ar CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
The following patches are being applied:
  - 0001-update-automake-files-for-arm64.patch
  - 0002-Fix-xml2-config-check-in-configure-script.patch

The Nokogiri maintainers intend to provide timely security updates, but if
this is a concern for you and want to use your OS/distro system library
instead, then abort this installation process and install nokogiri as
instructed at:

  https://nokogiri.org/tutorials/installing_nokogiri.html#installing-using-standard-system-libraries

Extracting libxslt-1.1.34.tar.gz into tmp/arm-apple-darwin22.3.0/ports/libxslt/1.1.34... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxslt/0001-update-automake-files-for-arm64.patch... OK
Running git apply with /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/patches/libxslt/0002-Fix-xml2-config-check-in-configure-script.patch... OK
Running 'configure' for libxslt 1.1.34... OK
Running 'compile' for libxslt 1.1.34... OK
Running 'install' for libxslt 1.1.34... OK
Activating libxslt 1.1.34 (from /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34)...
checking for whether -DNOKOGIRI_PACKAGED_LIBRARIES is accepted as CPPFLAGS... yes
checking for whether -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" is accepted as CPPFLAGS... yes
checking for -llzma... yes
checking for whether -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\"" is accepted as CPPFLAGS... yes
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
checking for exsltFuncRegister() in libexslt/exslt.h... yes
Using mini_portile version 2.6.1
---------- IMPORTANT NOTICE ----------
Building Nokogiri with a packaged version of libgumbo-1.0.0-nokogiri.
Configuration options: --disable-shared --enable-static CFLAGS\=-fPIC
Copying gumbo-parser files into tmp/arm-apple-darwin22.3.0/ports/libgumbo/1.0.0-nokogiri/gumbo-parser...
Running 'compile' for libgumbo 1.0.0-nokogiri... OK
Activating libgumbo 1.0.0-nokogiri (from ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri)...
checking for whether -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include is accepted as CPPFLAGS... yes
checking for gumbo_parse_with_options() in gumbo.h... no
-----
extconf.rb:276:in `ensure_func'
gumbo_parse_with_options 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=/Users/username/.rbenv/versions/2.5.3/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
	--enable-static
	--disable-static
	--enable-cross-build
	--disable-cross-build
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--with-xml2-source-dir
	--with-xslt-source-dir
	--enable-cross-build
	--disable-cross-build

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

  /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/extensions/-darwin-22/2.5.0/nokogiri-1.12.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5 for inspection.
Results logged to /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/extensions/-darwin-22/2.5.0/nokogiri-1.12.5/gem_make.out
zsh: exit 1     gem install nokogiri -v '1.12.5' --source 'https://rubygems.org/'

If installation failed during compilation, what are the complete contents of the mkmf.log file generated during the failed installation?

block in append_cflags: checking for whether -std=c99 is accepted as CFLAGS... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector     -lruby.2.5.3  -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe  -std=c99 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Wno-declaration-after-statement is accepted as CFLAGS... -------------------- yes

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99  -Wno-declaration-after-statement -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cflags: checking for whether -g is accepted as CFLAGS... -------------------- yes

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement  -g -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Winline is accepted as CFLAGS... -------------------- yes

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g  -Winline -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Wmissing-noreturn is accepted as CFLAGS... -------------------- yes

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline  -Wmissing-noreturn -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cflags: checking for whether -Wno-error=unused-command-line-argument-hard-error-in-future is accepted as CFLAGS... -------------------- no

"clang -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn  -Wno-error=unused-command-line-argument-hard-error-in-future -Werror -c conftest.c"
error: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Werror,-Wunknown-warning-option]
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

have_header: checking for iconv.h... -------------------- yes

"clang -E -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <iconv.h>
/* end */

--------------------

have_library: checking for gzdopen() in -lz... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector     -lruby.2.5.3 -lz  -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <zlib.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */

--------------------

try_link_iconv: checking for iconv... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector     -lruby.2.5.3  -lpthread -ldl -lobjc "
Undefined symbols for architecture arm64:
  "_iconv", referenced from:
      _main in conftest-60b4e4.o
  "_iconv_open", referenced from:
      _main in conftest-60b4e4.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5: int main(void)
 6: {
 7:     iconv_t cd = iconv_open("", "");
 8:     iconv(cd, NULL, NULL, NULL, NULL);
 9:     return EXIT_SUCCESS;
10: }
/* end */

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector     -lruby.2.5.3 -liconv -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5: int main(void)
 6: {
 7:     iconv_t cd = iconv_open("", "");
 8:     iconv(cd, NULL, NULL, NULL, NULL);
 9:     return EXIT_SUCCESS;
10: }
/* end */

--------------------

block in append_cppflags: checking for whether -DNOKOGIRI_PACKAGED_LIBRARIES is accepted as CPPFLAGS... -------------------- yes

"clang -E -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn -DNOKOGIRI_PACKAGED_LIBRARIES conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

block in append_cppflags: checking for whether -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" is accepted as CPPFLAGS... -------------------- yes

"clang -E -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

have_library: checking for -llzma... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector     -lruby.2.5.3 -llzma  -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: 
14: int t(void) { ; return 0; }
/* end */

--------------------

block in append_cppflags: checking for whether -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\"" is accepted as CPPFLAGS... -------------------- yes

"clang -E -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\"" conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxml/parser.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */

--------------------

have_func: checking for xsltParseStylesheetDoc() in libxslt/xslt.h... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lpthread -ldl -lobjc "
conftest.c:15:57: error: use of undeclared identifier 'xsltParseStylesheetDoc'
int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
/* end */

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: extern void xsltParseStylesheetDoc();
16: int t(void) { xsltParseStylesheetDoc(); return 0; }
/* end */

--------------------

have_func: checking for exsltFuncRegister() in libexslt/exslt.h... -------------------- yes

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma -lpthread -ldl -lobjc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libexslt/exslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))exsltFuncRegister; return !p; }
/* end */

--------------------

block in append_cppflags: checking for whether -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include is accepted as CPPFLAGS... -------------------- yes

"clang -E -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\""  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

--------------------

have_func: checking for gumbo_parse_with_options() in gumbo.h... -------------------- no

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\"" -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib/libgumbo.a -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib/libgumbo.a -lpthread -ldl -lobjc "
ld: warning: ignoring file /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib/libgumbo.a, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
Undefined symbols for architecture arm64:
  "_gumbo_parse_with_options", referenced from:
      _t in conftest-6a8853.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <gumbo.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))gumbo_parse_with_options; return !p; }
/* end */

"clang -o conftest -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/-darwin22 -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/backward -I/Users/username/.rbenv/versions/2.5.3/include/ruby-2.5.0 -I. -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/include -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/include/libxml2 -I/Users/username/.rbenv/versions/2.5.3/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -DNOKOGIRI_PACKAGED_LIBRARIES -DNOKOGIRI_LIBXML2_PATCHES="\"0001-Remove-script-macro-support.patch 0002-Update-entities-to-remove-handling-of-ssi.patch 0003-libxml2.la-is-in-top_builddir.patch 0004-use-glibc-strlen.patch 0005-avoid-isnan-isinf.patch 0006-update-automake-files-for-arm64.patch 0007-Fix-XPath-recursion-limit.patch\"" -DNOKOGIRI_LIBXSLT_PATCHES="\"0001-update-automake-files-for-arm64.patch 0002-Fix-xml2-config-check-in-configure-script.patch\"" -I/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include  -DUSE_FFI_CLOSURE_ALLOC -fno-common -pipe -std=c99 -Wno-declaration-after-statement -g -Winline -Wmissing-noreturn conftest.c  -L. -L/Users/username/.rbenv/versions/2.5.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib -L/opt/homebrew/Cellar/xz/5.4.3/lib -L/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib -L. -L/Users/username/.rbenv/versions/2.5.3/lib  -fstack-protector    /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib/libgumbo.a -lruby.2.5.3 /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libexslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxslt/1.1.34/lib/libxslt.a -lm -liconv -lpthread -llzma -lz /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ports/arm-apple-darwin22.3.0/libxml2/2.9.12/lib/libxml2.a -llzma /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/lib/libgumbo.a -lpthread -ldl -lobjc "
conftest.c:15:13: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
extern void gumbo_parse_with_options();
            ^
conftest.c:15:13: error: conflicting types for 'gumbo_parse_with_options'
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include/gumbo.h:870:14: note: previous declaration is here
GumboOutput* gumbo_parse_with_options (
             ^
conftest.c:16:40: error: too few arguments to function call, expected 3, have 0
int t(void) { gumbo_parse_with_options(); return 0; }
              ~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/nokogiri-1.12.5/ext/nokogiri/ports/arm-apple-darwin22.3.0/libgumbo/1.0.0-nokogiri/include/gumbo.h:870:14: note: 'gumbo_parse_with_options' declared here
GumboOutput* gumbo_parse_with_options (
             ^
1 warning and 2 errors generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <gumbo.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: extern void gumbo_parse_with_options();
16: int t(void) { gumbo_parse_with_options(); return 0; }
/* end */

--------------------

Tell us about your system!

What is the output from ruby -v?

❯❯❯ ruby -v
ruby 2.5.3p105 (2018-10-18 revision 65156) [-darwin22]

What is the output from gem -v?

❯❯❯ gem -v
3.2.3

What is the output from gem env?

❯❯❯ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 3.2.3
  - RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [-darwin22]
  - INSTALLATION DIRECTORY: /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0
  - USER INSTALLATION DIRECTORY: /Users/username/.gem/ruby/2.5.0
  - RUBY EXECUTABLE: /Users/username/.rbenv/versions/2.5.3/bin/ruby
  - GIT EXECUTABLE: /opt/homebrew/bin/git
  - EXECUTABLE DIRECTORY: /Users/username/.rbenv/versions/2.5.3/bin
  - SPEC CACHE DIRECTORY: /Users/username/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/username/.rbenv/versions/2.5.3/etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - -darwin-22
  - GEM PATHS:
     - /Users/username/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0
     - /Users/username/.gem/ruby/2.5.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/username/.rbenv/versions/2.5.3/bin
     - /opt/homebrew/Cellar/rbenv/1.2.0/libexec
     - /Users/username/Library/Android/sdk/build-tools/33.0.2
     - /opt/homebrew/opt/binutils/bin
     - /opt/homebrew/bin
     - /usr/local/bin
     - /opt/homebrew/opt/coreutils/libexec/gnubin
     - /opt/homebrew/opt/grep/libexec/gnubin
     - /opt/homebrew/opt/mariadb@10.6/bin
     - /Users/username/.rbenv/shims
     - /Users/username/.rbenv/bin
     - /Users/username/Library/Android/sdk/build-tools/33.0.2
     - /opt/homebrew/opt/binutils/bin
     - /opt/homebrew/bin
     - /usr/local/bin
     - /opt/homebrew/opt/coreutils/libexec/gnubin
     - /opt/homebrew/opt/grep/libexec/gnubin
     - /opt/homebrew/opt/mariadb@10.6/bin
     - /Users/username/.rbenv/shims
     - /Users/username/.rbenv/bin
     - /opt/homebrew/bin
     - /opt/homebrew/sbin
     - /usr/local/bin
     - /System/Cryptexes/App/usr/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
     - /Library/Apple/usr/bin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
     - /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
     - /Users/username/.cargo/bin
     - /Users/username/.nodebrew/current/bin
     - /Users/username/.nodebrew/current/bin

If you're using Bundler:

  • what is the output from bundle version?
  • what is the output from bundle config? (Take care to redact any credentials)
❯❯❯ bundle version
Bundler version 2.3.26 (2022-11-17 commit 23ec5b8501)

❯❯❯ bundle config
Settings are listed in order of priority. The top value will be used.

If you're on MacOS, please note:

  • the version of XCode you have installed (if you know)
❯❯❯ /usr/bin/xcodebuild -version
Xcode 14.3.1
Build version 14E300c
  • the output of gcc -v or clang -v
❯❯❯ gcc -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@hisa13 hisa13 added the topic/installation Installation difficulties label Jun 28, 2023
@flavorjones
Copy link
Member

Hi @hisa13, sorry you're having a problem. I'll try to help.

Nokogiri 1.12.5 offers a precompiled extension for Ruby 2.5 on arm64-darwin. Instead of helping you fix the compilation problem, let's try to avoid compilation by using that precompiled version.

I noticed your Gemfile.lock contains:

  - RUBYGEMS PLATFORMS:
     - ruby
     - -darwin-22

The -darwin-22 value is erroneous, and is preventing you from getting the precompiled version. Please follow the instructions at https://nokogiri.org/tutorials/installing_nokogiri.html and run:

bundle lock --remove-platform=-darwin-22
bundle lock --add-platform=arm64-darwin

and you should be good to re-run bundle install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/installation Installation difficulties
Projects
None yet
Development

No branches or pull requests

2 participants