NodeJS 12 ARMv5 Problem

845 views
Skip to first unread message

Michael Boldischar

unread,
Feb 10, 2015, 6:17:12 PM2/10/15
to nod...@googlegroups.com
I'm having trouble compiling NodeJS version 12 for ARMv5.  When I try running node, I get an "Illegal instruction" error.  The last known version to work for someone in my group was NodeJS version 10.

I suspect it has something to do with changes in the configure script.  Here is a section of version NodeJS version 12:
def configure_arm(o):
  if options.arm_float_abi:
    arm_float_abi = options.arm_float_abi
  elif is_arm_hard_float_abi():
    arm_float_abi = 'hard'
  else:
    arm_float_abi = 'default'

  if is_arch_armv7():
    o['variables']['arm_version'] = '7'
  elif is_arch_armv6():
    o['variables']['arm_version'] = '6'
  else:
    o['variables']['arm_version'] = 'default'

  o['variables']['arm_fpu'] = 'vfpv3'  # V8 3.18 no longer supports VFP2.
  o['variables']['arm_neon'] = int(is_arm_neon())
  o['variables']['arm_thumb'] = 0      # -marm
  o['variables']['arm_float_abi'] = arm_float_abi


Our ARMv5 processor does not support "arm_fpu".  Is there any way to disable this option in NodeJS 12?  The configure script makes it look like support was dropped for ARMv5.  Is that the case?  Any other tips for compiling for ARMv5?

Ben Noordhuis

unread,
Feb 11, 2015, 8:51:49 AM2/11/15
to nod...@googlegroups.com
I'm afraid that ARMv5 support was dropped completely from V8 around
3.20 or 3.21.

Walt Giroir

unread,
Feb 11, 2015, 12:28:52 PM2/11/15
to nod...@googlegroups.com
I am encountering similar issues with node v0.10.24 on ARMv7.

One issue that's hinders the resolution to this problem is yocto 1.71 has gcc 4.9.1.
With this version of the compiler, the -Werror option breaks the debug build.

Please let me know if you find a solution and I'll do the same.

--Walt

Michael Boldischar

unread,
Feb 11, 2015, 2:20:32 PM2/11/15
to nod...@googlegroups.com
I posted to the V8 mailing list as well.  So far, they confirm Ben's post.  Support seems to be dropped for ARMv5.

Louis Santillan

unread,
Feb 11, 2015, 4:38:45 PM2/11/15
to nod...@googlegroups.com
You'll find that a response from Ben on a v8 matter is as good as it
gets. LMGTFY...Here's where it was announced that older ARM ISAs were
desupported [0].


[0] https://groups.google.com/forum/#!topic/v8-users/aSOFbaAQvMk


On Wed, Feb 11, 2015 at 11:20 AM, Michael Boldischar
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+un...@googlegroups.com.
> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/3cb5298c-77aa-4f29-b8f7-9cb9b1414caa%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages