Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.4.0 can't compile on Raspberry Pi 3B+ (Segmentation fault) #21190

Closed
gounthar opened this issue Jun 7, 2018 · 7 comments
Closed

10.4.0 can't compile on Raspberry Pi 3B+ (Segmentation fault) #21190

gounthar opened this issue Jun 7, 2018 · 7 comments
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI.

Comments

@gounthar
Copy link

gounthar commented Jun 7, 2018

  • Version: 10.4.0
  • Platform: Linux black-pearl 4.14.34-hypriotos-v7+ deps: update openssl to 1.0.1j #1 SMP Sun Apr 22 14:57:31 UTC 2018 armv7l GNU/Linux
  • Subsystem: Distributor ID: Raspbian
    Description: Raspbian GNU/Linux 9.4 (stretch)
    Release: 9.4
    Codename: stretch

As I was trying to compile rethinkdb 2.3.6 on the Pi, the 0.12.2 node dependency did not want to compile because of a segmentation fault at some point.
I decided to try the 10.4.0 version to see if this issue had gone, but I am facing another segmentation fault at another file.

$ make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory '/home/pirate/node-10.4.0/out'
  LD_LIBRARY_PATH=/home/pirate/node-10.4.0/out/Release/lib.host:/home/pirate/node-10.4.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/tools/gyp; mkdir -p /home/pirate/node-10.4.0/out/Release/obj.target/v8_snapshot/geni; "/home/pirate/node-10.4.0/out/Release/mksnapshot" --log-snapshot-positions --logfile "/home/pirate/node-10.4.0/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/home/pirate/node-10.4.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
Segmentation fault
deps/v8/tools/gyp/v8_snapshot.target.mk:13: recipe for target '/home/pirate/node-10.4.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc' failed
make[1]: *** [/home/pirate/node-10.4.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 139
make[1]: Leaving directory '/home/pirate/node-10.4.0/out'
Makefile:45: recipe for target 'node' failed
make: *** [node] Error 2
@Trott
Copy link
Member

Trott commented Jun 7, 2018

@nodejs/build

@maclover7
Copy link
Contributor

@rvagg ^

@maclover7 maclover7 added build Issues and PRs related to build files or the CI. arm Issues and PRs related to the ARM platform. v10.x labels Jun 7, 2018
@mhdawson
Copy link
Member

mhdawson commented Jun 7, 2018

Does your machine config (compiler and binutils) meet the requirements here:

https://github.com/nodejs/node/blob/master/BUILDING.md#supported-toolchains

@gounthar
Copy link
Author

gounthar commented Jun 8, 2018

$ gcc --version
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ clang --version
clang version 3.8.1-24+rpi1 (tags/RELEASE_381/final)
Target: armv6--linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
$ clang++ --version
clang version 3.8.1-24+rpi1 (tags/RELEASE_381/final)
Target: armv6--linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
$ python --version
Python 2.7.13

It looks ok to me...
Thanks.

@Trott
Copy link
Member

Trott commented Nov 11, 2018

Re-pinging @rvagg on this one...

@rvagg
Copy link
Member

rvagg commented Nov 14, 2018

I've just done a compile of 10.4.0 from source download on a Pi 3 and it's completed just fine and I have a working node binary.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch
$ gcc --version
gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This is vanilla Raspbian. So I'm going to suggest that this is either a problem with HypriotOS or your hardware.

Note that we make armv7l binaries available for download if you want to use them. I'm not sure if that's possible with RethinkDB though. Unfortunately, without anything additional to go on here I don't think there's anything we can do to help.

@rvagg rvagg closed this as completed Nov 14, 2018
@gounthar
Copy link
Author

Thanks a lot for the feedback. I will try it too on a vanilla Raspbian and see if that works for me too.
As for rethinkdb, so many things have changed since then. The rebirthdb now compiles for aarch64, rethinkdb/rethinkdb#28 (comment) so I'll give it another try on the Pi one of these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform. build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

5 participants