[Libre-soc-dev] cargo install maturin fails when building power-instruction-analyzer

Jacob Lifshay programmerjake at gmail.com
Mon Oct 19 09:11:33 BST 2020


On Sun, Oct 18, 2020 at 2:19 PM Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> On Sat, Oct 17, 2020, 06:45 Tobias Platen <libre-soc at platen-software.de> wrote:
>>
>> On Sat, 17 Oct 2020 15:39:28 +0200
>> Tobias Platen <libre-soc at platen-software.de> wrote:
>>
>> more precise the error is:
>>
>> Compiling idna v0.2.0
>> error: failed to run custom build command for `ring v0.16.15`
>>
>> Caused by:
>>   process didn't exit successfully: `/tmp/cargo-installg39wE3/release/build/ring-995281b7f2ea4e47/build-script-build` (exit code: 101)
>>   --- stderr
>>   ENV ALTERNATE_EDITOR=panic_editor
>>   ENV CARGO=/home/isengaara/.rustup/toolchains/stable-powerpc64le-unknown-linux-gnu/bin/cargo
>
>
> The actual cause of the error should be further down in the output, after all the ENV lines. I'd guess it's failing to compile because it's missing some apt package(s). The `ring` crate is a cryptography library built using some of the C/C++ code from BoringSSL, do you have a working C++ compiler installed?

Was able to reproduce the error:
  thread 'main' panicked at 'called `Option::unwrap()` on a `None`
value', /home/jacob/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.15/build.rs:378:10

turns out that ring doesn't yet support powerpc64le:
https://github.com/briansmith/ring/issues/389

A potential workaround is to build maturin using:
cargo install maturin --no-default-features
--features=auditwheel,log,human-panic

this removes some of maturin's features, but those features are
probably not needed for building power-instruction-analyzer, the
removed features have to do with uploading to PyPI.

I tested it and maturin's build progresses, past the previous issue,
to the final linking stage, but at that point, my qemu vm crashed :(
I'm not trying again tonight, too late.

Jacob



More information about the Libre-soc-dev mailing list