Skip to content
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

gen_stubs: Add complete coverage for all (non-ILP32) arches. #20943

Closed
wants to merge 1 commit into from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Aug 4, 2024

In particular, we were missing arm, m68k, and s390x.

@@ -593,16 +624,19 @@ fn parseElf(parse: Parse, comptime is_64: bool, comptime endian: builtin.Endian)
fn archIndex(arch: std.Target.Cpu.Arch) u8 {
return switch (arch) {
// zig fmt: off
.riscv64 => 0,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure if the the indexes that were assigned here previously had significance. If they did, I can revert this part and add the new arches at 10-12.

@andrewrk
Copy link
Member

andrewrk commented Aug 7, 2024

Those are missing because I was unable to get them to build: https://github.com/ziglang/zig/wiki/Updating-libc#updating-the-libcs-file

@alexrp
Copy link
Member Author

alexrp commented Aug 7, 2024

Ok, I'll try those and see if they work now. At least the s390x error should be fixed by #20451. Not sure about arm and m68k.

@alexrp
Copy link
Member Author

alexrp commented Aug 7, 2024

  • arm still fails with the error you got.
  • m68k doesn't segfault anymore, but: ./configure: error: unsupported long double type
  • s390x compiles (after removing enough f16 stuff from compiler-rt), but fails to link due to: ld.lld: error: relocation R_390_PC32DBL cannot be used against symbol '__tls_get_addr'; recompile with -fPIC

Well, I guess let's leave this PR until the LLVM 19 upgrade and then re-evaluate?

@alexrp alexrp marked this pull request as draft August 7, 2024 09:30
@alexrp
Copy link
Member Author

alexrp commented Aug 13, 2024

Closing for now; will retry the above after we upgrade to LLVM 19, and then reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants