Isaac Dunham
2012-06-07 05:12:31 UTC
I'm getting this error compiling current musl libc with pcc:
pcc -std=c99 -ffreestanding -nostdinc -D_XOPEN_SOURCE=700
-I./src/internal -I./include -I./arch/i386 -Os -pipe
-fno-stack-protector -c -o src/complex/__cexp.o src/complex/__cexp.c
src/complex/__cexp.c, line 72: operands of CAST have incompatible types
src/complex/__cexp.c, line 73: operands of CAST have incompatible types
make: *** [src/complex/__cexp.o] Error 1
The lines indicated are:
x = creal(z);
y = cimag(z);
Which should be casts from a complex number to respectively a real or
imaginary number; under ISO C99 this should mean the real or imaginary
parts of a complex number.
AFAICT, this is the only thing preventing the build of musl with CC=pcc
--when src/complex/ is removed, it compiles fine.
Thanks,
Isaac Dunham
pcc -std=c99 -ffreestanding -nostdinc -D_XOPEN_SOURCE=700
-I./src/internal -I./include -I./arch/i386 -Os -pipe
-fno-stack-protector -c -o src/complex/__cexp.o src/complex/__cexp.c
src/complex/__cexp.c, line 72: operands of CAST have incompatible types
src/complex/__cexp.c, line 73: operands of CAST have incompatible types
make: *** [src/complex/__cexp.o] Error 1
The lines indicated are:
x = creal(z);
y = cimag(z);
Which should be casts from a complex number to respectively a real or
imaginary number; under ISO C99 this should mean the real or imaginary
parts of a complex number.
AFAICT, this is the only thing preventing the build of musl with CC=pcc
--when src/complex/ is removed, it compiles fine.
Thanks,
Isaac Dunham