Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Illegal instruction (core dumped) on Ubuntu 20.4 #11799

Closed
winf3 opened this issue Jun 25, 2020 · 2 comments
Closed

Illegal instruction (core dumped) on Ubuntu 20.4 #11799

winf3 opened this issue Jun 25, 2020 · 2 comments

Comments

@winf3
Copy link

winf3 commented Jun 25, 2020

  • OpenEthereum version: 3.0.1
  • Operating system: Linux
  • Installation: built from source
  • Fully synchronized: no
  • Network: ethereum / ropsten / goerli / ...
  • Restarted: yes

I built openethereum on Linux according to readme section 3.2 and 3.3. It compiled without error.
When I executed ./target/release/openethereum I immediately got the message "illegal instruction (core dumped)"

How do I get a running openethereum on Ubuntu 20.4 ?
(I also got the same message when I previously ran the precompiled linux version 3.0.1)

@winf3
Copy link
Author

winf3 commented Jun 26, 2020

Found solution in #11667 👍

Looks like 11395 might have a clue...

#11395

I'm afraid the new versions require the aes-ni CPU feature. You could try to build the binary from source and remove this and perhaps enable target-cpu=native.

"this" links to
https://github.com/openethereum/openethereum/blob/be5db14160e2aa04a64f1a8fe027ad58c2f42c44/.cargo/config

But no details on where/how to "enable target-cpu=native".
@ldeffenb
Author
ldeffenb commented on Apr 30

That worked. The key for me was to edit .cargo/config and remove the +aes from the rustflags setting in the [target.x86_64-unknown-linux-gnu] section.

Before: rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"]
After: rustflags = ["-Ctarget-feature=+sse2,+ssse3"]

I change the config file as above, compiled according to readme.md and voila - it runs now !
Thanks for leaving your comments in the #11667 , ldeffenb !

@winf3 winf3 closed this as completed Jun 26, 2020
@ldeffenb
Copy link

Glad it helped!

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

No branches or pull requests

2 participants