Multiple problems installing on 10.5

348 views
Skip to first unread message

Dave Everitt

unread,
Dec 28, 2011, 10:49:42 AM12/28/11
to nodejs
CoffeeScript suggests `npm install coffee-script`, so (also being
interested in Node) I used the OS X Node installer.

On the above command, the error was `env: node: Bad CPU type in
executable`.

A search suggested installing Node from source on 32-bit machines (no
check in the installer?), so I got the zip from https://github.com/joyent/node
and did the usual `./configure;make;sudo make install`, although
`make` threw up a few errors:


../deps/openssl/openssl/ssl/s3_srvr.c: In function
‘ssl3_get_next_proto’:
../deps/openssl/openssl/ssl/s3_srvr.c:2446: warning: comparison
between signed and unsigned
../deps/openssl/openssl/ssl/s3_srvr.c:2449: warning: comparison
between signed and unsigned


../deps/openssl/openssl/crypto/cast/c_enc.c: In function
‘CAST_encrypt’:
../deps/openssl/openssl/crypto/cast/c_enc.c:65: warning: ‘register’ is
not at beginning of declaration
../deps/openssl/openssl/crypto/cast/c_enc.c: In function
‘CAST_decrypt’:
../deps/openssl/openssl/crypto/cast/c_enc.c:98: warning: ‘register’ is
not at beginning of declaration


../deps/openssl/openssl/crypto/engine/eng_padlock.c:704: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:705: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:706: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:707: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:709: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:710: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:711: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:712: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:714: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:715: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:716: warning:
initialization from incompatible pointer type
../deps/openssl/openssl/crypto/engine/eng_padlock.c:717: warning:
initialization from incompatible pointer type


../deps/openssl/openssl/crypto/x509v3/v3_utl.c: In function
‘hex_to_string’:
../deps/openssl/openssl/crypto/x509v3/v3_utl.c:368: warning: ‘static’
is not at beginning of declaration


LIBTOOL-STATIC /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/libopenssl.a
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/ssl/kssl.o has no
symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/ebcdic.o has no
symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/evp/dig_eng.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/evp/
e_camellia.o has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/evp/e_rc5.o has
no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/evp/e_seed.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/evp/m_mdc2.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/fips_err.o has
no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/rand/rand_eng.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/rand/rand_nw.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/rand/rand_os2.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/rand/rand_win.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/rc4/rc4_fblk.o
has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/x509v3/
v3_addr.o has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/crypto/x509v3/
v3_asid.o has no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/engines/e_capi.o has
no symbols
libtool: file: /Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/openssl/deps/openssl/openssl/engines/e_gmp.o has no
symbols

../deps/uv/src/ares/ares_process.c: In function ‘read_udp_packets’:
../deps/uv/src/ares/ares_process.c:481: warning: pointer targets in
passing argument 6 of ‘recvfrom’ differ in signedness

[others omitted until finally...]

ACTION v8_snapshot_run_mksnapshot /Users/deveritt/src/node.js/joyent-
node-b037c16/out/Release/obj.target/v8_snapshot/geni/snapshot.cc
/bin/sh: line 1: 23272 Bus error "/Users/deveritt/src/
node.js/joyent-node-b037c16/out/Release/mksnapshot" --log-snapshot-
positions --logfile "/Users/deveritt/src/node.js/joyent-node-b037c16/
out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/Users/deveritt/
src/node.js/joyent-node-b037c16/out/Release/obj.target/v8_snapshot/
geni/snapshot.cc"
make[1]: *** [/Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 138
make: *** [node] Error 2

Then I tried to install npm with `curl http://npmjs.org/install.sh |
sh`:


make -C out BUILDTYPE=Release
ACTION v8_snapshot_run_mksnapshot /Users/deveritt/src/node.js/joyent-
node-b037c16/out/Release/obj.target/v8_snapshot/geni/snapshot.cc
/bin/sh: line 1: 23284 Bus error "/Users/deveritt/src/
node.js/joyent-node-b037c16/out/Release/mksnapshot" --log-snapshot-
positions --logfile "/Users/deveritt/src/node.js/joyent-node-b037c16/
out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/Users/deveritt/
src/node.js/joyent-node-b037c16/out/Release/obj.target/v8_snapshot/
geni/snapshot.cc"
make[1]: *** [/Users/deveritt/src/node.js/joyent-node-b037c16/out/
Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 138
make: *** [node] Error 2
Macintosh-2:joyent-node-b037c16 deveritt$ curl http://npmjs.org/install.sh
| sh
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
100 7184 100 7184 0 0 20570 0 --:--:-- --:--:--
--:--:-- 64142
tar=/usr/bin/tar
version:
tar (GNU tar) 1.15.1
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
You need node to run this program.
node --version reports: npm-install-23289.sh: line 199: /usr/local/bin/
node: Bad CPU type in executable
Please upgrade node before continuing.
It failed

That took about 2 hours - any ideas?

Ryan Schmidt

unread,
Dec 28, 2011, 10:04:49 PM12/28/11
to nod...@googlegroups.com
On Dec 28, 2011, at 09:49, Dave Everitt wrote:

> CoffeeScript suggests `npm install coffee-script`, so (also being
> interested in Node) I used the OS X Node installer.
>
> On the above command, the error was `env: node: Bad CPU type in
> executable`.

On what computer? Node requires an Intel-compatible processor.

Dave Everitt

unread,
Jan 1, 2012, 7:19:10 AM1/1/12
to nodejs
> On what computer? Node requires an Intel-compatible processor.

I'm aware of that requirement; it's a 2GHz Intel Core Duo iBook
running 10.5.8.

Dave Everitt

unread,
Jan 1, 2012, 7:29:30 AM1/1/12
to nodejs
> iBook

Oops, that should read 'iMac' (wishful thinking).

Ben Noordhuis

unread,
Jan 1, 2012, 5:20:08 PM1/1/12
to nod...@googlegroups.com

What does `file $(which node)` say?

Ryan Schmidt

unread,
Jan 1, 2012, 7:07:09 PM1/1/12
to nod...@googlegroups.com


The Core processor is a 32-bit processor, and the pre-compiled Mac binaries are built for 64-bit only, and thus require a Core 2 processor or newer. That explains the "Bad CPU type" error you saw.

As for the compilation problems, in MacPorts, we've restricted Node to Snow Leopard (10.6) and up, since recent versions seemed to have problems on 10.5 and earlier.

Consider upgrading to Snow Leopard; it is faster than Leopard and more able to run modern programs like Node. Snow Leopard was only $29 when Apple was selling it; you can probably find it for less used now.

Dave Everitt

unread,
Jan 2, 2012, 10:24:00 AM1/2/12
to nodejs
Thanks - so I need to upgrade to Snow Leopard (got it, didn't want to
wreck my working 32-bit env). Perhaps you could add something in the
main web page and docs about requiring 64-bit and Snow Leopard? Or
make the Mac binaries check the same before going ahead? For now I'll
try to remove the failed install (tips?)

> The Core processor is a 32-bit processor, and the pre-compiled Mac binaries are built for 64-bit only...

Ben Noordhuis

unread,
Jan 2, 2012, 10:36:17 AM1/2/12
to nod...@googlegroups.com
On Mon, Jan 2, 2012 at 01:07, Ryan Schmidt <googl...@ryandesign.com> wrote:
> As for the compilation problems, in MacPorts, we've restricted Node to Snow Leopard (10.6) and up, since recent versions seemed to have problems on 10.5 and earlier.

What kind of problems? I'm quite sure that 0.6.6 compiles and runs on
10.5 but please report any issues and I'll happily fix them.

Ryan Schmidt

unread,
Jan 4, 2012, 2:27:40 AM1/4/12
to nod...@googlegroups.com
On Jan 2, 2012, at 09:36, Ben Noordhuis wrote:

> On Mon, Jan 2, 2012 at 01:07, Ryan Schmidt wrote:
>> As for the compilation problems, in MacPorts, we've restricted Node to Snow Leopard (10.6) and up, since recent versions seemed to have problems on 10.5 and earlier.
>
> What kind of problems? I'm quite sure that 0.6.6 compiles and runs on
> 10.5 but please report any issues and I'll happily fix them.

We disabled nodejs in Leopard and earlier in MacPorts in response to this report that nodejs 0.6.2 crashed on Leopard:

http://groups.google.com/group/nodejs/browse_thread/thread/e4bbdec19f281746/7d5e6fed8e0861c5

And this report that nodejs 0.6.2 compilation failed on Tiger:

https://trac.macports.org/ticket/32218

But upon further testing now, I see that 0.6.6 does work for me on Leopard. So I have requested that we allow installation on Leopard again:

https://trac.macports.org/ticket/32756

Tane Piper

unread,
Jan 4, 2012, 9:08:44 AM1/4/12
to nod...@googlegroups.com
Can confirm I've not been able to install > v0.6.4 on 10.6.8 with the
GCC compile tools from XCode.

Doing a pull on the latest v0.6 branch I get:

[33/35] cxx: src/platform_darwin.cc -> out/Release/src/platform_darwin_5.o
/usr/bin/g++ -pthread -arch x86_64 -g -O3 -DHAVE_OPENSSL=1
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=0
-DARCH="x64" -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter
-D_FORTIFY_SOURCE=2 -IRelease/src -I../src -IRelease/deps/http_parser
-I../deps/http_parser -IRelease/deps/uv/include -I../deps/uv/include
-IRelease/deps/uv/src/ares -I../deps/uv/src/ares
-IRelease/deps/v8/include -I../deps/v8/include -I/opt/local/include
-Ideps/v8/include ../src/platform_darwin.cc -c -o
Release/src/platform_darwin_5.o
In file included from ../src/platform_darwin_proctitle.cc:34,
from ../src/platform_darwin.cc:59:
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:70:35:
error: SecurityHI/SecurityHI.h: No such file or directory
Waf: Leaving directory `/Users/tanepiper/build/node/out'
Build failed: -> task failed (err #1):
{task: cxx platform_darwin.cc -> platform_darwin_5.o}
make: *** [program] Error 1

Up till now, it's compiled file on this machine - won't be an issue
for me after Monday, my new job starts and I'm on a Lion machine, but
there are compilation issues on systems < Lion

> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

Ryan Schmidt

unread,
Jan 4, 2012, 7:30:17 PM1/4/12
to nod...@googlegroups.com
On Jan 4, 2012, at 08:08, Tane Piper wrote:

> Can confirm I've not been able to install > v0.6.4 on 10.6.8 with the
> GCC compile tools from XCode.

0.6.6 builds and runs fine on Leopard. All versions of 0.6 have built and run fine for me on Snow Leopard.


> Doing a pull on the latest v0.6 branch I get:
>
> [33/35] cxx: src/platform_darwin.cc -> out/Release/src/platform_darwin_5.o
> /usr/bin/g++ -pthread -arch x86_64 -g -O3 -DHAVE_OPENSSL=1
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=0
> -DARCH="x64" -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter
> -D_FORTIFY_SOURCE=2 -IRelease/src -I../src -IRelease/deps/http_parser
> -I../deps/http_parser -IRelease/deps/uv/include -I../deps/uv/include
> -IRelease/deps/uv/src/ares -I../deps/uv/src/ares
> -IRelease/deps/v8/include -I../deps/v8/include -I/opt/local/include
> -Ideps/v8/include ../src/platform_darwin.cc -c -o
> Release/src/platform_darwin_5.o
> In file included from ../src/platform_darwin_proctitle.cc:34,
> from ../src/platform_darwin.cc:59:
> /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:70:35:
> error: SecurityHI/SecurityHI.h: No such file or directory
> Waf: Leaving directory `/Users/tanepiper/build/node/out'
> Build failed: -> task failed (err #1):
> {task: cxx platform_darwin.cc -> platform_darwin_5.o}
> make: *** [program] Error 1

There are only a dozen reports of this error on Google and half of them are yours. Sounds like something broken in your computer's Carbon framework. I'd reinstall the OS.

Tane Piper

unread,
Jan 5, 2012, 4:31:58 AM1/5/12
to nod...@googlegroups.com
This machine is a fresh install of 10.6, was done just before Christmas.

Most likely because I installed GGC tools instead of the full XCode3
package, this may be what's breaking it (and therefor maybe should be
documented you *need* XCode on Snow/Leopard instead of just the GCC
tools)

But as I said, as of Monday I'm personally not going to care any more
as I'll be moving to Lion with my new job so mehh

- Tane

Xavi Ramirez

unread,
Feb 12, 2012, 4:09:03 PM2/12/12
to nod...@googlegroups.com
Any progress on this issue? I'm running into the same thing.

Is there any way to build node with just GCC and *without* installing
all of XCode?

Ryan Schmidt

unread,
Feb 12, 2012, 6:30:39 PM2/12/12
to nod...@googlegroups.com

On Feb 12, 2012, at 15:09, Xavi Ramirez wrote:

> Any progress on this issue? I'm running into the same thing.

Monitor this upstream bug report:

http://code.google.com/p/v8/issues/detail?id=1936


> Is there any way to build node with just GCC and *without* installing
> all of XCode?

Nobody on OS X installs "just GCC without Xcode" so you're in unknown territory. I suggest you simply install Xcode the way everybody else does.

Reply all
Reply to author
Forward
0 new messages