-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
unable to build glibc for target riscv64-linux-gnu #3340
Comments
Related: #4459 |
This now seems to fail with:
|
The fix for this issue is likely just copying a few files over from glibc 2.31 into zig's source repo. |
After #10339, the next problem:
Not sure how to work around that: ENTRY (ENTRY_POINT)
/* Terminate call stack by noting ra is undefined. Use a dummy
.cfi_label to force starting the FDE. */
.cfi_label .Ldummy
cfi_undefined (ra)
call load_gp
mv a5, a0 /* rtld_fini. */
/* main may be in a shared library. */
la a0, main
REG_L a1, 0(sp) /* argc. */
addi a2, sp, SZREG /* argv. */
andi sp, sp, ALMASK /* Align stack. */
li a3, 0 /* Used to be init. */
li a4, 0 /* Used to be fini. */
mv a6, sp /* stack_end. */
call __libc_start_main@plt
ebreak
END (ENTRY_POINT) |
Digging into old glibc mail archive, I found https://sourceware.org/pipermail/libc-alpha/2019-January/100734.html Using a pair of cfi_startproc and cfi_endproc should work equivalently like cfi_label. aarch64 also uses this way https://github.com/bminor/glibc/blob/b92a49359f33a461db080a33940d73f47c756126/sysdeps/unix/sysv/linux/aarch64/clone.S#L72 |
I just hit this problem, while trying to cross-compile Go code (with C dependencies) to target
Is is possible to give a "for dummies" instruction on how to ad-hoc fix this? I need to change some file under |
From my understanding of upstream issue linked in, the |
Just hit this problem too, removing that directive and compiling with |
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
Wanted to try this out myself but I ran into this on aarch64-linux:
Copying the command out with
|
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The .cfi_label is a gas extension not supported by clang. From a ziglang discussion [1], it seems that it is not really required. [1] ziglang/zig#3340
The text was updated successfully, but these errors were encountered: