From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6782 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general,gmane.comp.compilers.pcc Subject: pcc i386 -fPIC compiler error on src/complex/catanf.c Date: Sat, 3 Jan 2015 21:53:13 -0800 Message-ID: <20150104055311.GA1776@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1420350810 20245 80.91.229.3 (4 Jan 2015 05:53:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 05:53:30 +0000 (UTC) To: musl@lists.openwall.com, pcc@lists.ludd.ltu.se Original-X-From: musl-return-6795-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jan 04 06:53:23 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y7e7u-0004Ji-W5 for gllmg-musl@m.gmane.org; Sun, 04 Jan 2015 06:53:23 +0100 Original-Received: (qmail 21622 invoked by uid 550); 4 Jan 2015 05:53:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21606 invoked from network); 4 Jan 2015 05:53:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=c/7abMGh2xD7EwQEFSpyfWQlnSaPt8ZVYtoGqPY7lgc=; b=M9BsW0gEVD6pliRPEi/+p8blLneBNm4OFCrF1VtnCAntwrM1oOoweCMlmNaPBqLaub sy3ZmLvWiRZ2i+n3wvSyh783VpzSuY/uI7R9PUOocLTBLZwjxTZ+Jhn31HBKWKj9626X rp75p/oRdm2sywYctvBZq8LcPEwLOkxnFeo2WSEq9egayRJb6vieRa3Ae/ZmyvJcroei aP3vKpmZbiec4rY+vL38EzfwaBBXX38kascPEOHYSyWY9wAuoEG+LdEBMV2kFxBYPlpM MYYRcA71OyYmqHJHXro8tQJGYwsOp2hxM4xXqAfodthyGAxzQstQQ/SWYTsthPihciPg 1C/g== X-Received: by 10.66.155.170 with SMTP id vx10mr135398281pab.137.1420350789077; Sat, 03 Jan 2015 21:53:09 -0800 (PST) Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:6782 gmane.comp.compilers.pcc:3335 Archived-At: 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