mailing list of musl libc
 help / color / mirror / code / Atom feed
* pcc i386 -fPIC compiler error on src/complex/catanf.c
@ 2015-01-04  5:53 Isaac Dunham
  2015-01-04 17:47 ` Iain Hibbert
  0 siblings, 1 reply; 10+ messages in thread
From: Isaac Dunham @ 2015-01-04  5:53 UTC (permalink / raw)
  To: musl, pcc

Hello,
With recent pcc (built from cvs since 1.1.0 was released), I've tried
building musl a few times, but the shared build consistently dies
on src/complex/catanf.c (command wrapped to avoid getting mangled
in the mail):
$ make
pcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard    \
  -frounding-math -D_XOPEN_SOURCE=700 -I./arch/i386 -I./src/internal \
  -I./include  -Os -pipe -fomit-frame-pointer -fno-unwind-tables     \
  -fno-asynchronous-unwind-tables -Wa,--noexecstack -march=i486      \
  -Werror=implicit-function-declaration -Werror=implicit-int 	     \
  -Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector    \
  -fPIC -DSHARED -c -o src/complex/catanf.lo src/complex/catanf.c
src/complex/catanf.c, line 80: compiler error: bad STCALL hidden reg
error: /usr/libexec/ccom terminated with status 1
Makefile:124: recipe for target 'src/complex/catanf.lo' failed
make: *** [src/complex/catanf.lo] Error 1

Line 80 is the closing bracket of _redupif(), which is fairly basic
floating point math.

If I try removing flags from the command until it compiles, -fPIC seems
to be what triggers the compiler error.

I'm compiling pcc with these flags:
$ ./configure --prefix=/usr --build=i486-alpine-linux-musl --target=i486-alpine-linux-musl --enable-tls --with-libdir=/usr/lib --with-incdir=/usr/include

With tls disabled (as per default), it still fails the same.

I can't really isolate the error in question, I'm afraid.

Thanks,
Isaac Dunham


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-06  3:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-04  5:53 pcc i386 -fPIC compiler error on src/complex/catanf.c Isaac Dunham
2015-01-04 17:47 ` Iain Hibbert
2015-01-04 18:01   ` Re: [Pcc] " Rich Felker
2015-01-04 19:26     ` Jens Gustedt
2015-01-04 19:24   ` Anders Magnusson
2015-01-04 21:04     ` Isaac Dunham
2015-01-04 21:54       ` Isaac Dunham
2015-01-05 10:31       ` Anders Magnusson
2015-01-05 23:25         ` [Pcc] " Isaac Dunham
2015-01-06  3:27           ` Anders Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).