Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 865981

Summary: net-libs/nodejs: fails to compile with gcc-13 (error: 'uint16_t' was not declared in this scope)
Product: Gentoo Linux Reporter: WANG Xuerui <xen0n>
Component: Current packagesAssignee: WANG Xuerui <xen0n>
Status: RESOLVED FIXED    
Severity: normal CC: markgomersbach
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/27654
https://github.com/nodejs/node/issues/43642
https://bugs.gentoo.org/show_bug.cgi?id=879615
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 865117    

Description WANG Xuerui gentoo-dev 2022-08-22 03:46:31 UTC
In file included from ../deps/v8/src/base/macros.h:12,
                 from ../deps/v8/src/libplatform/worker-thread.h:12,
                 from ../deps/v8/src/libplatform/worker-thread.cc:5:
../deps/v8/src/base/logging.h: In function ‘auto v8::base::detail::GetUnderlyingEnumTypeForPrinting(T)’:
../deps/v8/src/base/logging.h:154:26: error: ‘uint16_t’ was not declared in this scope
  154 |                          uint16_t> >;
      |                          ^~~~~~~~
../deps/v8/src/base/logging.h:17:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   16 | #include "src/base/template-utils.h"
  +++ |+#include <cstdint>
   17 |
Comment 1 WANG Xuerui gentoo-dev 2022-10-05 10:30:07 UTC
Upstream fix proposed: https://chromium-review.googlesource.com/c/v8/v8/+/3934140
Comment 2 Larry the Git Cow gentoo-dev 2022-10-28 15:57:41 UTC
The bug has been closed via the following commit(s):

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

commit a5c7606a4cf5173622127ea833cdf7880aa786a9
Author:     WANG Xuerui <xen0n@gentoo.org>
AuthorDate: 2022-10-05 08:39:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-28 15:57:12 +0000

    net-libs/nodejs: fix build on gcc-13
    
    Closes: https://bugs.gentoo.org/865981
    Closes: https://github.com/gentoo/gentoo/pull/27654
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nodejs/files/nodejs-gcc-13.patch | 27 +++++++++++++++++++++++++++
 net-libs/nodejs/nodejs-14.20.1.ebuild     |  1 +
 net-libs/nodejs/nodejs-16.17.1.ebuild     |  1 +
 net-libs/nodejs/nodejs-18.10.0.ebuild     |  1 +
 net-libs/nodejs/nodejs-18.9.1.ebuild      |  1 +
 5 files changed, 31 insertions(+)