Skip to content
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

Failure to compile livesplit-core on a Raspberry Pi #7

Closed
efirshik opened this issue Mar 9, 2020 · 4 comments
Closed

Failure to compile livesplit-core on a Raspberry Pi #7

efirshik opened this issue Mar 9, 2020 · 4 comments
Labels
invalid This doesn't seem right livesplit-core This seems to be an issue with livesplit-core itself.

Comments

@efirshik
Copy link

efirshik commented Mar 9, 2020

pi@testpi:~/darksplit $ make
HEAD is now at 0355b83 Merge pull request #307 from CryZe/title-abbrevs-in-component
   Compiling scopeguard v1.1.0
error: could not compile `scopeguard`.
 Caused by:
  process didn't exit successfully: `rustc --crate-name scopeguard /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.1.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C panic=abort -C metadata=7ab59481cc59ada1 -C extra-filename=-7ab59481cc59ada1 --out-dir /home/pi/darksplit/livesplit-core/livesplit-core/target/release/deps -L dependency=/home/pi/darksplit/livesplit-core/livesplit-core/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
cp: cannot stat 'target/release/liblivesplit_core.a': No such file or directory
make: *** [Makefile:39: livesplit-core/liblivesplit_core.a] Error 1
@DarkRTA DarkRTA added question This a question rather than an issue. and removed question This a question rather than an issue. labels Mar 11, 2020
@DarkRTA
Copy link
Owner

DarkRTA commented Mar 11, 2020

Looks like livesplit-core is failing to compile on your machine. Can you give me more information about what you are trying to run this on (other than the fact that you are trying to run this on a Raspberry Pi)?

Specifically stuff like your OS and Rust toolchain version.

@DarkRTA DarkRTA changed the title make: *** [Makefile:39: livesplit-core/liblivesplit_core.a] Error 1 Failure to compile livesplit-core on a Raspberry Pi Mar 11, 2020
@DarkRTA DarkRTA added the livesplit-core This seems to be an issue with livesplit-core itself. label Mar 11, 2020
@efirshik
Copy link
Author

efirshik commented Mar 12, 2020

pi@testpi:~ $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7
Hardware        : BCM2835
Revision        : 000e
Model           : Raspberry Pi Model B Rev 2


pi@testpi:~ $ lsb_release -a
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

pi@testpi:~ $ rustup show
Default host: arm-unknown-linux-gnueabihf                                                           stable-arm-unknown-linux-gnueabihf (default)
rustc 1.41.1 (f3e1a954d 2020-02-24)

@DarkRTA
Copy link
Owner

DarkRTA commented Mar 12, 2020

It looks like you ran out of memory when trying to build.

I cant help you much with that but you could try changing line 42 in the makefile to:

	cargo build --release -p staticlib -j 1; \

@DarkRTA DarkRTA closed this as completed Mar 12, 2020
@DarkRTA DarkRTA added the invalid This doesn't seem right label Mar 12, 2020
@CryZe
Copy link

CryZe commented Mar 12, 2020

In particular you probably want to modify the release profile of livesplit-core to something like this: rust-lang/cargo#6489 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right livesplit-core This seems to be an issue with livesplit-core itself.
Projects
None yet
Development

No branches or pull requests

3 participants