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
install
└─ install gc
└─ zig build-lib gc Debug powerpc64-linux-gnu 1 errors
/zig-macos-aarch64-0.14.0/lib//libc/include/powerpc64-linux-gnu/gnu/stubs.h:14:11: error: 'gnu/stubs-64-v2.h' file not found
# include <gnu/stubs-64-v2.h>
^~~~~~~~~~~~~~~~~~~~
/Developer/_play/zig/play5/main.c:1:10: note: in file included from /Developer/_play/zig/play5/main.c:1:
#include <stdio.h>
^
/zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/stdio.h:28:10: note: in file included from /zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/stdio.h:28:
#include <bits/libc-header-start.h>
^
/zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/bits/libc-header-start.h:33:10: note: in file included from /zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/bits/libc-header-start.h:33:
#include <features.h>
^
/zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/features.h:564:10: note: in file included from /zig-macos-aarch64-0.14.0/lib//libc/include/generic-glibc/features.h:564:
#include <gnu/stubs.h>
^
error: warning(compilation): failed to delete '/Users/guo/Developer/_play/zig/play5/.zig-cache/tmp/8e9ccc696ed1dc25-main.o.d': FileNotFound
error: the following command failed with 1 compilation errors:
/zig-macos-aarch64-0.14.0/zig build-lib /Developer/_play/zig/play5/main.c -ODebug -target powerpc64-linux-gnu -mcpu baseline -Mroot -lc --cache-dir /Developer/_play/zig/play5/.zig-cache --global-cache-dir /.cache/zig --name gc -dynamic --zig-lib-dir /zig-macos-aarch64-0.14.0/lib/ --listen=-
Build Summary: 0/3 steps succeeded; 1 failed
install transitive failure
└─ install gc transitive failure
└─ zig build-lib gc Debug powerpc64-linux-gnu 1 errors
error: the following build command failed with exit code 1:
/Developer/_play/zig/play5/.zig-cache/o/f7380d759af2e9268205837f85703565/build /zig-macos-aarch64-0.14.0/zig /zig-macos-aarch64-0.14.0/lib /Developer/_play/zig/play5 /Developer/_play/zig/play5/.zig-cache /.cache/zig --seed 0x5be4522d -Zf2f28acb7b0e9878 -Dtarget=powerpc64-linux-gnu
Expected Behavior
According to a stackoverflow post, powerpc64-linux-gnu build should use <gnu/stubs-64-v1.h> as the file content of /zig-macos-aarch64-0.14.0/lib/libc/include/powerpc64-linux-gnu/gnu/stubs.h
powerpc64-linux-gnu is not currently supported due to #5927. We force ELFv2 because it at least allows powerpc64-linux-none to work for Zig code that doesn't link libc.
Zig Version
zig-macos-aarch64-0.14.0
Steps to Reproduce and Observed Behavior
I am trying to upgrade bdwgc's
build.zig
file to Zig 0.14. I encountered problems when cross build topowerpc64-linux-gnu
.minimal reproducible example:
main.c
build.zig
erroe message:
Expected Behavior
According to a stackoverflow post,
powerpc64-linux-gnu
build should use<gnu/stubs-64-v1.h>
as the file content of/zig-macos-aarch64-0.14.0/lib/libc/include/powerpc64-linux-gnu/gnu/stubs.h
I think
_CALL_ELF
doesn't be set properly.The text was updated successfully, but these errors were encountered: