Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cross Compile nodejs for arm
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sumit Aggarwal  
View profile  
 More options Sep 18 2012, 7:22 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Tue, 18 Sep 2012 04:22:48 -0700 (PDT)
Local: Tues, Sep 18 2012 7:22 am
Subject: Cross Compile nodejs for arm

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Sep 18 2012, 7:33 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Tue, 18 Sep 2012 13:33:13 +0200
Local: Tues, Sep 18 2012 7:33 am
Subject: Re: [nodejs] Cross Compile nodejs for arm

On Tue, Sep 18, 2012 at 1:22 PM, Sumit Aggarwal <getsumit...@gmail.com> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Rajlich  
View profile  
 More options Sep 18 2012, 11:52 am
From: Nathan Rajlich <nat...@tootallnate.net>
Date: Tue, 18 Sep 2012 08:51:45 -0700
Local: Tues, Sep 18 2012 11:51 am
Subject: Re: [nodejs] Cross Compile nodejs for arm
I wrote a blog article about this very thing a couple weeks ago:
http://n8.io/cross-compiling-nodejs-v0.8

Cheers!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Aggarwal  
View profile  
 More options Sep 19 2012, 2:54 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Tue, 18 Sep 2012 23:54:21 -0700 (PDT)
Local: Wed, Sep 19 2012 2:54 am
Subject: Re: Cross Compile nodejs for arm

Thanks Ban and Nathan
Actually i tried both the methods and get the error

*NameError: name 'arm_neon' is not defined while evaluating condition
'arm_neon!=1 and arm_fpu!="vfpv3" and arm_fpu!="vfpv3-d16"' in
/home/nodejs/deps/v8/tools/gyp/v8.gyp while loading dependencies of
/home/nodejs/node.gyp while trying to load /home/nodejs/node.gyp*

Does it mean that i need to cross compile v8 separately and then try to
compile nodejs ?? or some configuration change is required ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Aggarwal  
View profile  
 More options Sep 19 2012, 4:41 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Wed, 19 Sep 2012 01:41:07 -0700 (PDT)
Local: Wed, Sep 19 2012 4:41 am
Subject: Re: Cross Compile nodejs for arm

Commented following portion in deps/v8/tools/gyp/v8.gyp  and compilation
was success with --without-snapshot option
  149                   'conditions': [
    150                     ['armv7==1', {
    151                       # The ARM Architecture Manual mandates VFPv3
if NEON is
    152                       # available.
    153                       # The current V8 doesn't use d16-d31, so for
vfpv3-d16, we can
    154                       # also enable vfp3 for the better performance.
    155                       'conditions': [
    156 #        ['arm_neon!=1 and arm_fpu!="vfpv3" and
arm_fpu!="vfpv3-d16"', {
    157 #                        'variables': {
    158 #                          'mksnapshot_flags': [
    159 #                            '--noenable_vfp3',
    160 #                           ],
    161 #                         },
    162 # }],
    163                       ],

i do not understand what is --without-snapshot option option and what
commented portion does. can someone please telll
I need to run executable on my board and check for error if any !!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Aggarwal  
View profile  
 More options Sep 19 2012, 5:44 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Wed, 19 Sep 2012 02:44:54 -0700 (PDT)
Local: Wed, Sep 19 2012 5:44 am
Subject: Re: Cross Compile nodejs for arm

> Able to run Test program on my embedded board. still i am thinking about

1.  compiling with --without-snapshot option. and how does it will effect
the performance.
2. and modfication did in  deps/v8/tools/gyp/v8.gyp

can someone please explain the impact of these on my system's performance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Sep 19 2012, 6:51 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 19 Sep 2012 12:51:32 +0200
Local: Wed, Sep 19 2012 6:51 am
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm

Sumit, can you try this patch?

https://gist.github.com/9c4d01a7d3091398a1be

> i do not understand what is --without-snapshot option option and what
> commented portion does. can someone please telll
> I need to run executable on my board and check for error if any !!

--without-snapshot disables precompiling the built-in objects (Array,
String, etc.). There is a performance penalty but it's minor, it only
affects startup times.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Aggarwal  
View profile  
 More options Sep 19 2012, 8:27 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Wed, 19 Sep 2012 05:27:38 -0700 (PDT)
Local: Wed, Sep 19 2012 8:27 am
Subject: Re: Cross Compile nodejs for arm

Hi Ben,
Patch did work for me. Thanks for the help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Onezino Gabriel Moreira  
View profile  
 More options Sep 19 2012, 8:52 am
From: Onezino Gabriel Moreira <heat...@gmail.com>
Date: Wed, 19 Sep 2012 05:52:00 -0700 (PDT)
Subject: Re: Cross Compile nodejs for arm

Wow, that is an awesome tip.

I really want see my nodes running in tablates or phones.

Em quarta-feira, 19 de setembro de 2012 09h27min38s UTC-3, Sumit Aggarwal
escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Sep 19 2012, 8:59 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Wed, 19 Sep 2012 14:59:31 +0200
Local: Wed, Sep 19 2012 8:59 am
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm

On Wed, Sep 19, 2012 at 2:27 PM, Sumit Aggarwal <getsumit...@gmail.com> wrote:
> Hi Ben,
> Patch did work for me. Thanks for the help

Thanks for testing. Landed in master.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sumit Aggarwal  
View profile  
 More options Sep 20 2012, 1:49 am
From: Sumit Aggarwal <getsumit...@gmail.com>
Date: Wed, 19 Sep 2012 22:49:07 -0700 (PDT)
Local: Thurs, Sep 20 2012 1:49 am
Subject: Re: Cross Compile nodejs for arm

Hello Ben and Moreira
i want to use nodejs for enhancement of device capabilities and want to do
something like this
1. Make device as http web server. something like done by nokia "
http://research.nokia.com/page/231".
So that i can expose device capabilities to a web application and making
device controllable by web like playing music, sharing data and may more.

2. Next step i have not decided yet but it should be something like
supporting cross device web apps.

But fist step is very important to understand if i can achieve what i want
and i am into right direction. Step Zero (Porting nodejs
is already complete with Ben's help )
Can you suggest some good reference for making device as REST web server.
and easily map c++ APIs.

i am a C++ developer and new to js. so making me slower in develop
something in JS.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
P. Douglas Reeder  
View profile  
 More options Sep 20 2012, 2:19 pm
From: "P. Douglas Reeder" <reeder...@gmail.com>
Date: Thu, 20 Sep 2012 11:19:08 -0700 (PDT)
Local: Thurs, Sep 20 2012 2:19 pm
Subject: Re: Cross Compile nodejs for arm

If you're not set on a particular device yet, you might pick up a used webOS device cheaply.  You're restricted to Node v0.2.3 on phones (Palm Pre 2 or HP Veer) and v0.4.12 on the HP TouchPad, but Node is already tested and optimized. Plus, you can easily write a front end to configure your website in JavaScript as well.

You can even distribute through the App Catalog: http://developer.palm.com/appredirect/?packageid=com.hominidsoftware....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Kunkee  
View profile  
 More options Oct 4 2012, 4:22 pm
From: Jonathan Kunkee <jonathan.kun...@gmail.com>
Date: Thu, 4 Oct 2012 13:22:17 -0700 (PDT)
Local: Thurs, Oct 4 2012 4:22 pm
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm

Ben,

This patch fixes this for me. I have been fighting this since v0.6.19.
Thank you!

VFPv3 is the default for ARMv7, but not required:
http://www.arm.com/products/processors/technologies/vector-floating-p...

These flags could be more reliably set from /proc/cpuinfo or the command
line,
but grokking compiler flags is more portable...

Cheers,
Jon Kunkee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Oct 4 2012, 10:45 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Fri, 5 Oct 2012 04:45:29 +0200
Local: Thurs, Oct 4 2012 10:45 pm
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm
On Thu, Oct 4, 2012 at 10:22 PM, Jonathan Kunkee

<jonathan.kun...@gmail.com> wrote:
> Ben,

> This patch fixes this for me. I have been fighting this since v0.6.19. Thank
> you!

> VFPv3 is the default for ARMv7, but not required:
> http://www.arm.com/products/processors/technologies/vector-floating-p...

> These flags could be more reliably set from /proc/cpuinfo or the command
> line,
> but grokking compiler flags is more portable...

> Cheers,
> Jon Kunkee

Thanks Jon, good to know. Do you know if there are actual ARMv7 units
out there that don't support VFPv3? All the ARMv7 gear I have or know
of supports it. So far I haven't received bug reports either.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Kunkee  
View profile  
 More options Oct 5 2012, 1:26 pm
From: Jonathan Kunkee <jonathan.kun...@gmail.com>
Date: Fri, 5 Oct 2012 10:26:28 -0700 (PDT)
Local: Fri, Oct 5 2012 1:26 pm
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm

> Thanks Jon, good to know. Do you know if there are actual ARMv7 units
> out there that don't support VFPv3? All the ARMv7 gear I have or know
> of supports it. So far I haven't received bug reports either.

I honestly don't know. There's a chance ARM would actually answer that
question, but that's asking about their customer base...

The two systems I have access to here at school are both armv7l and
support vfpv3.

I was thinking intelligently enabling NEON might be a performance boost,
but I have no idea how to benchmark that.

Cheers,
Jon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Oct 5 2012, 4:17 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Fri, 5 Oct 2012 22:17:46 +0200
Local: Fri, Oct 5 2012 4:17 pm
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm
On Fri, Oct 5, 2012 at 7:26 PM, Jonathan Kunkee

<jonathan.kun...@gmail.com> wrote:
> I was thinking intelligently enabling NEON might be a performance boost,
> but I have no idea how to benchmark that.

You mean adding NEON support to V8? Because it doesn't support it now,
only VFPv3.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Kunkee  
View profile  
 More options Oct 6 2012, 4:38 pm
From: Jonathan Kunkee <jonathan.kun...@gmail.com>
Date: Sat, 6 Oct 2012 13:38:34 -0700 (PDT)
Local: Sat, Oct 6 2012 4:38 pm
Subject: Re: [nodejs] Re: Cross Compile nodejs for arm

> You mean adding NEON support to V8? Because it doesn't support it now,
> only VFPv3.

Point. I had assumed that the compiler could produce effective NEON
code, but using SIMD effectively often does require explicit use in code.
Adding it to the code would probably not be worth the cost for now.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Gentilin  
View profile  
 More options Apr 9, 11:58 pm
From: John Gentilin <gent...@gmail.com>
Date: Tue, 9 Apr 2013 20:58:45 -0700 (PDT)
Local: Tues, Apr 9 2013 11:58 pm
Subject: Re: [nodejs] Cross Compile nodejs for arm

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/o ut/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/acce ssors.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:                                                                    


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »