Quickstart can't build hello world: librustc_codegen_gcc.so not found
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 64/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust
- Lĩnh vực
- build-system, compilers
Hướng nghiên cứu
Bắt đầu với hướng dẫn Quickstart, config.example.toml và các điểm vào ./y.sh prepare/build/cargo; tái hiện các lệnh release và non-release với tests/hello-world/Cargo.toml. Truy tìm lý do release build tìm trong target/debug và lý do non-release build không thể tìm thấy mylib. Công việc được xem là hoàn tất khi các lệnh Quickstart được ghi trong tài liệu build hello-world thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm trying to build librustc_codegen_gcc.so from this repo (rather than from Rust) to make it easier to upstream patches. However, the Quickstart instructions do not appear to work.
Following the instructions, I've:
- Copied
config.example.tomltoconfig.toml - Ran
./y.sh prepare - Ran
./y.sh build --sysroot --release
Now I'm trying to run the fourth step:
$ ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
[BUILD] build system
Finished [`release` profile [optimized]](https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles) target(s) in 0.01s
Using `/home/seancross/Code/rustc_codegen_gcc/build/libgccjit/b794cb99508e7eccd40fa42bb310d5781e09899b` as path for libgccjit
Compiling hello_world v0.0.0 (/home/seancross/Code/rustc_codegen_gcc/tests/hello-world)
error: couldn't load codegen backend /home/seancross/Code/rustc_codegen_gcc/target/debug/librustc_codegen_gcc.so: cannot open shared object file: No such file or directory
error: could not compile `hello_world` (bin "hello_world") due to 1 previous error
$
It appears to be looking for something under target/debug even though the instructions say to run ./y.sh build --sysroot --release. If I re-run step 3 with ./y.sh build --sysroot without --release, then attempting to build hello-world gives a different error:
$ ./y.sh cargo build --manifest-path tests/hello-world/Cargo.toml
[BUILD] build system
Finished [`release` profile [optimized]](https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles) target(s) in 0.00s
Using `/home/seancross/Code/rustc_codegen_gcc/build/libgccjit/b794cb99508e7eccd40fa42bb310d5781e09899b` as path for libgccjit
Compiling hello_world v0.0.0 (/home/seancross/Code/rustc_codegen_gcc/tests/hello-world)
error[E0463]: can't find crate for `mylib`
--> src/main.rs:1:5
|
1 | use mylib::my_func;
| ^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `hello_world` (bin "hello_world") due to 1 previous error
$
- Ngôn ngữ chính
- Rust
- Star
- 1.2k
- Fork
- 106
- Merge trung bình
- 6 giờ 47 phút
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rust-lang/rustc_codegen_gcc
-
Re-enable -fno-lto testĐang mởtests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
rust-lang/rustc_codegen_gcc#993 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
rust-lang/rustc_codegen_gcc#1003 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enable librsvg tests on Aarch64Đang mởtests
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
rust-lang/rustc_codegen_gcc#992 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
rust-lang/rustc_codegen_gcc#970 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support `#[no_builtin]`Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
rust-lang/rustc_codegen_gcc#943 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rust-lang/rustc_codegen_gcc
Issue tương tự
-
Stack overflow in `check bans` with `include-dependencies = true` and a dev-dependency cycleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EmbarkStudios/cargo-deny#910 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tursodatabase/turso#10054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
build: Update rust versionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ibm-granite-community/granite-cli#229 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
setTargetAtTime booked ahead of time starts its curve early (values blow up before start_time)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
orottier/web-audio-api-rs#658 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aosama/astronomical#1318 ·
Maintainer thường phản hồi trong vòng 1 ngày