Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947917 - dev-ruby/nokogiri-1.16.8: Build fails with "nokogiri_gumbo.h: No such file or directory"
Summary: dev-ruby/nokogiri-1.16.8: Build fails with "nokogiri_gumbo.h: No such file or...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-11 17:21 UTC by Roman Žilka
Modified: 2025-01-18 08:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log with MAKEOPTS="-j1" CFLAGS="" CXXFLAGS="" (build.log,5.06 KB, text/plain)
2025-01-11 17:21 UTC, Roman Žilka
Details
emerge --info (emerge--info,11.59 KB, text/plain)
2025-01-11 17:22 UTC, Roman Žilka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Žilka 2025-01-11 17:21:43 UTC
Created attachment 916334 [details]
build.log with MAKEOPTS="-j1" CFLAGS="" CXXFLAGS=""

# emerge -qpv nokogiri 
[ebuild     U ] dev-ruby/nokogiri-1.16.8 [1.16.6] USE="-doc -test" RUBY_TARGETS="ruby32 -ruby31 (-ruby33)" 

# MAKEOPTS="-j1" CFLAGS="" CXXFLAGS="" emerge -1 nokogiri

(...)

>>> Compiling source in /var/tmp/portage/dev-ruby/nokogiri-1.16.8/work ...
 * Running compile phase for ruby32
make -j1 -Cext/nokogiri V=1 'CFLAGS= -fPIC' 'archflag=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs' 
make: Entering directory '/var/tmp/portage/dev-ruby/nokogiri-1.16.8/work/ruby32/nokogiri-1.16.8/ext/nokogiri'
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.2.0/x86_64-linux -I/usr/include/ruby-3.2.0/ruby/backward -I/usr/include/ruby-3.2.0 -I. -DHAVE_GUMBO_PARSE_WITH_OPTIONS -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -DHAVE_RB_CATEGORY_WARNING -I/usr/include/libxml2 -I/usr/include    -fPIC -o gumbo.o -c gumbo.c
gumbo.c:32:10: fatal error: nokogiri_gumbo.h: No such file or directory
   32 | #include "nokogiri_gumbo.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.


This is with ruby-3.2.5-r2 and gcc-14.2.1_p20241221. I get the same error compiling nokogiri-1.16.6, which I have successfully emerged on 15 November 2024. GCC 14 happened between then and now...

Someone's reported the same issue at: https://forums.gentoo.org/viewtopic-t-1170882.html
Comment 1 Roman Žilka 2025-01-11 17:22:49 UTC
Created attachment 916335 [details]
emerge --info
Comment 2 Hans de Graaff gentoo-dev Security 2025-01-17 10:31:10 UTC
I can't reproduce this. This version of gumbo is bundled with nokogiri, and the configure output shows that it is found and prepared, but it looks like the include statement is missing from the CFLAGS.

Looking at the build system I don't see an explanation for why that might be missing. Hard to debug this further without being able to reproduce it.
Comment 3 Roman Žilka 2025-01-18 08:13:05 UTC
Oh yeah, that path... In fact, every check whether "XY is accepted as CFLAGS/CPPFLAGS" fails there.
Comment 4 Roman Žilka 2025-01-18 08:41:34 UTC
Well, the build works now. The CFLAGS/CPPFLAGS checks work normally and the build proceeds.

I don't see any strikingly interesting items among the package updates in the past week. But during that time I rebuilt about 130 packages because of a custom USE flags reconfiguration and because of an icu update. Perhaps a related package needed to be rebuilt with the current toolchain. Ruby was one of those 130 packages, I notice. And the last time I had updated it before that was on 12 November, which is before GCC got updated to 14.