Created
June 29, 2011 23:01
-
-
Save aperiodic/1055228 to your computer and use it in GitHub Desktop.
Failed Node Build Attempt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dlp@sax:~/code$ git clone --depth 1 https://github.com/joyent/node.git | |
Initialized empty Git repository in /home/dlp/code/node/.git/ | |
remote: Counting objects: 17567, done. | |
remote: Compressing objects: 100% (6871/6871), done. | |
remote: Total 17567 (delta 14313), reused 12979 (delta 10435) | |
Receiving objects: 100% (17567/17567), 20.30 MiB | 644 KiB/s, done. | |
Resolving deltas: 100% (14313/14313), done. | |
dlp@sax:~/code$ cd node/ | |
dlp@sax:~/code/node$ ./configure | |
Checking for program g++ or c++ : /usr/bin/g++ | |
Checking for program cpp : /usr/bin/cpp | |
Checking for program ar : /usr/bin/ar | |
Checking for program ranlib : /usr/bin/ranlib | |
Checking for g++ : ok | |
Checking for program gcc or cc : /usr/bin/gcc | |
Checking for gcc : ok | |
Checking for library dl : yes | |
Checking for openssl : yes | |
Checking for library util : yes | |
Checking for library rt : yes | |
Checking for CLOCK_MONOTONIC : yes | |
--- libeio --- | |
Checking for library pthread : yes | |
Checking for function pthread_create : yes | |
Checking for function pthread_atfork : yes | |
Checking for futimes(2) : yes | |
Checking for readahead(2) : yes | |
Checking for fdatasync(2) : yes | |
Checking for pread(2) and pwrite(2) : yes | |
Checking for sendfile(2) : yes | |
Checking for sync_file_range(2) : yes | |
Checking for fdatasync(2) with c++ : yes | |
'configure' finished successfully (0.861s) | |
dlp@sax:~/code/node$ make install | |
Waf: Entering directory `/home/dlp/code/node/build' | |
DEST_OS: linux | |
DEST_CPU: x64 | |
Parallel Jobs: 1 | |
Product type: program | |
[ 1/33] copy: src/node_config.h.in -> build/default/src/node_config.h | |
[ 2/33] copy: tools/nodejs.pc.in -> build/default/tools/nodejs.pc | |
[ 3/33] cc: deps/libeio/eio.c -> build/default/deps/libeio/eio_1.o | |
/usr/bin/gcc -rdynamic -D_GNU_SOURCE -pthread -g -O3 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=1 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=1 -DARCH="x64" -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -Idefault/deps/libeio -I../deps/libeio -Idefault -I.. ../deps/libeio/eio.c -c -o default/deps/libeio/eio_1.o | |
[ 4/33] cc: deps/http_parser/http_parser.c -> build/default/deps/http_parser/http_parser_3.o | |
/usr/bin/gcc -rdynamic -D_GNU_SOURCE -pthread -g -O3 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=1 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=1 -DARCH="x64" -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -Idefault/deps/http_parser -I../deps/http_parser ../deps/http_parser/http_parser.c -c -o default/deps/http_parser/http_parser_3.o | |
[ 5/33] src/node_natives.h: src/node.js lib/dgram.js lib/console.js lib/buffer.js lib/net_legacy.js lib/querystring.js lib/http.js lib/freelist.js lib/events.js lib/util.js lib/assert.js lib/module.js lib/_debugger.js lib/tty_win32.js lib/fs.js lib/os.js lib/dns.js lib/vm.js lib/url.js lib/tls.js lib/tty_posix.js lib/crypto.js lib/sys.js lib/timers_uv.js lib/https.js lib/stream.js lib/readline.js lib/_linklist.js lib/timers_legacy.js lib/net_uv.js lib/buffer_ieee754.js lib/tty.js lib/child_process.js lib/repl.js lib/path.js lib/string_decoder.js lib/constants.js -> build/default/src/node_natives.h | |
[ 6/33] uv: deps/uv/uv.h -> build/default/deps/uv/uv.a | |
/bin/sh: [[: not found | |
make[1]: Entering directory `/home/dlp/code/node/build/default/deps/uv' | |
gcc -Ic-ares/ -Ic-ares/config_linux --std=gnu89 -Wno-variadic-macros -g -c uv-unix.c -o uv-unix.o | |
gcc -Ic-ares/ -Ic-ares/config_linux --std=gnu89 -Wno-variadic-macros -g -c uv-common.c -o uv-common.o | |
gcc -Ic-ares/ -Ic-ares/config_linux --std=gnu89 -Wno-variadic-macros -g -c uv-linux.c -o uv-platform.o | |
uv-linux.c: In function ‘uv_hrtime’: | |
uv-linux.c:34: error: ‘NANOSEC’ undeclared (first use in this function) | |
uv-linux.c:34: error: (Each undeclared identifier is reported only once | |
uv-linux.c:34: error: for each function it appears in.) | |
make[1]: *** [uv-platform.o] Error 1 | |
make[1]: Leaving directory `/home/dlp/code/node/build/default/deps/uv' | |
Waf: Leaving directory `/home/dlp/code/node/build' | |
Build failed: -> task failed (err #2): | |
{task: uv uv.h -> uv.a} | |
make: *** [install] Error 1 |
I had that same issue. I ran git clean -f -d -x and then checked out v049.
It's compiling now...
i had this same issue running leopard 10.5.8; changed head to v0.4.9 and it seems to be running now "install finished successfully" ... thanks!
I was surprised after an hour of looking for a complicated solution that the packaged download on http://nodejs.org/#download just works for getting node.js going ...
mac package work for me :) thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the same problem with commit 2e1af6df499387c7d446 on my ubuntu 10.10. So I've changed the head to v0.4.9 by 'git checkout v0.4.9'. It's working.