Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916754 - net-libs/nodejs-20.8.1-r1 - ../.../stats-collector.h: error: cannot convert std::vector<cppgc::internal::StatsCollector::AllocationObserver >::iterato
Summary: net-libs/nodejs-20.8.1-r1 - ../.../stats-collector.h: error: cannot convert s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2023-11-03 13:27 UTC by Toralf Förster
Modified: 2023-12-18 12:23 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.19 KB, text/plain)
2023-11-03 13:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,31.96 KB, text/plain)
2023-11-03 13:27 UTC, Toralf Förster
Details
environment (environment,147.97 KB, text/plain)
2023-11-03 13:27 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-11-03 13:27 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.49 KB, application/x-xz)
2023-11-03 13:27 UTC, Toralf Förster
Details
net-libs:nodejs-20.8.1-r1:20231103-121841.log.xz (net-libs:nodejs-20.8.1-r1:20231103-121841.log.xz,25.63 KB, application/x-xz)
2023-11-03 13:27 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,74.99 KB, text/plain)
2023-11-03 13:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,57.48 KB, application/x-xz)
2023-11-03 13:27 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 2023-11-03 13:27:24 UTC
too long lines were shrinked:

[985/1672] x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.process-heap-statistics.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__ST
FAILED: obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.process-heap-statistics.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/v8/src/heap/cppgc/v8_base_without_compiler.process-heap-statistics.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__STDC_FORMAT_M
In file included from ../../deps/v8/src/heap/cppgc/process-heap-statistics.h:9,
                 from ../../deps/v8/src/heap/cppgc/process-heap-statistics.cc:5:
../../deps/v8/src/heap/cppgc/stats-collector.h: In member function void cppgc::internal::StatsCollector::ForAllAllocationObservers(Callback):
../../deps/v8/src/heap/cppgc/stats-collector.h:401:48: error: cannot convert std::vector<cppgc::internal::StatsCollector::AllocationObserver*>::iterator to const char*
  401 |         std::remove(allocation_observers_.begin(), allocation_observers_.end(),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20231102-160004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

php cli (if any):
go version go1.21.3 linux/amd64

  HEAD of ::gentoo
commit d8cdeb2963651de81b9d6cd62e13a9e2fb23e6be
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 3 11:17:02 2023 +0000

    2023-11-03 11:17:01 UTC

emerge -qpvO net-libs/nodejs
[ebuild  N    ] net-libs/nodejs-20.8.1-r1  USE="icu npm snapshot ssl system-icu system-ssl -corepack -debug -doc -inspector (-lto) (-pax-kernel) -test" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2023-11-03 13:27:25 UTC
Created attachment 873977 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-03 13:27:26 UTC
Created attachment 873978 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-11-03 13:27:28 UTC
Created attachment 873979 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-11-03 13:27:28 UTC
Created attachment 873980 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-11-03 13:27:29 UTC
Created attachment 873981 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-03 13:27:30 UTC
Created attachment 873982 [details]
net-libs:nodejs-20.8.1-r1:20231103-121841.log.xz
Comment 7 Toralf Förster gentoo-dev 2023-11-03 13:27:32 UTC
Created attachment 873983 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-11-03 13:27:33 UTC
Created attachment 873984 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-03 13:32:42 UTC
I fixed this a while ago upstream in V8, so it just needs to be pulled into node (which will happen eventually).

We can backport it for now: https://chromium-review.googlesource.com/c/v8/v8/+/4583222.
Comment 10 William Hubbs gentoo-dev 2023-11-03 15:52:49 UTC
I just added 20.9.0 to the tree.
Please test and let me know if that version can be compiled with gcc 14.

Thanks,

William
Comment 11 Toralf Förster gentoo-dev 2023-11-04 09:51:07 UTC
(In reply to William Hubbs from comment #10)
> I just added 20.9.0 to the tree.
> Please test and let me know if that version can be compiled with gcc 14.
> 
> Thanks,
> 
> William

same issue
Comment 12 Larry the Git Cow gentoo-dev 2023-11-06 15:42:01 UTC
The bug has been referenced in the following commit(s):

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

commit 5a367252e37e26524a0008a4923ba37ac08fc403
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-11-06 15:41:36 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-11-06 15:41:36 +0000

    net-libs/nodejs: gcc 14 porting fixes
    
    Bug: https://bugs.gentoo.org/916754
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 net-libs/nodejs/files/nodejs-20.8.1-gcc14.patch | 24 ++++++++++++++++++++++++
 net-libs/nodejs/nodejs-20.8.1-r1.ebuild         |  1 +
 net-libs/nodejs/nodejs-20.9.0.ebuild            |  4 ++++
 3 files changed, 29 insertions(+)