Comments (4)
I've been looking into this issue since a CI failure in my project. Here's a minimal reproducing example:
git clone https://github.com/riscv-rust/longan-nano.git
cd longan-nano
cat > rust-toolchain.toml <<EOF
[toolchain]
channel = "nightly-2022-08-13" # earliest reproducing nightly
targets = ["riscv32imac-unknown-none-elf"]
EOF
cargo build --release --example blinky
...
= note: rust-lld: error: /tmp/longan-nano/target/riscv32imac-unknown-none-elf/release/build/riscv-rt-b6ada1d0dd9918f5/out/link.x:58: expected filename pattern
>>> (*(.trap));
>>> ^
nightly-2022-08-13
upgraded LLVM to version 15 (rust-lang/rust#99464), which includes a bug fix in LLD (https://reviews.llvm.org/D125523) to handle this syntax as an error.
from riscv-rt.
Hi! Could you post a minimal example somewhere which reveals the problem?
from riscv-rt.
Thanks for the fix! A version should be published so we can update in our project's Cargo.toml
from riscv-rt.
This now affects the latest stable 1.65.0, so it might be worth publishing 0.9.1 with the fix?
from riscv-rt.
Related Issues (20)
- Support for lld HOT 2
- Build on stable
- rust produces a 2.1G executable HOT 7
- build using -mcmodel = medany HOT 18
- Implement multi-core support
- Bizarre warning behavior around #[entry] macro and `&mut FnMut`
- LiteX/VexRiscv support HOT 4
- Execution start address varies. HOT 3
- Update r0 to 1.0 HOT 1
- Relocation R_RISCV_ALIGN linker error
- ELF output contains lots of zero data: linker script issue? HOT 4
- RAM init code violates pointer provenance and aliasing rules HOT 1
- Migration to GitHub Actions HOT 1
- sp may not be aligned to 16 bytes
- Lots of rust-lld errors HOT 3
- New crates.io release HOT 4
- Accessing parameters passed in register by the previous boot stage HOT 8
- Reimplement `r0`, since it is deprecated HOT 7
- asm: Startup code traps into an illegal instruction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-rt.