* [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig
@ 2015-10-09 22:17 bugzilla at busybox.net
2015-10-10 0:17 ` [Buildroot] [Bug 8391] " bugzilla at busybox.net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2015-10-09 22:17 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=8391
Summary: Node.js 0.12.7 fails to build on raspberry_pi
defconfig
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: tomaspollak at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Hi,
I'm currently building a buildroot image (from git HEAD) for a raspberry_pi
board, but when trying to build the nodejs package (ver 0.12.7) the compiler
fails at some point on deps/v8/source with the following error:
"Your CPU's ARM architecture is not supported yet"
This seems to be caused by the compiler not being able to determine the right
ARM version when compiling. If I cd to output/build/nodejs-0.12.7 dir and run:
CXXFLAGS="-march=armv6" make
It builds correctly.
I've been looking at the package/nodejs/nodejs.mk file but haven't been able to
figure where to put this to get the package to build. Any pointers?
Thanks and congrats for your work!
Tom
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 8391] Node.js 0.12.7 fails to build on raspberry_pi defconfig
2015-10-09 22:17 [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig bugzilla at busybox.net
@ 2015-10-10 0:17 ` bugzilla at busybox.net
2015-10-10 0:26 ` bugzilla at busybox.net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2015-10-10 0:17 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=8391
--- Comment #1 from Peter Seiderer <ps.report@gmx.net> 2015-10-10 00:17:21 UTC ---
Hello Tom,
the problem is not the compiler, but the node.js code implementing its
own atomic helpers (instead of using proper library calls), the same code is
used (and fixed) in some other google code base, see eg. [1].
The buildroot rpi compiler defines __ARM_ARCH_6ZK__, see:
$ ./host/usr/bin/arm-buildroot-linux-gnueabi-g++ -dM -E - < /dev/null | grep
ARM_ARCH
#define __ARM_ARCH_ISA_ARM 1
#define __ARM_ARCH_ISA_THUMB 1
#define __ARM_ARCH 6
#define __ARM_ARCH_6ZK__ 1
Maybe there is a newer version of node.js? Or add __ARM_ARCH_6ZK__ at
the right places of the
nodejs-0.12.7/deps/v8/src/base/atomicops_internals_arm_gcc.h file...
Regards,
Peter
[1]
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/sgJEpULO5Xc
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 8391] Node.js 0.12.7 fails to build on raspberry_pi defconfig
2015-10-09 22:17 [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig bugzilla at busybox.net
2015-10-10 0:17 ` [Buildroot] [Bug 8391] " bugzilla at busybox.net
@ 2015-10-10 0:26 ` bugzilla at busybox.net
2015-10-11 7:35 ` bugzilla at busybox.net
2015-10-11 13:06 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2015-10-10 0:26 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=8391
--- Comment #2 from Tomas Pollak <tomaspollak@gmail.com> 2015-10-10 00:26:53 UTC ---
Thanks for the heads Peter.
Now, given that the compiler _is_ able to build the package just by setting
-march=armv6, wouldn't it be easier to simply include that parameter in the
configure options instead of modifying the source code itself?
Thanks again
PS. I'll also take a shot at building node v4.1.2 and see if it works. There's
a lot of new stuff in there so I'll keep my fingers crossed. :)
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 8391] Node.js 0.12.7 fails to build on raspberry_pi defconfig
2015-10-09 22:17 [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig bugzilla at busybox.net
2015-10-10 0:17 ` [Buildroot] [Bug 8391] " bugzilla at busybox.net
2015-10-10 0:26 ` bugzilla at busybox.net
@ 2015-10-11 7:35 ` bugzilla at busybox.net
2015-10-11 13:06 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2015-10-11 7:35 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=8391
--- Comment #3 from Peter Seiderer <ps.report@gmx.net> 2015-10-11 07:35:49 UTC ---
Hello Tom,
I think it is the difference between workaround and fix ;-)
Should be fixed by [1], but a patch supporting nodejs 4.1.2
for buildroot would be welcome...
Regards,
Peter
[1] https://patchwork.ozlabs.org/patch/528714/
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 8391] Node.js 0.12.7 fails to build on raspberry_pi defconfig
2015-10-09 22:17 [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig bugzilla at busybox.net
` (2 preceding siblings ...)
2015-10-11 7:35 ` bugzilla at busybox.net
@ 2015-10-11 13:06 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2015-10-11 13:06 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=8391
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-10-11 13:06:09 UTC ---
Fixed by
http://git.buildroot.net/buildroot/commit/?id=eec69cdcaff10c6221ff0be603eacb3fdb9d6448.
Thanks Tomas for reporting the problem, and thanks to Peter for fixing it!
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-11 13:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09 22:17 [Buildroot] [Bug 8391] New: Node.js 0.12.7 fails to build on raspberry_pi defconfig bugzilla at busybox.net
2015-10-10 0:17 ` [Buildroot] [Bug 8391] " bugzilla at busybox.net
2015-10-10 0:26 ` bugzilla at busybox.net
2015-10-11 7:35 ` bugzilla at busybox.net
2015-10-11 13:06 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox