Skip to content

1.17.0 armv7-gnueabihf Debian: SIGILL: illegal instruction #42477

@infinity0

Description

@infinity0

Build log: https://buildd.debian.org/status/fetch.php?pkg=rustc&arch=armhf&ver=1.17.0%2Bdfsg2-1&stamp=1495073322&raw=0

   Compiling rustc_llvm v0.0.0 (file:///«BUILDDIR»/rustc-1.17.0+dfsg2/src/librustc_llvm)
     Running `/«BUILDDIR»/rustc-1.17.0+dfsg2/build/bootstrap/debug/rustc --crate-name build_script_build src/librustc_llvm/build.rs --crate-type bin --emit=dep-info,link -C opt-level=2 -C metadata=7c8f3739ac3c0863 -C extra-filename=-7c8f3739ac3c0863 --out-dir '/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/build/rustc_llvm-7c8f3739ac3c0863' -L 'dependency=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps' --extern 'build_helper=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps/libbuild_helper-2e1c0ec5e6931b16.rlib' --extern 'gcc=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps/libgcc-4503356c54b13195.rlib'`
   Compiling rustdoc v0.0.0 (file:///«BUILDDIR»/rustc-1.17.0+dfsg2/src/librustdoc)
     Running `/«BUILDDIR»/rustc-1.17.0+dfsg2/build/bootstrap/debug/rustc --crate-name build_script_build src/librustdoc/build.rs --crate-type bin --emit=dep-info,link -C opt-level=2 -C metadata=115269fc81eeaf48 -C extra-filename=-115269fc81eeaf48 --out-dir '/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/build/rustdoc-115269fc81eeaf48' -L 'dependency=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps' --extern 'build_helper=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps/libbuild_helper-2e1c0ec5e6931b16.rlib' --extern 'gcc=/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/deps/libgcc-4503356c54b13195.rlib'`
     Running `/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/build/rustc_llvm-7c8f3739ac3c0863/build-script-build`
error: failed to run custom build command for `rustc_llvm v0.0.0 (file:///«BUILDDIR»/rustc-1.17.0+dfsg2/src/librustc_llvm)`
process didn't exit successfully: `/«BUILDDIR»/rustc-1.17.0+dfsg2/build/armv7-unknown-linux-gnueabihf/stage1-rustc/release/build/rustc_llvm-7c8f3739ac3c0863/build-script-build` (signal: 4, SIGILL: illegal instruction)
--- stderr
thread panicked while processing panic. aborting.

Build failed, waiting for other jobs to finish...
error: build failed


command did not execute successfully: "/usr/bin/cargo" "build" "-j" "4" "--target" "armv7-unknown-linux-gnueabihf" "-v" "--release" "--frozen" "--features" " jemalloc" "--manifest-path" "/«BUILDDIR»/rustc-1.17.0+dfsg2/src/rustc/Cargo.toml"
expected success, got: exit code: 101

The differences between Debian and Rust LLVM are here but I couldn't see anything that seemed relevant:

$ grep -lri '\barm\b' *.patch
rust-0014-Import-of-fastcomp-commit-4105790f1549808c1f1daa5250.patch
rust-0016-Propagate-DBG_VALUE-entries-when-there-are-unvisited.patch
rust-0017-Teach-LiveDebugValues-about-lexical-scopes.patch
rust-0020-Backport-r285278-ARM-Predicate-UMAAL-selection-on-ha.patch
rust-0025-Add-relocations-for-fixups-fixup_arm_thumb_-br-bcc.patch
rust-0032-Fix-computeKnownBits-for-ARMISD-CMOV.patch

14 is not relevant, 16, 17 are for debuginfo, 20, 25 are for thumb targets not armhf-linux targets. 32 might be relevant but doesn't seem like it could cause a SIGILL.

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