Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865981 - net-libs/nodejs: fails to compile with gcc-13 (error: 'uint16_t' was not declared in this scope)
Summary: net-libs/nodejs: fails to compile with gcc-13 (error: 'uint16_t' was not decl...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: WANG Xuerui
Keywords: PullRequest
Depends on:
Blocks: gcc-13
  Show dependency tree
Reported: 2022-08-22 03:46 UTC by WANG Xuerui
Modified: 2022-11-06 00:36 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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/
../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:
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):

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

    net-libs/nodejs: fix build on gcc-13
    Signed-off-by: WANG Xuerui <>
    Signed-off-by: Sam James <>

 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(+)