nodejs / nodejs/nan

Cross Compile for ARMv5

Open
#933 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.4k
Forks
531
Avg merge
21m
Merged PRs (30d)
1

Description

Hi, I'm trying to compile for an ARMv5 device, but I'm getting the error below.

# node
> var NativeExtension = require('./')
node: can't resolve symbol 'node_module_register'

Target node version
node v0.10.38
Target Device: ANYKA CPU AK3918 (ARMv5TEJ)

I'm managed to cross-compile to arm using:

export CROSS_COMPILE="arm-anykav200-linux-uclibcgnueabi-"
export CROSS_TOOL=arm-anykav200-linux-uclibcgnueabi-
export STAGING_DIR=/home/ricardo/Documents/IOT/qiwen-anycloud39ev300/anycloud39ev300/SDK/tools/arm-anykav200-crosstool/usr

# use old v0.10.x node 
export PATH="/home/ricardo/Documents/IOT/anyka/src/node/_install/bin:$PATH";


export PATH="$STAGING_DIR/bin:$PATH"
export LD_LIBRARY_PATH=$STAGING_DIR/lib:$LD_LIBRARY_PATH

export CC=${CROSS_COMPILE}gcc
export CXX=${CROSS_COMPILE}g++

node -v
npm -v

npm --target_arch=arm-linux install
npm --target_arch=arm-linux run configure
npm --target_arch=arm-linux run build


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the node v0.10.38 ARMv5 cross-compilation commands and inspect the reported unresolved node_module_register symbol in the native extension load path. Done would require identifying whether the ARMv5 build is supported and documenting or resolving the cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, nodejs
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.