Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} #6514

Closed
chancesmith opened this issue Nov 15, 2013 · 1 comment

Comments

@chancesmith
Copy link

Rolling through this on mac osx: http://dandean.com/nodejs-npm-express-osx/

failed with this:

Chances-MacBook-Pro:node chester911cross$ sudo make

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Waf: Entering directory /Users/chester911cross/src/node/build' DEST_OS: darwin DEST_CPU: x64 Parallel Jobs: 1 Product type: program [51/75] libv8.a: deps/v8/SConstruct -> build/default/libv8.a /usr/bin/python "/Users/chester911cross/src/node/tools/scons/scons.py" -j 1 -C "/Users/chester911cross/src/node/build/default/" -Y "/Users/chester911cross/src/node/deps/v8" visibility=default mode=release arch=x64 toolchain=gcc library=static snapshot=on scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o obj/release/mksnapshot -m64 obj/release/mksnapshot.o obj/release/libraries.o obj/release/accessors.o obj/release/allocation.o obj/release/api.o obj/release/assembler.o obj/release/ast.o obj/release/atomicops_internals_x86_gcc.o obj/release/bignum-dtoa.o obj/release/bignum.o obj/release/bootstrapper.o obj/release/builtins.o obj/release/cached-powers.o obj/release/checks.o obj/release/circular-queue.o obj/release/code-stubs.o obj/release/codegen.o obj/release/compilation-cache.o obj/release/compiler.o obj/release/contexts.o obj/release/conversions.o obj/release/counters.o obj/release/cpu-profiler.o obj/release/data-flow.o obj/release/dateparser.o obj/release/debug-agent.o obj/release/debug.o obj/release/deoptimizer.o obj/release/disassembler.o obj/release/diy-fp.o obj/release/dtoa.o obj/release/execution.o obj/release/extensions/externalize-string-extension.o obj/release/extensions/gc-extension.o obj/release/factory.o obj/release/fast-dtoa.o obj/release/fixed-dtoa.o obj/release/flags.o obj/release/frame-element.o obj/release/frames.o obj/release/full-codegen.o obj/release/func-name-inferrer.o obj/release/gdb-jit.o obj/release/global-handles.o obj/release/handles.o obj/release/hashmap.o obj/release/heap-profiler.o obj/release/heap.o obj/release/hydrogen-instructions.o obj/release/hydrogen.o obj/release/ic.o obj/release/inspector.o obj/release/interpreter-irregexp.o obj/release/jsregexp.o obj/release/jump-target-heavy.o obj/release/jump-target.o obj/release/lithium-allocator.o obj/release/lithium.o obj/release/liveedit.o obj/release/liveobjectlist.o obj/release/log-utils.o obj/release/log.o obj/release/mark-compact.o obj/release/messages.o obj/release/objects-printer.o obj/release/objects-visiting.o obj/release/objects.o obj/release/parser.o obj/release/platform-macos.o obj/release/platform-posix.o obj/release/preparse-data.o obj/release/preparser.o obj/release/profile-generator.o obj/release/property.o obj/release/regexp-macro-assembler-irregexp.o obj/release/regexp-macro-assembler.o obj/release/regexp-stack.o obj/release/register-allocator.o obj/release/rewriter.o obj/release/runtime-profiler.o obj/release/runtime.o obj/release/safepoint-table.o obj/release/scanner-base.o obj/release/scanner.o obj/release/scopeinfo.o obj/release/scopes.o obj/release/serialize.o obj/release/snapshot-common.o obj/release/spaces.o obj/release/string-search.o obj/release/string-stream.o obj/release/strtod.o obj/release/stub-cache.o obj/release/token.o obj/release/top.o obj/release/type-info.o obj/release/unicode.o obj/release/utils.o obj/release/v8-counters.o obj/release/v8.o obj/release/v8threads.o obj/release/variables.o obj/release/version.o obj/release/virtual-frame-heavy.o obj/release/virtual-frame.o obj/release/x64/assembler-x64.o obj/release/x64/builtins-x64.o obj/release/x64/code-stubs-x64.o obj/release/x64/codegen-x64.o obj/release/x64/cpu-x64.o obj/release/x64/debug-x64.o obj/release/x64/deoptimizer-x64.o obj/release/x64/disasm-x64.o obj/release/x64/frames-x64.o obj/release/x64/full-codegen-x64.o obj/release/x64/ic-x64.o obj/release/x64/jump-target-x64.o obj/release/x64/lithium-codegen-x64.o obj/release/x64/lithium-gap-resolver-x64.o obj/release/x64/lithium-x64.o obj/release/x64/macro-assembler-x64.o obj/release/x64/regexp-macro-assembler-x64.o obj/release/x64/register-allocator-x64.o obj/release/x64/stub-cache-x64.o obj/release/x64/virtual-frame-x64.o obj/release/zone.o obj/release/snapshot-empty.o -lpthread Undefined symbols for architecture x86_64: "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from: std::_Rb_tree<std::string, std::pair<std::string const, int*>, std::_Select1st<std::pair<std::string const, int*> >, std::less<std::string>, std::allocator<std::pair<std::string const, int*> > >::_M_erase(std::_Rb_tree_node<std::pair<std::string const, int*> >*) in mksnapshot.o "std::string::_Rep::_S_empty_rep_storage", referenced from: std::_Rb_tree<std::string, std::pair<std::string const, int*>, std::_Select1st<std::pair<std::string const, int*> >, std::less<std::string>, std::allocator<std::pair<std::string const, int*> > >::_M_erase(std::_Rb_tree_node<std::pair<std::string const, int*> >*) in mksnapshot.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) scons: *** [obj/release/mksnapshot] Error 1 scons: building terminated because of errors. Waf: Leaving directory/Users/chester911cross/src/node/build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1

@bnoordhuis
Copy link
Member

You're trying to build v0.4.7, which is horribly, horribly ancient. Check out v0.10 or, if you want a specific release, v0.10.22.

EDIT: You don't need to sudo make either. That's only necessary if you make install to /usr or /usr/local.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants