Closed bjia56 closed 5 days ago
Reproduced.
Changing the target glibc version changes the error a bit. A more recent glibc just has the lgammal
error:
$ zig cc -target s390x-linux-gnu.2.29 hello.c -o hello
/home/pat/projects/ziglang/zig-global-cache/o/562e59d6889be0dcc813888297ac739a/m.s:4041:1: error: symbol 'lgammal' is already defined
lgammal:
^
$
Depending on your goals, as a work-around the Musl targets seem to work fine:
$ zig cc -target s390x-linux-musl hello.c -o hello
$
See also #20376.
Zig Version
0.14.0-dev.1052+d6f997259
Steps to Reproduce and Observed Behavior
Expected Behavior
Compilation succeeds.