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
node-gyp unable to cross compile for ARM processor
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
  3 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
 
Pavi  
View profile  
 More options Nov 8 2012, 5:13 pm
From: Pavi <pavinc...@gmail.com>
Date: Thu, 8 Nov 2012 14:13:34 -0800 (PST)
Local: Thurs, Nov 8 2012 5:13 pm
Subject: node-gyp unable to cross compile for ARM processor

Hi i wrote my binding.cc and binding.gyp for my ARM library,
I compiled and i always see the below error,
bash-4.1$ sudo
/home/pavincoll/Downloads/node-v0.8.0/deps/npm/bin/node-gyp-bin/node-gyp
configure build
[sudo] password for pavincoll:
gyp info it worked if it ends with ok
gyp info using node-...@0.5.2
gyp info using n...@0.8.0
gyp info spawn python
gyp info spawn args [ '/home/pavincoll/.node-gyp/0.8.0/tools/gyp_addon',
gyp info spawn args   'binding.gyp',
gyp info spawn args  
'-I/home/pavincoll/workspace/aqstub/src/build/config.gypi',
gyp info spawn args   '-f',
gyp info spawn args   'make' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/pavincoll/workspace/aqstub/src/build'
  CXX(target) Release/obj.target/aqARM/NJSAQ.o
  SOLINK_MODULE(target) Release/obj.target/aqARM.node
/usr/local/lib/libaqARM.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [Release/obj.target/aqARM.node] Error 1
make: Leaving directory `/home/pavincoll/workspace/aqstub/src/build'
gyp ERR! build error Error: `make` failed with exit code: 2
gyp ERR! build error     at ChildProcess.onExit
(/home/pavincoll/Downloads/node-v0.8.0/deps/npm/node_modules/node-gyp/lib/b uild.js:214:23)
gyp ERR! build error     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! build error     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! not ok

But the Library is a ARM compatible binary.
The config.gyp is always ,
  "target_defaults": {
    "cflags": [],
    "default_configuration": "Release",
    "defines": [],
    "include_dirs": [],
    "libraries": []
  },
  "variables": {
*    "host_arch": "ia32",*
    "node_install_npm": "true",
    "node_install_waf": "true",
    "node_prefix": "",
    "node_shared_openssl": "false",
    "node_shared_v8": "false",
    "node_shared_zlib": "false",
    "node_use_dtrace": "false",
    "node_use_etw": "false",
    "node_use_openssl": "true",
    "strict_aliasing": "true",
*    "target_arch": "ia32",*
    "v8_use_snapshot": "false",
    "nodedir": "/home/pavincoll/.node-gyp/0.8.0",
    "copy_dev_lib": "true"
  }
Were you can see Target_arch as "ia32"
Please let me know how should i cross compile node-gyp for an ARM processor


 
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.
Pavi  
View profile  
 More options Nov 8 2012, 5:17 pm
From: Pavi <pavinc...@gmail.com>
Date: Thu, 8 Nov 2012 14:17:16 -0800 (PST)
Local: Thurs, Nov 8 2012 5:17 pm
Subject: Re: node-gyp unable to cross compile for ARM processor

I have a script which sets all the Variables pointing to the ARM File
system and Compiler to 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 Nov 8 2012, 7:09 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Fri, 9 Nov 2012 01:08:58 +0100
Local: Thurs, Nov 8 2012 7:08 pm
Subject: Re: [nodejs] node-gyp unable to cross compile for ARM processor

Run node-gyp like this:

  $ node-gyp --arch arm configure build # or just 'rebuild'

You shouldn't have to run it as root, by the way.


 
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 »