Skip to content

self-hosted x86 backend has formatted panics disabled #21529

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

Closed
andrewrk opened this issue Sep 27, 2024 · 2 comments
Closed

self-hosted x86 backend has formatted panics disabled #21529

andrewrk opened this issue Sep 27, 2024 · 2 comments
Labels
arch-x86_64 64-bit x86 backend-self-hosted enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Sep 27, 2024

zig/src/target.zig

Lines 589 to 596 in 085cc54

.panic_unwrap_error => switch (backend) {
.stage2_c, .stage2_llvm => true,
else => false,
},
.safety_check_formatted => switch (backend) {
.stage2_c, .stage2_llvm => true,
else => false,
},

After #21520, this causes:

+ ./zig2 build -Dno-lib
install
+- install zig
   +- zig build-exe zig Debug native 705 errors
error: fatal linker error: cannot expand segment seg(0)(__TEXT_ZIG) in virtual memory
    note: TODO: emit relocations to memory locations in self-hosted backends
    note: as a workaround, try increasing pre-allocated virtual memory of each segment
@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. arch-x86_64 64-bit x86 backend-self-hosted labels Sep 27, 2024
@andrewrk andrewrk added this to the 0.14.0 milestone Sep 27, 2024
andrewrk added a commit that referenced this issue Sep 27, 2024
@jacobly0
Copy link
Member

jacobly0 commented Jan 5, 2025

I wasn't following frontend changes enough since this issue was opened to know what it is even supposed to be tracking now.

@andrewrk
Copy link
Member Author

andrewrk commented Jan 5, 2025

Closed by 4f8d244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x86_64 64-bit x86 backend-self-hosted enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Projects
None yet
Development

No branches or pull requests

2 participants