node-metrohash icon indicating copy to clipboard operation
node-metrohash copied to clipboard

Illegal instruction when built with g++ 7

Open stanleyk opened this issue 6 years ago • 4 comments

Everything works fine when built with g++ 5, but with g++ 7 I get the

Illegal instruction (core dumped)

error.

stanleyk avatar Oct 15 '19 09:10 stanleyk

I don't currently have any machines with g++ 7, and my knowledge of C++ is too little to be able to point you towards a possible reason and fix :(

robertklep avatar Oct 15 '19 14:10 robertklep

I can run some tests with g++ 7 for you if you tell me what I should do. ;)

stanleyk avatar Oct 16 '19 11:10 stanleyk

I think it needs to start with running Node.js from a debugger to see where exactly the crash happens. I'll check and see if Raspbian comes with g++ 7 so I can check it myself, but that won't be before friday (if not, I'll see if I can get it up and running in a Docker container).

robertklep avatar Oct 16 '19 11:10 robertklep

Finally got around to testing. With g++ 9 it seems to work just fine (Ubuntu 19.10): image

However, that's with Node v10 because there still isn't a v12 available for Ubuntu 19.10 (at least not as a pre-built package).

robertklep avatar Oct 24 '19 11:10 robertklep