ibmruntimes / v8ppc

Port of Google V8 javascript engine to PowerPC®
Other
94 stars 19 forks source link

Illegal Instruction On PPC e500mc CPU Compile #118

Open ctassell opened 10 years ago

ctassell commented 10 years ago

Hello,

I'm trying to compile the master branch on a machine with an e500mc CPU, but I get the following error: $ make ppc make[1]: Entering directory /home/fsiot/v8ppc/out' ACTION tools_gyp_v8_gyp_v8_snapshot_target_run_mksnapshot /home/fsiot/v8ppc/out/ppc.release/obj.target/v8_snapshot/geni/snapshot.cc Illegal instruction make[1]: *** [/home/fsiot/v8ppc/out/ppc.release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132 make[1]: Leaving directory/home/fsiot/v8ppc/out' make: *\ [ppc.release] Error 2

Any ideas as to what is wrong? Here is a bit more detail on the CPU: $ LD_SHOW_AUXV=1 /bin/true AT_DCACHEBSIZE: 0x40 AT_ICACHEBSIZE: 0x40 AT_UCACHEBSIZE: 0x0 AT_SYSINFO_EHDR: 0x100000 AT_HWCAP: booke mmu fpu ppc32 AT_PAGESZ: 4096 AT_CLKTCK: 100 AT_PHDR: 0x10000034 AT_PHENT: 32 AT_PHNUM: 8 AT_BASE: 0xb7b58000 AT_FLAGS: 0x0 AT_ENTRY: 0x10000c5c AT_UID: 1001 AT_EUID: 1001 AT_GID: 1001 AT_EGID: 1001 AT_SECURE: 0 AT_RANDOM: 0xbfb8ba7c AT_HWCAP2: isel AT_EXECFN: /bin/true AT_PLATFORM: ppce500mc AT_BASE_PLATFORM:ppce500mc

andrewlow commented 10 years ago

Sorry, this got lost in the shuffle - thus the delayed reply.

This is effectively a duplicate of issue #99 and issue #100.

Unless you're a skilled and motivated developer who can write assembly, you'll be out of luck for now.

Personally I'd like to see these freescale CPUs go, but V8 makes use of FPU instructions which on these processors are different enough that the code won't work without significant changes.