LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-26-2021, 08:20 AM   #1
wolfbiker1
LQ Newbie
 
Registered: Aug 2021
Posts: 2

Rep: Reputation: Disabled
Buildroot / ARM - aarch64: Compile of NodeJs fails


Hi!

Currently i'm busy to cross-compile an minimal linux embedded RootFS for an Rpi4. (based on rpi4-defconfig)

Everything went fine until i added the NodeJS Package from buildroot. First of all, the building process stucks at this point:
Code:
../src/node_report.cc:538:30: error: ‘iswspace’ is not a member of ‘std’; did you mean ‘isspace’?
make[1]: *** [Makefile:104: node] Error 2
So, obviously there seems to be a lib missing. Unfortunately i don't where to start to fix this issue right now, because every dependency is selected within buildroot. I use the following versions:
C lib -> uClibc-ng
GCC vers -> 9.x
binutils -> 2.35.2
target-arch -> AArch64 (little endian)

May you can help me, how to debug this? The error msg is not that verbose so it's kinda tricky to know where the issue may be. As i see, it comes from some C++ lib, i selected 'Enable C++ support ' in buildroot. Do we need some more c++ libs / support maybe?
Thanks!

Last edited by wolfbiker1; 08-26-2021 at 08:21 AM.
 
Old 08-26-2021, 03:15 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
There were probably some lines preceding or trailing what you posted that could give us more info about the error. Please post more of the log from the build.

It would also help if we had a bit more info about the system you are building on. OS, version, arch, etc.
Info about the commands used to get here as well as the source you are building from is also useful.
 
Old 08-30-2021, 08:15 AM   #3
wolfbiker1
LQ Newbie
 
Registered: Aug 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi!

First of all sorry for the late reply!
So i finally found a solution (or workaround?) for this. It seems that linking NodeJs against ulibc is not possible without further modifications (dunno know, but i read somewhere that you may can fix this), so set the toolchain to glibc did the trick for me. If you do so, do not forget to 'make clean', which is required whenever you do changes on the toolchain. Then, take a nap, go for a walk, take a coffee, may be the build is finished then ;-)

Code:
# node -v
v12.22.4
For my usecase it's sufficient, the rpi4 should be able to 'carry' the glibc....

Last edited by wolfbiker1; 08-30-2021 at 08:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
buildroot-2015.11-rc2 - ARM Cross Compile Segfaulting On Target wt_kurtz Linux - Software 0 12-04-2015 07:50 PM
[SOLVED] nodejs, nodejs-dev incompatibility in Ubintu? mjbradakis Linux - Software 1 03-24-2013 11:50 PM
LXer: Ubuntu 13.04 Aims For 64-bit ARM Support (AArch64) LXer Syndicated Linux News 0 11-01-2012 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration