Skip to content

Cannot compile on Raspberry Pi 3 #909

Description

Hello,

I wanted to compile Edit on my Raspberry Pi Model B Rev 1.2 running the latest verion of Raspberry Pi OS but got a compilation error. I reckon it's probably not an issue with Edit but probably some Rust compatibility shenanigans. However, since I know next to nothing about Rust, I figured I'd first report to here. I tried three approaches of compiling (the shell script, and both ways of compiling using stable Rust) in the README, but got the same error in all cases.

Any help would be appreciated; if this report is nonsense, sorry.

   Compiling compiler_builtins v0.1.160 (/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins)
   Compiling core v0.0.0 (/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling libc v0.2.183
   Compiling libc v0.2.185
error: rustc interrupted by SIGSEGV, printing backtrace

/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x34ddbec) [0x7f9232dbec]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0) [0x7f93712820]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs8_NtCs6oVzFlgrWV9_10rustc_span6symbolNtB5_6Symbol6intern+0x1ec) [0x7f90642df4]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs1_NtNtCs27DxIcckDXZ_13rustc_session6config3cfgNtB5_8CheckCfg15fill_well_known+0x7b6c) [0x7f90640e24]
error: rustc interrupted by SIGSEGV, printing backtrace
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x29e71d0) [0x7f918371d0]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910b00) [0x7f91760b00]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910888) [0x7f91760888]

/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x34ddbec) [0x7fb8ccdbec]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0) [0x7fba0b9820]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs8_NtCs6oVzFlgrWV9_10rustc_span6symbolNtB5_6Symbol6intern+0x1ec) [0x7fb6fe2df4]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs1_NtNtCs27DxIcckDXZ_13rustc_session6config3cfgNtB5_8CheckCfg15fill_well_known+0x7b6c) [0x7fb6fe0e24]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x44f8770) [0x7f93348770]
/lib/aarch64-linux-gnu/libc.so.6(+0x85f38) [0x7f8eca5f38]
/lib/aarch64-linux-gnu/libc.so.6(+0xede9c) [0x7f8ed0de9c]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x29e71d0) [0x7fb81d71d0]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910b00) [0x7fb8100b00]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910888) [0x7fb8100888]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x44f8770) [0x7fb9ce8770]
/lib/aarch64-linux-gnu/libc.so.6(+0x85f38) [0x7fb5645f38]
/lib/aarch64-linux-gnu/libc.so.6(+0xede9c) [0x7fb56ade9c]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
error: rustc interrupted by SIGSEGV, printing backtrace

/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x34ddbec) [0x7fa5c1dbec]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0) [0x7fa7001820]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs8_NtCs6oVzFlgrWV9_10rustc_span6symbolNtB5_6Symbol6intern+0x1ec) [0x7fa3f32df4]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs1_NtNtCs27DxIcckDXZ_13rustc_session6config3cfgNtB5_8CheckCfg15fill_well_known+0x7b6c) [0x7fa3f30e24]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x29e71d0) [0x7fa51271d0]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910b00) [0x7fa5050b00]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910888) [0x7fa5050888]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x44f8770) [0x7fa6c38770]
/lib/aarch64-linux-gnu/libc.so.6(+0x85f38) [0x7fa2595f38]
/lib/aarch64-linux-gnu/libc.so.6(+0xede9c) [0x7fa25fde9c]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
error: could not compile `libc` (build script)

Caused by:
  process didn't exit successfully: `/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/pi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.185/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no '--allow=clippy::used_underscore_binding' --allow=unused_qualifications '--warn=clippy::unnecessary_semicolon' '--allow=clippy::unnecessary_cast' '--allow=clippy::uninlined_format_args' '--warn=clippy::ptr_as_ptr' '--allow=clippy::non_minimal_cfg' '--allow=clippy::missing_safety_doc' '--warn=clippy::map_unwrap_or' '--warn=clippy::manual_assert' '--allow=clippy::identity_op' '--warn=clippy::explicit_iter_loop' '--allow=clippy::expl_impl_clone_on_copy' -C debug-assertions=off --cfg 'feature="align"' --cfg 'feature="rustc-dep-of-std"' --cfg 'feature="rustc-std-workspace-core"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=1f491432d2b68edc -C extra-filename=-ee1357c9be8b70d2 --out-dir /home/pi/edit/target/release/build/libc-ee1357c9be8b70d2 -C strip=symbols -Z force-unstable-if-unmarked -L dependency=/home/pi/edit/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: could not compile `core` (lib)

Caused by:
  process didn't exit successfully: `/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name core --edition=2024 /home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=s -C panic=immediate-abort -Z unstable-options -C linker-plugin-lto -C codegen-units=1 -C debuginfo=2 -C split-debuginfo=packed --warn=unexpected_cfgs --check-cfg 'cfg(no_fp_fmt_parse)' --check-cfg 'cfg(feature, values(any()))' --check-cfg 'cfg(target_has_reliable_f16)' --check-cfg 'cfg(target_has_reliable_f16_math)' --check-cfg 'cfg(target_has_reliable_f128)' --check-cfg 'cfg(target_has_reliable_f128_math)' --check-cfg 'cfg(llvm_enzyme)' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("debug_refcell", "llvm_enzyme", "optimize_for_size", "panic_immediate_abort"))' -C metadata=3fdff059c4d9e6c2 -C extra-filename=-10f2a9424fbb2f18 --out-dir /home/pi/edit/target/release/deps -C strip=symbols -Z force-unstable-if-unmarked -L dependency=/home/pi/edit/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
error: could not compile `compiler_builtins` (build script)

Caused by:
  process didn't exit successfully: `/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2024 /home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/compiler-builtins/compiler-builtins/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="arch"' --cfg 'feature="compiler-builtins"' --cfg 'feature="default"' --cfg 'feature="unmangled-names"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("arch", "c", "compiler-builtins", "default", "mem", "unmangled-names", "unstable-public-internals"))' -C metadata=387951dc8c58cae1 -C extra-filename=-19a71e1a2f753122 --out-dir /home/pi/edit/target/release/build/compiler_builtins-19a71e1a2f753122 -C strip=symbols -Z force-unstable-if-unmarked -L dependency=/home/pi/edit/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
error: rustc interrupted by SIGSEGV, printing backtrace

/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x34ddbec) [0x7f8344dbec]
linux-vdso.so.1(__kernel_rt_sigreturn+0x0) [0x7f8483c820]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs8_NtCs6oVzFlgrWV9_10rustc_span6symbolNtB5_6Symbol6intern+0x1ec) [0x7f81762df4]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(_RNvMs1_NtNtCs27DxIcckDXZ_13rustc_session6config3cfgNtB5_8CheckCfg15fill_well_known+0x7b6c) [0x7f81760e24]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x29e71d0) [0x7f829571d0]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910b00) [0x7f82880b00]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x2910888) [0x7f82880888]
/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/librustc_driver-bb2b40829e117684.so(+0x44f8770) [0x7f84468770]
/lib/aarch64-linux-gnu/libc.so.6(+0x85f38) [0x7f7fdc5f38]
/lib/aarch64-linux-gnu/libc.so.6(+0xede9c) [0x7f7fe2de9c]

note: we would appreciate a report at https://github.com/rust-lang/rust
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216
error: could not compile `libc` (build script)

Caused by:
  process didn't exit successfully: `/home/pi/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/pi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no '--allow=clippy::used_underscore_binding' --allow=unused_qualifications '--warn=clippy::unnecessary_semicolon' '--allow=clippy::unnecessary_cast' '--allow=clippy::uninlined_format_args' '--warn=clippy::ptr_as_ptr' '--allow=clippy::non_minimal_cfg' '--allow=clippy::missing_safety_doc' '--warn=clippy::map_unwrap_or' '--warn=clippy::manual_assert' '--allow=clippy::identity_op' '--warn=clippy::explicit_iter_loop' '--allow=clippy::expl_impl_clone_on_copy' -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core", "std", "use_std"))' -C metadata=2b8e37aa7e989b93 -C extra-filename=-b24b4ae802d87c6e --out-dir /home/pi/edit/target/release/build/libc-b24b4ae802d87c6e -C strip=symbols -L dependency=/home/pi/edit/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions