Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922725 - net-libs/nodejs-20.11.0 deps/v8/src/codegen/riscv/assembler-riscv.h:289:60: error: ‘Tagged’ has not been declared
Summary: net-libs/nodejs-20.11.0 deps/v8/src/codegen/riscv/assembler-riscv.h:289:60: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-22 21:53 UTC by Andrew Cameron
Modified: 2024-02-04 00:37 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,231.22 KB, text/x-log)
2024-01-22 21:53 UTC, Andrew Cameron
Details
Environment (environment,145.44 KB, text/plain)
2024-01-22 21:54 UTC, Andrew Cameron
Details
Info log (info,8.03 KB, text/plain)
2024-01-22 21:54 UTC, Andrew Cameron
Details
pqv log (pqv,471 bytes, text/plain)
2024-01-22 21:55 UTC, Andrew Cameron
Details
Patch (riscv.patch,7.48 KB, patch)
2024-01-26 11:32 UTC, Andrew Cameron
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cameron 2024-01-22 21:53:39 UTC
Created attachment 882900 [details]
Build log

FAILED: obj/deps/v8/src/compiler/turboshaft/v8_turboshaft.assembler.o 
riscv64-unknown-linux-gnu-g++ -MMD -MF obj/deps/v8/src/compiler/turboshaft/v8_turboshaft.assembler.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_MACROS -DV8_TARGET_ARCH_RISCV64 -D__riscv_xlen=
64 -DCAN_USE_FPU_INSTRUCTIONS -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX '-DV8_EMBEDDER_STRING="-node.17"' -DENABLE_DISASSEMBLER -DV8_PROMISE_INTERNAL_FIELD_COUNT=1 -DV8_
ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION -DOBJECT_PRINT -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_USE_SIPHASH -DV8_SHARED
_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_USE_ZLIB -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_JAVASCRIPT_PR
OMISE_HOOKS -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -I../../deps/v8 -I../../deps/v8/include -Igen/generate-bytecode-output
-root -Igen -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -mabi=lp64d -march=rv64
imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fomit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++17  -c ../../deps/v8/src/compiler/turbos
haft/assembler.cc -o obj/deps/v8/src/compiler/turboshaft/v8_turboshaft.assembler.o
In file included from ../../deps/v8/src/codegen/assembler-arch.h:27,
                 from ../../deps/v8/src/wasm/baseline/liftoff-assembler-defs.h:8,
                 from ../../deps/v8/src/execution/riscv/frame-constants-riscv.h:11,
                 from ../../deps/v8/src/execution/frame-constants.h:426,
                 from ../../deps/v8/src/builtins/builtins-utils.h:11,
                 from ../../deps/v8/src/api/api-arguments.h:9,
                 from ../../deps/v8/src/ic/call-optimization.h:8,
                 from ../../deps/v8/src/compiler/heap-refs.h:11,
                 from ../../deps/v8/src/compiler/feedback-source.h:8,
                 from ../../deps/v8/src/compiler/common-operator.h:12,
                 from ../../deps/v8/src/compiler/js-operator.h:10,
                 from ../../deps/v8/src/compiler/access-builder.h:9,
                 from ../../deps/v8/src/compiler/turboshaft/assembler.h:21,
                 from ../../deps/v8/src/compiler/turboshaft/assembler.cc:5:
../../deps/v8/src/codegen/riscv/assembler-riscv.h:289:60: error: ‘Tagged’ has not been declared
  289 |                                                            Tagged<Code> code,
      |                                                            ^~~~~~
../../deps/v8/src/codegen/riscv/assembler-riscv.h:289:66: error: expected ‘,’ or ‘...’ before ‘<’ token
  289 |                                                            Tagged<Code> code,
      |                                                                  ^
Comment 1 Andrew Cameron 2024-01-22 21:54:17 UTC
Created attachment 882901 [details]
Environment
Comment 2 Andrew Cameron 2024-01-22 21:54:39 UTC
Created attachment 882902 [details]
Info log
Comment 3 Andrew Cameron 2024-01-22 21:55:11 UTC
Created attachment 882903 [details]
pqv log
Comment 4 Andrew Cameron 2024-01-26 11:32:25 UTC
Created attachment 883156 [details, diff]
Patch

The attached patch allows me to emerge this version of nodejs
Comment 5 Larry the Git Cow gentoo-dev 2024-02-04 00:37:24 UTC
The bug has been closed via the following commit(s):

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

commit 01b9c90a42dc927bf4b9a93360c5389246acff26
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2024-02-04 00:36:46 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2024-02-04 00:37:07 +0000

    net-libs/nodejs: Fix build on riscv for version 20.11.0
    
    Closes: https://bugs.gentoo.org/922725
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 net-libs/nodejs/files/nodejs-20.11.0-riscv.patch | 155 +++++++++++++++++++++++
 net-libs/nodejs/nodejs-20.11.0.ebuild            |   3 +
 2 files changed, 158 insertions(+)