Lea-fish / Leafish

A minecraft-like multi version client implemented in Rust.
Apache License 2.0
824 stars 46 forks source link

cannot not compile leafish_blocks #280

Closed cocoliliace closed 1 year ago

cocoliliace commented 1 year ago

I'm building on Alpine Linux. I installed all the dependencies listed on the README and the build failed at compiling leafish_blocks with the following message:

error: could not compile `leafish_blocks`

Caused by:
  process didn't exit successfully: `rustc --crate-name leafish_blocks --edition=2018 blocks/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=179 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=6a920ad1bb23add0 -C extra-filename=-6a920ad1bb23add0 --out-dir /home/elaina/Documents/code/Leafish/target/release/deps -L dependency=/home/elaina/Documents/code/Leafish/target/release/deps --extern cgmath=/home/elaina/Documents/code/Leafish/target/release/deps/libcgmath-3ce9876738753baf.rmeta --extern collision=/home/elaina/Documents/code/Leafish/target/release/deps/libcollision-a63d8722a5a7fab9.rmeta --extern lazy_static=/home/elaina/Documents/code/Leafish/target/release/deps/liblazy_static-0964ebe3d662eaae.rmeta --extern leafish_shared=/home/elaina/Documents/code/Leafish/target/release/deps/libleafish_shared-dc77a0bbb2402c8f.rmeta --extern parking_lot=/home/elaina/Documents/code/Leafish/target/release/deps/libparking_lot-967d688b2daf6bbe.rmeta` (signal: 9, SIGKILL: kill)
nathanruiz commented 1 year ago

My best guess with this one is the compiler is running out of memory. I'm currently working to optimise the macros which may resolve this. Could you try allocating more RAM, or enabling some swap space?

cocoliliace commented 1 year ago

You're right, it was a memory issue. Enabling swap fixed it. Thank you! :)