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

build failure on Mac OS 10.5.8 #1937

Closed
phloxic opened this issue Oct 25, 2011 · 2 comments
Closed

build failure on Mac OS 10.5.8 #1937

phloxic opened this issue Oct 25, 2011 · 2 comments

Comments

@phloxic
Copy link

phloxic commented Oct 25, 2011

Back with another build failure:

g++-4.0 -o obj/release/mksnapshot -m32 obj/release/mksnapshot.o obj/release/libraries.o obj/release/experimental-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/elements.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/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/ia32/assembler-ia32.o obj/release/ia32/builtins-ia32.o obj/release/ia32/code-stubs-ia32.o obj/release/ia32/codegen-ia32.o obj/release/ia32/cpu-ia32.o obj/release/ia32/debug-ia32.o obj/release/ia32/deoptimizer-ia32.o obj/release/ia32/disasm-ia32.o obj/release/ia32/frames-ia32.o obj/release/ia32/full-codegen-ia32.o obj/release/ia32/ic-ia32.o obj/release/ia32/lithium-codegen-ia32.o obj/release/ia32/lithium-gap-resolver-ia32.o obj/release/ia32/lithium-ia32.o obj/release/ia32/macro-assembler-ia32.o obj/release/ia32/regexp-macro-assembler-ia32.o obj/release/ia32/stub-cache-ia32.o obj/release/ic.o obj/release/incremental-marking.o obj/release/inspector.o obj/release/interpreter-irregexp.o obj/release/isolate.o obj/release/jsregexp.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/rewriter.o obj/release/runtime-profiler.o obj/release/runtime.o obj/release/safepoint-table.o obj/release/scanner-character-streams.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/store-buffer.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/type-info.o obj/release/unicode.o obj/release/utils.o obj/release/v8-counters.o obj/release/v8.o obj/release/v8conversions.o obj/release/v8threads.o obj/release/v8utils.o obj/release/variables.o obj/release/version.o obj/release/zone.o obj/release/snapshot-empty.o -lpthread
obj/release/mksnapshot obj/release/snapshot.cc --logfile "/Users/chris/src/node/out/Release/obj/release/snapshot.log" --log-snapshot-positions
scons: *** [obj/release/snapshot.cc] Error -11
scons: building terminated because of errors.
Waf: Leaving directory `/Users/chris/src/node/out'
Build failed:  -> task failed (err #2):
        {task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1
@bnoordhuis
Copy link
Member

scons: *** [obj/release/snapshot.cc] Error -11

That's not a Node bug. Either your machine is running out of memory or the compiler or linker is segfaulting.

@phloxic
Copy link
Author

phloxic commented Oct 29, 2011

The problem is:

$ ls -l /us/bin/g++*
lrwxr-xr-x  1 root  wheel       7 Apr 12  2010 /usr/bin/g++ -> g++-4.0
-rwxr-xr-x  1 root  wheel   93088 Feb  5  2009 /usr/bin/g++-4.0
-rwxr-xr-x  1 root  wheel  105680 Jul  7  2009 /usr/bin/g++-4.2

CXX=g++-4.2 ./configure ... does the trick. Before g++-4.0 managed ok.

wiedi pushed a commit to wiedi/node that referenced this issue Aug 15, 2015
Notable changes:

* buffer:
  - Due to changes in V8, it has been necessary to reimplement Buffer
    on top of V8's Uint8Array. While every effort has been made to
    maintain performance, users are likely to experience a different
    performance profile depending on how Buffer is used.
    (Trevor Norris) nodejs#1825.
  - Buffer can now take ArrayBuffers as a constructor argument
    (Trevor Norris) nodejs#2002.
  - When a single buffer is passed to Buffer.concat(), a new, copied
    Buffer object will be returned; previous behavior was to return
    the original Buffer object (Sakthipriyan Vairamani) nodejs#1937.
* build: PPC support has been added to core to allow compiling on
  pLinux BE and LE (AIX support coming soon) (Michael Dawson) nodejs#2124.
* dgram: If an error occurs within socket.send() and a callback has
  been provided, the error is only passed as the first argument to the
  callback and not emitted on the socket object; previous behavior was
  to do both (Matteo Collina & Chris Dickinson) nodejs#1796
* freelist: Deprecate the undocumented freelist core module
  (Sakthipriyan Vairamani) nodejs#2176.
* http:
  - Status codes now all use the official IANA names as per RFC7231,
    e.g. http.STATUS_CODES[414] now returns 'URI Too Long' rather than
    'Request-URI Too Large' (jomo) nodejs#1470.
  - Calling .getName() on an HTTP agent no longer returns a trailing
    colon, HTTPS agents will no longer return an extra colon near the
    middle of the string (Brendan Ashworth) nodejs#1617.
* node:
  - NODE_MODULE_VERSION has been bumped to 45 to reflect the break in
    ABI (Rod Vagg) nodejs#2096.
  - Introduce a new process.release object that contains a name
    property set to 'io.js' and sourceUrl, headersUrl and libUrl
    (Windows only) properties containing URLs for the relevant
    resources; this is intended to be used by node-gyp
    (Rod Vagg) nodejs#2154.
  - The version of node-gyp bundled with io.js now downloads and uses
    a tarball of header files from iojs.org rather than the full
    source for compiling native add-ons; it is hoped this is a
    temporary floating patch and the change will be upstreamed to
    node-gyp soon (Rod Vagg) nodejs#2066.
* repl: Persistent history is now enabled by default. The history file
  is located at ~/.node_repl_history, which can be overridden by the
  new environment variable NODE_REPL_HISTORY. This deprecates the
  previous NODE_REPL_HISTORY_FILE variable. Additionally, the format
  of the file has been changed to plain text to better handle file
  corruption. (Jeremiah Senkpiel) nodejs#2224.
* smalloc: The smalloc module has been removed as it is no longer
  possible to provide the API due to changes in V8
  (Ben Noordhuis) nodejs#2022.
* tls: Add server.getTicketKeys() and server.setTicketKeys() methods
  for TLS session key rotation (Fedor Indutny) nodejs#2227.
* v8: Upgraded to 4.4.63.26
  - ES6: Enabled computed property names
  - ES6: Array can now be subclassed in strict mode
  - ES6: Implement rest parameters in staging, use the
    --harmony-rest-parameters command line flag
  - ES6: Implement the spread operator in staging, use the
    --harmony-spreadcalls command line flag
  - Removed SetIndexedPropertiesToExternalArrayData and related APIs,
    forcing a shift to Buffer to be reimplemented based on Uint8Array
  - Introduction of Maybe and MaybeLocal C++ API for objects which may
    or may not have a value.
  - Added support for PPC

PR-URL: nodejs/node#2299
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