ICE when building [email protected] (libgccjit.so: error: : bitcast with types of different sizes)
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện lỗi bằng cargo build trong repository pkgcraft được liên kết, sử dụng tree-sitter 0.25.10 và Rust nightly hoặc beta được báo cáo. Bắt đầu từ symbol tree_sitter::TreeCursor::reset được nêu trong chẩn đoán của libgccjit và điều tra các kích thước bitcast khác nhau. Hoàn thành khi pkgcraft build thành công mà không gặp libgccjit ICE.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
From https://github.com/pkgcraft/pkgcraft:
~/git/pkgcraft $ cargo build
Compiling scallop v0.0.28 (/home/sam/git/pkgcraft/crates/scallop)
Compiling tree-sitter v0.25.10
[...]
libgccjit.so: error: : bitcast with types of different sizes
input expression (size: 64):
<addr_expr 0x7fecd3a0b240
type <pointer_type 0x7fecd3fc9348
type <array_type 0x7fecd3fc92a0 type <integer_type 0x7fece091e348 signed char>
BLK
size <integer_cst 0x7fecd3e167e0 constant 256>
unit-size <integer_cst 0x7fecd3e168b8 constant 32>
user align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fecd3fc7888 domain <integer_type 0x7fecd3fc77e0>
pointer_to_this <pointer_type 0x7fecd3fc9348>>
unsigned DI
size <integer_cst 0x7fecd3e16480 constant 64>
unit-size <integer_cst 0x7fecd3e16498 constant 8>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fecd3fc7a80>
visited
arg:0 <var_decl 0x7fecd3a07c78 stack_var_1 type <array_type 0x7fecd3fc92a0>
addressable visited BLK (null):0:0 size <integer_cst 0x7fecd3e167e0 256> unit-size <integer_cst 0x7fecd3e168b8 32>
align:64 warn_if_not_align:0 context <function_decl 0x7fecd3d90100 _ZN11tree_sitter10TreeCursor5reset17hd27b4d0f0af69267E>>>
requested type (size: 256):
<record_type 0x7fecd3f9fa80 BLK
size <integer_cst 0x7fecd3e167e0 type <integer_type 0x7fece091e0a8 bitsizetype> constant 256>
unit-size <integer_cst 0x7fecd3e168b8 type <integer_type 0x7fece091e000 sizetype> constant 32>
user align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fecd3f9fa80
fields <field_decl 0x7fecd3fa0460 field_0
type <array_type 0x7fecd3f9f540 type <integer_type 0x7fecd3f9bd20 int>
BLK
size <integer_cst 0x7fecd3e164f8 constant 0>
unit-size <integer_cst 0x7fecd3e164b0 constant 0>
user align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fecd3f9f5e8 domain <integer_type 0x7fecd3f9f1f8>>
BLK (null):0:0 size <integer_cst 0x7fecd3e164f8 0> unit-size <integer_cst 0x7fecd3e164b0 0>
user align:32 warn_if_not_align:0 offset_align 256 decl_not_flexarray: 0 offset <integer_cst 0x7fecd3e164b0 0> bit-offset <integer_cst 0x7fecd3e164f8 0> context <record_type 0x7fecd3f9fa80 >
chain <field_decl 0x7fecd3fa0500 field_1 type <array_type 0x7fecd3f9fdc8>
TI (null):0:0
size <integer_cst 0x7fecd3e164c8 constant 128>
unit-size <integer_cst 0x7fecd3e164e0 constant 16>
user align:32 warn_if_not_align:0 offset_align 256 decl_not_flexarray: 0 offset <integer_cst 0x7fecd3e164b0 0> bit-offset <integer_cst 0x7fecd3e164f8 0> context <record_type 0x7fecd3f9fa80 > chain <field_decl 0x7fecd3fa05a0 field_2>>>
pointer_to_this <pointer_type 0x7fecd3fa61f8>>
error: failed to build archive at `/home/sam/git/pkgcraft/target/debug/deps/libtree_sitter-0d20b34fde8c980b.rlib`: failed to open object file: No such file or directory (os error 2)
$ rustc -vV
rustc 1.91.0-nightly (067965d6c 2025-10-27) (gentoo)
binary: rustc
commit-hash: 067965d6cc76bfd49637f46d05ae2111bbd2f121
commit-date: 2025-10-27
host: x86_64-unknown-linux-gnu
release: 1.91.0-nightly
This is with the rust 1.91.0 beta from 20251009 and github.com/rust-lang/rust from b93730ce97c738bdb9209aa973d3fc6fd4ce1d81.
- Ngôn ngữ chính
- Rust
- Star
- 1.2k
- Fork
- 106
- Merge trung bình
- 6 giờ 17 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
-
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
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
rust-lang/rustc_codegen_gcc#930 · 5 bình luận ·
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ự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
charles-hood/DiagramCraft#73 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
ontologyportal/sigma-rs#200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
chipsalliance/caliptra-sw#4311 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
`image_generation`: `max_retries` is ignored for OpenAI-compatible providers (always 2 retries)Có thể đã có người làm @ericz7900 đã nhận hôm nay. Đang mởllm translation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày