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

Getting Illegal instruction - Building PPC e500 #97

Open
arrathin opened this issue Dec 16, 2019 · 9 comments
Open

Getting Illegal instruction - Building PPC e500 #97

arrathin opened this issue Dec 16, 2019 · 9 comments

Comments

@arrathin
Copy link

I can build node in the node-v8.11.3 version. But while run node.js on PowerPC , I get only error "Illegal instruction".
===================================Run Node JS ========================
(gdb) run
Starting program: /pureNeApp/EC/node
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 805427584 (LWP 697)]
[New Thread 813861664 (LWP 700)]
[New Thread 822250272 (LWP 701)]
[New Thread 830638880 (LWP 702)]
[New Thread 839027488 (LWP 703)]

Program received signal SIGILL, Illegal instruction.
[Switching to Thread 805427584 (LWP 697)]
0x2550ffa4 in ?? ()
===================================In GDB=============================

Fatal error in ../deps/v8/src/ppc/assembler-ppc.h, line 776

Debug check failed: !ra.is(r0).

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 805427584 (LWP 10184)]
0x124aea9c in ?? ()

CPU info from NE:

cat /proc/cpuinfo

processor : 0
cpu : e500
revision : 2.0 (pvr 8020 0020)
bogomips : 524.28
chipset : 8555E
Vendor : Motorola SPS
Machine : CPLAB PQ3MC1
bus freq : 528.000000 MHz
PVR : 0x80200020
SVR : 0x80790011
PLL setting : 0x4
Memory : 2044 MB

export ProcessPathArmada="/opt/WR/WindRiverLinux-8.0-190909/ppc-85xx/bin"
export PathSysroot=/opt/MV/401CGE-host.26112018/montavista/cge/devkit/ppc/85xx/target
unset MAKEFLAGS
export PATH=$ProcessPathArmada:$PATH
export CFLAGS="-pipe -g -fno-caller-saves -I$PathSysroot/usr/include/nptl"
export CXXFLAGS="-pipe -g -std=c++11 -fno-caller-saves -I$PathSysroot/usr/include/nptl"
export LDFLAGS="-L$PathSysroot/usr/lib/nptl"
export CC=$ProcessPathArmada/ppc_85xx-gcc
export CXX=$ProcessPathArmada/ppc_85xx-g++
export CPP=$ProcessPathArmada/ppc_85xx-gcc
export AS=$ProcessPathArmada/ppc_85xx-as
export LD=$ProcessPathArmada/ppc_85xx-ld

Required some assistance to move forward this issue.

@arrathin
Copy link
Author

Steps to build
./configure --dest-cpu=ppc --without-snapshot --without-intl --partly-static --debug --gdb
$ make -j6 node

@arrathin
Copy link
Author

@matthew Brandyberry

@arrathin
Copy link
Author

@mbroadst

@arrathin
Copy link
Author

cc @nodejs/platform-ppc

@arrathin
Copy link
Author

cc @nodejs/platform-ppc

Required some guidence

@arrathin
Copy link
Author

@mbroadst

@arrathin
Copy link
Author

arrathin commented Jan 2, 2020

@richardlau

@richardlau
Copy link

I’m not aware that anyone has successfully got Node.js working on an e500 (the V8 engine uses PPC instructions that are not available on that processor). There’s a few people trying in nodejs/node#30323 if that helps.

@arrathin
Copy link
Author

arrathin commented Jan 6, 2020

@richardlau
Thanks for your support. i gone through the link but that' not help much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants