Repository navigation
Closed
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.trace_eventsIssues and PRs related to trace events from V8, Node.js core, and user code.Issues and PRs related to trace events from V8, Node.js core, and user code.
Description
- Version: v7.10.0, v8.0.0
- Platform: Linux x64 (Ubuntu 17.04)
- Subsystem: Build?
./configure --enable-static
make
ends up
/tmp/out/Release/obj.target/node/src/tracing/node_trace_writer.o: In function `node::tracing::NodeTraceWriter::FlushPrivate()':
node_trace_writer.cc:(.text+0x16e0): multiple definition of `node::tracing::NodeTraceWriter::FlushPrivate()'
/tmp/out/Release/obj.target/node/src/tracing/node_trace_writer.o:node_trace_writer.cc:(.text+0x16e0): first defined here
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o: In function `node::tracing::TraceEventHelper::SetCurrentPlatform(v8::Platform*)':
trace_event.cc:(.text+0x0): multiple definition of `node::tracing::TraceEventHelper::SetCurrentPlatform(v8::Platform*)'
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o:trace_event.cc:(.text+0x0): first defined here
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o:(.bss+0x0): multiple definition of `node::tracing::platform_'
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o:(.bss+0x0): first defined here
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o: In function `node::tracing::TraceEventHelper::GetCurrentPlatform()':
trace_event.cc:(.text+0x10): multiple definition of `node::tracing::TraceEventHelper::GetCurrentPlatform()'
/tmp/out/Release/obj.target/node/src/tracing/trace_event.o:trace_event.cc:(.text+0x10): first defined here
collect2: error: ld returned 1 exit status
cctest.target.mk:218: recipe for target '/tmp/out/Release/cctest' failed
make[1]: *** [/tmp/out/Release/cctest] Error 1
rm 8cc54113df3f034cebe6283bb3a0080714e3f522.intermediate
Makefile:76: recipe for target 'node' failed
make: *** [node] Error 2
for me.
With v7.4.0, things are working.
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.trace_eventsIssues and PRs related to trace events from V8, Node.js core, and user code.Issues and PRs related to trace events from V8, Node.js core, and user code.
Activity
mscdex commentedon Jun 6, 2017
/cc @nodejs/diagnostics
matiwinnetou commentedon Aug 1, 2017
Same issue here.
matiwinnetou commentedon Aug 2, 2017
@deas did you find any workaround for this?
bnoordhuis commentedon Aug 2, 2017
The problem is with the cctest binary, it seems. You can probably work around it by just building node with
make -C out node BUILDTYPE=Releasedeas commentedon Aug 2, 2017
@matiwinnetou Did not try very hard. Ended up assembling the final linking command manually.
drywolf commentedon Aug 14, 2017
On a related note, there also seems to be a linking problem on win32 that might be of concern to this issue.
I am building node from the checked out v7.9.0 git tag with
--enable-static.The node.js build finishes ok, but when I try to link the produced static libraries into the J2V8 dll code I get the following linker errors:
When I run exactly the same build from the node v7.4.0 tag everything links & works fine.
build: don't add libraries when --enable-static
build: don't add libraries when --enable-static