arm builds fail after move to wasm for front end #394

Closed
opened 5 years ago by mcrosson · 7 comments
mcrosson commented 5 years ago (Migrated from github.com)

Plume version (and/or commit): 3fce5d6a14

After version 3fce5d6a14 Plume fails to build on arm with an error stating rust-lld not found. It looks like wasm isn't building artifacts for arm and a few related tickets are below.

From what I can tell rustup may need some additional components on arm builds that aren't installed by default but I'm not 100% how to progress.

Plume version (and/or commit): 3fce5d6a14831745115ae9cc8d25ace2b6d70ec8 After version 3fce5d6a14831745115ae9cc8d25ace2b6d70ec8 Plume fails to build on arm with an error stating ```rust-lld not found```. It looks like wasm isn't building artifacts for arm and a few related tickets are below. - https://github.com/rustwasm/team/issues/215 - https://github.com/rust-lang/rust/issues/52362 From what I can tell rustup may need some additional components on arm builds that aren't installed by default but I'm not 100% how to progress.
marek-lach commented 5 years ago (Migrated from github.com)
You might find this of use (or not): https://www.reddit.com/r/rust/comments/9a7te2/nightly_rust_is_switching_to_use_lld_llvms_new/
mcrosson commented 5 years ago (Migrated from github.com)

@marek-lach Thanks!

@marek-lach Thanks!
marek-lach commented 5 years ago (Migrated from github.com)
More specifically here: https://rust-embedded.github.io/blog/2018-08-2x-psa-cortex-m-breakage/
mcrosson commented 5 years ago (Migrated from github.com)

@marek-lach Thank you again 👍

Now to figure out what the necessary linker= pair needs to be on these 2 arm boards (one is arm32 with hardware float, the other arm64)

@marek-lach Thank you again 👍 Now to figure out what the necessary linker=<value> pair needs to be on these 2 arm boards (one is arm32 with hardware float, the other arm64)
mcrosson commented 5 years ago (Migrated from github.com)

Current progress. A shell script to build plume-front but it's currently failing with the following error. Shell script included after the error.


  = note: lld: error: unknown argument: --export-dynamic


error: aborting due to previous error
error: Could not compile `plume-front`.
#!/bin/sh

cd /opt

wget http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz
wget http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-aarch64-linux-gnu.tar.xz

tar -xf clang*
rm *.xz
mv clang*/* .
cd /app
export PATH_OLD=${PATH}
export PATH=/opt/bin:${PATH}
RUSTFLAGS="-C linker=lld" cargo web deploy -p plume-front
rm -rf /opt/*
export PATH=${PATH_OLD}
Current progress. A shell script to build plume-front but it's currently failing with the following error. Shell script included after the error. ``` = note: lld: error: unknown argument: --export-dynamic error: aborting due to previous error error: Could not compile `plume-front`. ``` ``` #!/bin/sh cd /opt wget http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-armv7a-linux-gnueabihf.tar.xz wget http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-aarch64-linux-gnu.tar.xz tar -xf clang* rm *.xz mv clang*/* . cd /app export PATH_OLD=${PATH} export PATH=/opt/bin:${PATH} RUSTFLAGS="-C linker=lld" cargo web deploy -p plume-front rm -rf /opt/* export PATH=${PATH_OLD} ```
marek-lach commented 5 years ago (Migrated from github.com)

I am not sure, @BaptisteGelez might know more about the Rust frontend in Plume, but the lld error you've got looks somewhat similar to this? https://github.com/facebook/osquery/issues/3408#issuecomment-309233430

Edit: You may also find this useful regarding the issue: https://rust-embedded.github.io/cortex-m-quickstart/cortex_m_quickstart

I am not sure, @BaptisteGelez might know more about the Rust frontend in Plume, but the lld error you've got looks somewhat similar to this? https://github.com/facebook/osquery/issues/3408#issuecomment-309233430 **Edit:** You may also find this useful regarding the issue: https://rust-embedded.github.io/cortex-m-quickstart/cortex_m_quickstart
Owner

Fixed by #402

Fixed by #402
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#394
Loading…
There is no content yet.