I am having some problems cross compiling NodeJS for ARM processor, my 
ultimate
target is to have it run under Android on a CubieBoard, the AllWinner A10 
part.

Following Nathan's post, I am trying to compile either node v0.8.9 or 
v.0.10.3. 
My host platform is a CentOS X64 VM using the 
gcc-linaro-aarch64-linux-gnu-4.7 tool chain.

It seems to start out just fine until it tries to compile V8 then it has a 
problem saying that the
ARM target is only supported on a 32bit host, but I have 32bit support 
added in. I have also 
successfully compiled V8 against the NDK toolchain following this post, and 
it runs under 
Android. http://code.google.com/p/v8/wiki/D8OnAndroid

Has anyone seen this problem, below is the compiler output. It's the same 
for both releases.

-John Gentilin

  aarch64-linux-gnu-g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' 
'-DV8_TARGET_ARCH_ARM' '-DUSE_EABI_HARDFLOAT=0' -I../deps/v8/src  -Wall 
-Wextra -Wno-unused-parameter -pthread -fno-strict-aliasing -O2 
-fno-strict-aliasing -fno-tree-vrp -fno-rtti -fno-exceptions -MMD -MF 
/usr/local/src/node-v0.10.3/out/Release/.deps//usr/local/src/node-v0.10.3/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw
  
-c -o 
/usr/local/src/node-v0.10.3/out/Release/obj.target/v8_base/deps/v8/src/accessors.o
 
../deps/v8/src/accessors.cc                                                     
                       

In file included from 
../deps/v8/src/v8globals.h:31:0,                                                
                    

                 from 
../deps/v8/src/v8.h:53,                                                         
                    

                 from 
../deps/v8/src/accessors.cc:28:                                                 
                    

../deps/v8/src/globals.h:90:2: error: #error Host architecture was not 
detected as supported by v8                        
../deps/v8/src/globals.h:120:2: error: #error Target architecture arm is 
only supported on arm and ia32 host              
In file included from 
../deps/v8/src/platform.h:99:0,                                                 
                    

                 from 
../deps/v8/src/v8utils.h:32,                                                    
                    

                 from 
../deps/v8/src/v8.h:56,                                                         
                    

                 from 
../deps/v8/src/accessors.cc:28:                                                 
                    

../deps/v8/src/atomicops.h:168:2: error: #error "Atomic operations are not 
supported on your platform"                    
In file included from 
../deps/v8/src/lazy-instance.h:94:0,                                            
                    

                 from 
../deps/v8/src/platform.h:100,                                                  
                    

                 from 
../deps/v8/src/v8utils.h:32,                                                    
                    

                 from 
../deps/v8/src/v8.h:56,                                                         
                    

                 from 
../deps/v8/src/accessors.cc:28:                                                 
                    


On Tuesday, September 18, 2012 8:52:21 AM UTC-7, Nathan Rajlich wrote:
>
> I wrote a blog article about this very thing a couple weeks ago: 
> http://n8.io/cross-compiling-nodejs-v0.8 
>
> Cheers! 
>
> On Tue, Sep 18, 2012 at 4:33 AM, Ben Noordhuis 
> <[email protected]<javascript:>> 
> wrote: 
> > On Tue, Sep 18, 2012 at 1:22 PM, Sumit Aggarwal 
> > <[email protected]<javascript:>> 
> wrote: 
> >> i want to cross compile nodejs for my Arm based board.  After enough 
> >> googling i am still not able to get it right. 
> >> Can some one please refer some good document or summarize build 
> procedure of 
> >> nodejs for arm 
> > 
> > It's pretty straightforward with v0.8: 
> > 
> >   $ CC=arm-linux-gcc ./configure --dest-cpu=arm 
> > 
> > You can optionally specify the floating point ABI with 
> > --with-arm-float-abi=soft|softfp|hard 
> > 
> > -- 
> > 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 [email protected]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/nodejs?hl=en?hl=en 
>

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to