Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932534 - net-libs/nodejs-22.1.0 - [meson-9999] [gcc-15] nghttp3_http.c:(.text+<snip>): undefined reference to sf_parser_init
Summary: net-libs/nodejs-22.1.0 - [meson-9999] [gcc-15] nghttp3_http.c:(.text+<snip>):...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard: patch
Keywords: PATCH
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-05-23 08:28 UTC by Toralf Förster
Modified: 2024-10-24 20:20 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.99 KB, text/plain)
2024-05-23 08:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,77.77 KB, text/plain)
2024-05-23 08:28 UTC, Toralf Förster
Details
environment (environment,150.55 KB, text/plain)
2024-05-23 08:28 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-05-23 08:28 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,31.18 KB, application/x-xz)
2024-05-23 08:28 UTC, Toralf Förster
Details
net-libs:nodejs-22.1.0:20240522-232816.log.xz (net-libs:nodejs-22.1.0:20240522-232816.log.xz,84.24 KB, application/x-xz)
2024-05-23 08:28 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,168.21 KB, text/plain)
2024-05-23 08:28 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,33.00 KB, application/x-xz)
2024-05-23 08:28 UTC, Toralf Förster
Details
Build fix patch (node-22.3.0-sfparse.patch,317 bytes, patch)
2024-07-19 03:37 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-05-23 08:28:17 UTC
too long lines were shrinked:

[2967/3019] x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/googletest/src/gtest.gtest-port.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_HAS_QUIC -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS -DOPENSSL_NO_PINSHARED -DOPENSSL_THREADS -DGTEST_HAS_POSIX_RE=0 -DGTEST
[2968/3019] x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/googletest/src/gtest.gtest-test-part.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_HAS_QUIC -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS -DOPENSSL_NO_PINSHARED -DOPENSSL_THREADS -DGTEST_HAS_POSIX_RE=0 -D
[2969/3019] x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -pthread -rdynamic -Wl,-z,noexecstack -Wl,--whole-archive obj/tools/v8_gypfiles/libv8_snapshot.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -Wl,--whole-archive,obj/deps
FAILED: node_mksnapshot 
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -pthread -rdynamic -Wl,-z,noexecstack -Wl,--whole-archive obj/tools/v8_gypfiles/libv8_snapshot.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -Wl,--whole-archive,obj/deps/openssl/lib
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: obj/deps/ngtcp2/nghttp3/lib/nghttp3.nghttp3_http.o: in function `nghttp3_http_parse_priority':
nghttp3_http.c:(.text+0x41): undefined reference to `sf_parser_init'
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: nghttp3_http.c:(.text+0x5a): undefined reference to `sf_parser_dict'
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20240521-083502

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <dev-build/meson-9999
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.6
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems) *
  [3]   ruby33 (with Rubygems)
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit 4c789c6fae8c97731778999e31138e339ddd7d2f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed May 22 22:18:58 2024 +0000

    2024-05-22 22:18:57 UTC

emerge -qpvO net-libs/nodejs
[ebuild  N    ] net-libs/nodejs-22.1.0  USE="corepack icu inspector snapshot ssl system-icu -debug -doc (-lto) -npm (-pax-kernel) -system-ssl -test" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2024-05-23 08:28:18 UTC
Created attachment 893985 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-23 08:28:19 UTC
Created attachment 893986 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-05-23 08:28:20 UTC
Created attachment 893987 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-05-23 08:28:21 UTC
Created attachment 893988 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-05-23 08:28:22 UTC
Created attachment 893989 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-23 08:28:23 UTC
Created attachment 893990 [details]
net-libs:nodejs-22.1.0:20240522-232816.log.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-23 08:28:24 UTC
Created attachment 893991 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-05-23 08:28:26 UTC
Created attachment 893992 [details]
temp.tar.xz
Comment 10 NHO 2024-06-05 01:08:44 UTC
I misunderstood context, link above is patch where bug was introduced.

Possibly?
Disregard previous comment.
Comment 11 orbea 2024-07-19 03:37:41 UTC
Created attachment 897953 [details, diff]
Build fix patch

This patch fixes the build for me, but I haven't looked into reporting this to upstream yet. If someone else wishes to take the credit, feel free. :)
Comment 12 Progenyx 2024-07-29 20:38:14 UTC
can confirm the proposed patch works!