-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with multiple large include_bytes! uses. #103979
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
novafacing
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Nov 4, 2022
Tagging on to this, I don't get a compile error for the following but if I uncomment the last constant initializer it does crash! #[cfg(feature = "aarch64-softmmu")]
pub const QEMU_SYSTEM_AARCH64: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-aarch64"
));
#[cfg(feature = "alpha-softmmu")]
pub const QEMU_SYSTEM_ALPHA: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-alpha"
));
#[cfg(feature = "arm-softmmu")]
pub const QEMU_SYSTEM_ARM: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-arm"
));
#[cfg(feature = "avr-softmmu")]
pub const QEMU_SYSTEM_AVR: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-avr"
));
#[cfg(feature = "cris-softmmu")]
pub const QEMU_SYSTEM_CRIS: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-cris"
));
#[cfg(feature = "hppa-softmmu")]
pub const QEMU_SYSTEM_HPPA: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-hppa"
));
#[cfg(feature = "i386-softmmu")]
pub const QEMU_SYSTEM_I386: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-i386"
));
#[cfg(feature = "loongarch64-softmmu")]
pub const QEMU_SYSTEM_LOONGARCH64: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-loongarch64"
));
#[cfg(feature = "m68k-softmmu")]
pub const QEMU_SYSTEM_M68K: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-m68k"
));
#[cfg(feature = "microblazeel-softmmu")]
pub const QEMU_SYSTEM_MICROBLAZEEL: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-microblazeel"
));
#[cfg(feature = "microblaze-softmmu")]
pub const QEMU_SYSTEM_MICROBLAZE: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-microblaze"
));
#[cfg(feature = "mips64el-softmmu")]
pub const QEMU_SYSTEM_MIPS64EL: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-mips64el"
));
#[cfg(feature = "mips64-softmmu")]
pub const QEMU_SYSTEM_MIPS64: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-mips64"
));
#[cfg(feature = "mipsel-softmmu")]
pub const QEMU_SYSTEM_MIPSEL: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-mipsel"
));
#[cfg(feature = "mips-softmmu")]
pub const QEMU_SYSTEM_MIPS: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-mips"
));
#[cfg(feature = "nios2-softmmu")]
pub const QEMU_SYSTEM_NIOS2: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-nios2"
));
#[cfg(feature = "or1k-softmmu")]
pub const QEMU_SYSTEM_OR1K: &[u8] = include_bytes!(concat!(
env!("OUT_DIR"),
"/install",
"/bin",
"/qemu-system-or1k"
));
// #[cfg(feature = "ppc64-softmmu")]
// pub const QEMU_SYSTEM_PPC64: &[u8] = include_bytes!(concat!(
// env!("OUT_DIR"),
// "/install",
// "/bin",
// "/qemu-system-ppc64"
// )); |
Looks like #103812 will solve this, so I'll declutter and close this issue. Turned on notifications for that PR and I'll reopen after it is merged if this is in fact a separate bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
My code is here. The error happens when just compiling the cloned repo with
cargo build
, and I'm not sure how to minimize it since the error comes frominclude_bytes!
. Repro may need anapt-get build-dep qemu && python3 -m pip install meson ninja
before it will compile to the point of the crash.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: