-
Notifications
You must be signed in to change notification settings - Fork 406
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
Build: signal: 11, SIGSEGV: invalid memory reference fail #990
Comments
Maybe another way to go about this is to cross compile on my Odroid N2 running with Ubuntu 18.04: |
Many thanks for reporting this issue! CC: @Kixunil |
Seems like a segfault in rustc?
|
@OvoNemaSmisla Could you please try to install Rust via https://rustup.rs/ (instead of |
@OvoNemaSmisla Also, could you please try to build electrs in debug mode (to see if it also fails) using:
|
Here is the log:
|
Should I first uninstall |
Yep, let's try to uninstall first, and then install Rust from http://rustup.rs. |
Success!
Can you tell me if this option is valid as it takes way less time to compile on Odroin N2? |
Cool, happy to help :) |
It should be possible if both platforms use the same CPU architecture, right @Kixunil? @OvoNemaSmisla did you follow https://github.com/romanz/electrs/blob/master/doc/install.md for cross-compilation? |
I did, but since both Raspberry Pi 3b and Odroid N2 are aarch64 I thought that you actually don't need to cross compile. You can just copy the Odroid build to Raspberry Pi. The difference is in the OS - rpi runs on Raspbian OS Lite 64 bit (which is Debian 12 afaik) and Odroid runs on Ubuntu 18.04 Bionic. |
Got it - it indeed may fail due to some missing dependencies... |
Uh, never seen an error like this. Probably should be reported to the Debian bug tracker. Yes, statically compiling on Odroid should be valid as long as it has compatible libc. |
Seems to be working with static compile from Odroid :) I am getting these errors and warnings no matter what build I use:
|
It's possible that those warnings are related to #985. |
@OvoNemaSmisla Please try #997 - it should help with mempool sync issues. |
Just to confirm, I should |
I've built the branch and this is what's happening now:
Here is my config:
|
Sounds like some kind of OS error. |
Closing :) |
Have you read the documentation?
Yes.
Did you double-check that you installed all dependencies?
Yes.
Which command failed?
cargo build --locked --release
What was the error message?
Error message
System
OS name and version: (If Linux, the distribution name and version)
uname -a
Linux raspibolt 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
lsb_release -a
No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
rustc version: (run
rustc --version
)rustc 1.63.0
cargo version: (run
cargo --version
; not guaranteed to be same as rustc version!)cargo 1.65.0
Compilation
Linking: static
Cross compilation: no
Target architecture: (uname -m on Linux if not cross-compiling)
aarch64
Additional context
I'm trying to install electrs on Raspberry Pi 3b with Raspberry Pi OS Lite 64 booting from USB 2TB HDD with 4GB swap file.
I've installed cargo using
apt install cargo
, I have Bitcoin Core version v26.0.0 installed and running and I've installed the latest Electrum Wallet.I've executed the following commands:
sudo apt update
sudo apt install clang cmake build-essential # for building 'rust-rocksdb'
git clone https://github.com/romanz/electrs
cd electrs
cargo build --locked --release
The text was updated successfully, but these errors were encountered: