Fatal error CHECK(cpu.has_sse2()) failed

311 views
Skip to first unread message

Guy Dillen

unread,
Apr 15, 2015, 7:16:36 AM4/15/15
to nod...@googlegroups.com
Hi,

When running (trying to :-) ) nodejs (after doing the build in a VM with same OS but other processor) I get a Fatal error in .../deps/v8/src/ia32/assembler-ia32.cc, line 54
CHECK(cpu.has_sse2()) failed.

- Does this mean nodejs requires the SSE2 instruction set?
- If not since my target machine has only 256 MB RAM ("hangs" during build phase) what are my options to still get nodejs on this machine?

Target machine is running Voyage Linux i386, processor AMD Geode LX800.

Thanks.
Guy

Ben Noordhuis

unread,
Apr 15, 2015, 10:31:59 AM4/15/15
to nod...@googlegroups.com
On Wed, Apr 15, 2015 at 10:51 AM, Guy Dillen <guy.d...@gmail.com> wrote:
> Hi,
>
> When running (trying to :-) ) nodejs (after doing the build in a VM with
> same OS but other processor) I get a Fatal error in
> .../deps/v8/src/ia32/assembler-ia32.cc, line 54
> CHECK(cpu.has_sse2()) failed.
>
> - Does this mean nodejs requires the SSE2 instruction set?

Yes, or at least, V8's ia32 backend does.

There is a separate non-SSE2 backend that you can enable with
`./configure --dest-cpu=x87`. You may have to add `--without-ssl` as
well.

x87 doesn't get much testing so I can't vouch for its current status.
If it doesn't work, file an issue here[0] and we'll see what we can
do.

[0] https://github.com/iojs/io.js/issues

> - If not since my target machine has only 256 MB RAM ("hangs" during build
> phase) what are my options to still get nodejs on this machine?
>
> Target machine is running Voyage Linux i386, processor AMD Geode LX800.

You probably need more than 256 MB to build so you may want to build
on your desktop or laptop and then copy over the binary. You can add
swap but it's probably going to take a hell of a long time to finish.

Guy Dillen

unread,
Apr 16, 2015, 9:15:21 AM4/16/15
to nod...@googlegroups.com
Thanks for the info.
I ll try to build it taking into account the flags in configure.
Can i build it in my VM (running the same OS Voyage Linux but with a different processor with more RAM) by using the configure flags and use the result of this build on my target platform?

Thanks.
Guy

Ben Noordhuis

unread,
Apr 16, 2015, 11:29:39 AM4/16/15
to nod...@googlegroups.com
Yes, provided glibc on the build system is the same or older (not
newer) than the one on the target system.
Reply all
Reply to author
Forward
0 new messages