You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to cross-compile a project using libc to a arm platform, but it looks like glibc is broken, it fails with the following error message:
error(compilation): clang failed with stderr: In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/crti.S:44:
In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/arm/sysdep.h:25:
In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/unix/arm/sysdep.h:19:
./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/sysdep.h:25:11: fatal error: 'arm-features.h' file not found
error(compilation): ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/crti.S:1:1: unable to build C object: clang exited with code 1
error(compilation): clang failed with stderr: In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/crtn.S:38:
In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/arm/sysdep.h:25:
In file included from ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/unix/arm/sysdep.h:19:
./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/sysdep.h:25:11: fatal error: 'arm-features.h' file not found
error(compilation): ./zig-linux-x86_64-0.9.0-dev.771+493822ac3/lib/zig/libc/glibc/sysdeps/arm/crtn.S:1:1: unable to build C object: clang exited with code 1
thread 1658133 panic: reached unreachable code
???:?:?: 0x555acba76468 in ??? (???)
???:?:?: 0x555acbe790c2 in ??? (???)
???:?:?: 0x555acbe5f3f2 in ??? (???)
???:?:?: 0x555acbc019b5 in ??? (???)
???:?:?: 0x555acbbf062d in ??? (???)
???:?:?: 0x555acbbe9fef in ??? (???)
???:?:?: 0x555acbb7e2bf in ??? (???)
???:?:?: 0x555acbaacce7 in ??? (???)
???:?:?: 0x555acba812b7 in ??? (???)
???:?:?: 0x555acba80cf9 in ??? (???)
???:?:?: 0x7f7e0cab5b24 in ??? (???)
The file compiled to produce this error is this:
pubfnmain() void { }
The error happens when compiling with the following commands:
I wanted to cross-compile a project using libc to a arm platform, but it looks like glibc is broken, it fails with the following error message:
The file compiled to produce this error is this:
The error happens when compiling with the following commands:
but not when compiling for musl:
zig build-exe -lc test.zig -target thumb-linux-musleabi # … didn't try on that specific commit, but worked previously
Is this an already known problem?
The text was updated successfully, but these errors were encountered: