#include <stdio.h>
int main() {
long double a = 1.0e+119L;
long double b = 1.0e+119L;
long double c;
c = a + b;
printf("qadd: %Lf\n", c);
c = a * b;
printf("qmul: %Lf\n", c);
return 0;
}
$ ./zig-linux-x86_64-0.14.0-dev.2310+b0dcce93f/zig cc -target powerpc64le-linux-gnu test.c
ld.lld: error: undefined symbol: __gcc_qadd
>>> referenced by test.c:8
>>> /path/to/.cache/zig/o/e9f09ac644b53b3941359b8b9b0bfc63/test.o:(main)
ld.lld: error: undefined symbol: __gcc_qmul
>>> referenced by test.c:10
>>> /path/to/.cache/zig/o/e9f09ac644b53b3941359b8b9b0bfc63/test.o:(main)
The above is a minimal reproducible example of an issue that occurs when building sqlite3 for powerpc64le-linux-gnu.
Zig Version
0.14.0-dev.2310+b0dcce93f
Steps to Reproduce and Observed Behavior
The above is a minimal reproducible example of an issue that occurs when building sqlite3 for powerpc64le-linux-gnu.
Expected Behavior
Compilation succeeds.