Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934497 - net-libs/nodejs-22.3.0 - [perl-5.40] [meson-9999] [icu-75.1] ../.../tlscontext.cc: fatal error: ngtcp2/ngtcp2_crypto_quictls.h: No such file or directory
Summary: net-libs/nodejs-22.3.0 - [perl-5.40] [meson-9999] [icu-75.1] ../.../tlscontex...
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 09:47 UTC by Toralf Förster
Modified: 2024-09-03 14:09 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.94 KB, text/plain)
2024-06-18 09:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,202.28 KB, text/plain)
2024-06-18 09:47 UTC, Toralf Förster
Details
environment (environment,151.03 KB, text/plain)
2024-06-18 09:47 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-06-18 09:47 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,36.08 KB, application/x-xz)
2024-06-18 09:47 UTC, Toralf Förster
Details
net-libs:nodejs-22.3.0:20240618-064558.log.xz (net-libs:nodejs-22.3.0:20240618-064558.log.xz,107.21 KB, application/x-xz)
2024-06-18 09:47 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,48.73 KB, application/x-xz)
2024-06-18 09:47 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,33.23 KB, application/x-xz)
2024-06-18 09:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-06-18 09:47:48 UTC
too long lines were shrinked:

  401 |   V8_INLINE explicit Local<T>(const LocalBase<T>& other)
      |                              ^
../../deps/v8/include/v8-local-handle.h:401:30: note: remove the < >
[2942/3024] x86_64-pc-linux-gnu-g++ -MMD -MF obj/src/quic/libnode.tlscontext.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 '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="l
FAILED: obj/src/quic/libnode.tlscontext.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/src/quic/libnode.tlscontext.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 '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNOD
../../src/quic/tlscontext.cc:12:10: fatal error: ngtcp2/ngtcp2_crypto_quictls.h: No such file or directory
   12 | #include <ngtcp2/ngtcp2_crypto_quictls.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened-20240614-134509

  UNMASKED:
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
  <dev-build/meson-9999
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.7
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.7
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.78.0
  [2]   rust-1.78.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

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

  HEAD of ::gentoo
commit 34eaff48e176be9c6d45b01eedc1fea75e1466c8
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 18 06:06:20 2024 +0000

    2024-06-18 06:06:18 UTC

emerge -qpvO net-libs/nodejs
[ebuild  N    ] net-libs/nodejs-22.3.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-06-18 09:47:49 UTC
Created attachment 896016 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-06-18 09:47:51 UTC
Created attachment 896017 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-06-18 09:47:52 UTC
Created attachment 896018 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-06-18 09:47:53 UTC
Created attachment 896019 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-06-18 09:47:54 UTC
Created attachment 896020 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-06-18 09:47:55 UTC
Created attachment 896021 [details]
net-libs:nodejs-22.3.0:20240618-064558.log.xz
Comment 7 Toralf Förster gentoo-dev 2024-06-18 09:47:56 UTC
Created attachment 896022 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-06-18 09:47:57 UTC
Created attachment 896023 [details]
temp.tar.xz
Comment 9 José de Paula Rodrigues 2024-07-04 21:26:50 UTC
Same error with version 22.4.0; however, it builds correctly with USE=system-ssl.
Comment 10 Anna Vyalkova 2024-07-09 07:33:13 UTC
Can't update NodeJS because of this build error
Comment 11 Progenyx 2024-07-29 16:46:03 UTC
This is due to net-libs/ngtcp2 being built by default w/o the openssl USE flag (unless of course the user has it enforced globally), which doesn't install the reported missing header file. Perhaps the ebuild should require the use of openssl for this dependency.
Comment 12 Jiezhe Wang 2024-08-04 14:50:25 UTC
I build nodejs with USE=-system-ssl successfully by remove --shared-ngtcp2 option in the ebuild.
Comment 13 Larry the Git Cow gentoo-dev 2024-09-03 14:09:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c051b9e04dd9197a973595a8536baf191f32f1d1

commit c051b9e04dd9197a973595a8536baf191f32f1d1
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2024-09-03 14:08:54 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2024-09-03 14:08:54 +0000

    net-libs/nodejs: fix -systen-ssl dependency in 22.7.0
    
    If system-ssl isn't used, also require that net-libs/ngtcp2 be
    built without gnutls.
    
    Bug: https://bugs.gentoo.org/934497
    Bug: https://bugs.gentoo.org/938455
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 net-libs/nodejs/nodejs-22.7.0.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)