Bug 9941

Summary: nodejs option disappears for arm
Product: buildroot Reporter: Refik Tuzakli <tuzakli.refik>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: critical CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2017.02.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: .config file

Description Refik Tuzakli 2017-06-07 08:58:32 UTC
Hello

When I choose ARM architecture, nodejs option disappears in "Target packages" even I select all dependencies.

When I select  alder version of nodejs in "Legacy config options", nodejs in "Target Packages" appears and automatically selected but this time I cannot compile the selections.

for buildroot 2016.11, I could select nodejs for arm. so there was no problem.

Is this an bug or are there another problem for newer version of builroot.

Best regards.
Comment 1 Peter Korsgaard 2017-06-07 12:28:37 UTC
With ARM I take it that you specifically mean one of the older ARM variants (arm926t or similar)? Modern versions of nodejs require instructions only available on ARMv6 + FPU or newer. In 2016.11 we still supported the legacy 0.10.x version of nodejs for the older ARM variants, but this is no longer supported by nodejs upstream and got removed from Buildroot back in March.

If your system really has such an old ARM variant then you cannot use nodejs, unless you re-add the (unsupported) 0.10.x version or stick with with our current LTS release (2017.02.x)
Comment 2 Refik Tuzakli 2017-06-07 12:33:10 UTC
No it not older version. It is ARMv7
Comment 3 Peter Korsgaard 2017-06-07 13:03:45 UTC
(In reply to Refik Tuzakli from comment #2)

Ok, then please provide some more details:
 - What buildroot version
 - What is your .config

nodejs depends on:
default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2

You mention that you are using an ARMv7 core. Have you enabled FPU support?
Comment 4 Refik Tuzakli 2017-06-07 14:18:55 UTC
buildroot version 2017.08
ARM coretex-a9
fpu is enabled

nodejs depends on:
default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2  satisfied

.config file size more than uploading limit. I can not attache.
Comment 5 Peter Korsgaard 2017-06-07 14:51:15 UTC
(In reply to Refik Tuzakli from comment #4)

Ok, either run 'make savedefconfig' and attach the defconfig file or 'head -n 100 .config >config.txt' and attach config.txt
Comment 6 Refik Tuzakli 2017-06-12 12:59:32 UTC
Created attachment 7076 [details]
.config file

sorry for late reply
Comment 7 Yann E. MORIN 2017-06-12 16:39:54 UTC
Refik, All,

nodejs requires an FPU (VFP), but it is not enabled
in your Buildroot configuration.

So, if your CPU indeed lacks a VFP, then you can not
use nodejs on your target.

If your CPU does have a VFP, then enable it in your
Buildroot configuration.

Regards,
Yann E. MORIN.