Repository navigation
Closed
Labels
Milestone
Description
[nix-shell:~/dev/zig/build]$ ./zig build-exe --c-source hello.c -target riscv64-linux-gnu -lc
/home/andy/dev/zig/lib/libc/glibc/sysdeps/riscv/start.S:37:10: fatal error: 'entry.h' file not found
#include <entry.h>
^~~~~~~~~
1 error generated.
The following command failed:
/home/andy/dev/zig/build/zig cc -MD -MV -MF /home/andy/.local/share/zig/stage1/tmp/jy58t2gTUqIE-start.o.d -nostdinc -fno-spell-checking -isystem /home/andy/dev/zig/lib/include -target riscv64-unknown-linux-gnu -g -fno-omit-frame-pointer -D_DEBUG -fno-stack-protector -fPIC -o /home/andy/.local/share/zig/stage1/tmp/jy58t2gTUqIE-start.o -c /home/andy/dev/zig/lib/libc/glibc/sysdeps/riscv/start.S -I /home/andy/dev/zig/lib/libc/glibc/include -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/sysv/linux/riscv -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/riscv/nptl -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/sysv/linux/generic -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/sysv/linux/include -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/sysv/linux -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/nptl -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/pthread -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/sysv -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix/riscv -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/unix -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/riscv -I /home/andy/dev/zig/lib/libc/glibc/sysdeps/generic -I /home/andy/dev/zig/lib/libc/glibc -I /home/andy/dev/zig/lib/libc/include/riscv64-linux-gnu -I /home/andy/dev/zig/lib/libc/include/generic-glibc -I /home/andy/dev/zig/lib/libc/include/riscv64-linux-any -I /home/andy/dev/zig/lib/libc/include/any-linux-any -D_LIBC_REENTRANT -include /home/andy/dev/zig/lib/libc/glibc/include/libc-modules.h -DMODULE_NAME=libc -Wno-nonportable-include-path -include /home/andy/dev/zig/lib/libc/glibc/include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -DASSEMBLER -g -Wa,--noexecstack
Reacted by Alex Rønne Petersen, Suraj and T-256
Activity
andrewrk commentedon Feb 17, 2020
Related: #4459
daurnimator commentedon Mar 31, 2020
This now seems to fail with:
andrewrk commentedon Mar 31, 2020
The fix for this issue is likely just copying a few files over from glibc 2.31 into zig's source repo.
andrewrk commentedon Dec 16, 2021
After #10339, the next problem:
.cfi_labelseems to be an undocumented feature of GAS that clang does not support.Not sure how to work around that:
47 remaining items
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang
riscv: Do not use cfi_label when building with clang