ajaxorg/cloud9 — Issue #803: cannot build o3 on mac osx 32bit
Author: bram-l
Created: 2012-01-18 11:39:14+00:00
State: open

Since there is no suitable node-o3-xml binary included for osx 32bit (10.6) I tried to compile it.
Halfway it returns an error but I have no clue what could be the problem..

```
mini:o3 bram$ sudo tools/node_modules_build
Password:
OSX build
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 node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.337s)
Waf: Entering directory `/Users/bram/o3/build'
[1/3] cxx: hosts/node-o3/sh_node.cc -> build/Release/hosts/node-o3/sh_node_1.o
12:17:19 runner system command -> ['/usr/bin/g++', '-no_compact_linkedit', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-mmacosx-version-min=10.5', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-compatibility_version', '1', '-current_version', '1', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-DEV_MULTIPLICITY=0', '-IRelease/include', '-I../include', '-IRelease/hosts', '-I../hosts', '-IRelease/modules', '-I../modules', '-IRelease/deps', '-I../deps', '-I/usr/local/include/node', '../hosts/node-o3/sh_node.cc', '-c', '-o', 'Release/hosts/node-o3/sh_node_1.o']
[2/3] cxx: hosts/node-o3/sh_node_libs.cc -> build/Release/hosts/node-o3/sh_node_libs_1.o
12:17:21 runner system command -> ['/usr/bin/g++', '-no_compact_linkedit', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-mmacosx-version-min=10.5', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-compatibility_version', '1', '-current_version', '1', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-DEV_MULTIPLICITY=0', '-IRelease/include', '-I../include', '-IRelease/hosts', '-I../hosts', '-IRelease/modules', '-I../modules', '-IRelease/deps', '-I../deps', '-I/usr/local/include/node', '../hosts/node-o3/sh_node_libs.cc', '-c', '-o', 'Release/hosts/node-o3/sh_node_libs_1.o']
/var/tmp//ccHHk58N.s:173046:non-relocatable subtraction expression, "LC146" minus "L00000000445$pb"
/var/tmp//ccHHk58N.s:173046:symbol: "L00000000445$pb" can't be undefined in a subtraction expression
/var/tmp//ccHHk58N.s:unknown:Undefined local symbol L00000000445$pb
Waf: Leaving directory `/Users/bram/o3/build'
Build failed: -> task failed (err #1):
{task: cxx sh_node.cc -> sh_node_1.o}
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 147, in prepare
error(str(e))
mini:o3 bram$ node -v
v0.4.9
```