From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5912 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: compiling musl on x86_64 linux with pcc Date: Tue, 26 Aug 2014 21:34:39 +0200 Message-ID: <20140826193439.GH12376@example.net> References: <20140813091843.GD5170@example.net> <20140813123832.GK12888@brightrain.aerifal.cx> <20140813125607.GK5170@example.net> <20140813142332.GN12888@brightrain.aerifal.cx> <20140825082807.GB12376@example.net> <20140825083457.GC12376@example.net> <20140825154617.GV12888@brightrain.aerifal.cx> 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 1409081715 32269 80.91.229.3 (26 Aug 2014 19:35:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2014 19:35:15 +0000 (UTC) Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-5918-gllmg-musl=m.gmane.org@lists.openwall.com Tue Aug 26 21:35:08 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XMMWK-0002N8-Mu for gllmg-musl@plane.gmane.org; Tue, 26 Aug 2014 21:35:08 +0200 Original-Received: (qmail 5817 invoked by uid 550); 26 Aug 2014 19:35:07 -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 5807 invoked from network); 26 Aug 2014 19:35:07 -0000 X-T2-Spam-Status: No, hits=0.0 required=5.0 Received-SPF: none receiver=mailfe09.swip.net; client-ip=96.47.226.20; envelope-from=u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140825154617.GV12888@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5912 Archived-At: Hello Rich, On Mon, Aug 25, 2014 at 11:46:17AM -0400, Rich Felker wrote: > I have pcc 1.1.0.DEVEL 20130227 with pcc-libs-20130721 and it seems to > still work fine with current musl. Note that some fixes are needed for > pcc-libs: > > - You need to remove the broken csu files and replace them with > symlinks to the musl files. I do not even generate crt[01in].o in pcclibs and of course use the musl ones. > - You need to add __attribute__((__visibility__("hidden"))) to all > external functions in libpcc. This does not seem to make any difference (and probably would not be noticeable with simple tests anyway?). > - You need to add -fPIC to the CFLAGS for building libpcc or you get a > broken libpcc (containing textrels) that can't be used for building > libc.so and that's harmful for use with any other shared libs. I do. Anyway, the brokenness is present with both static and dynamic linking. (testing on i486-pc-linux-gnu) I narrowed down what looks broken: *printf() with "%something" seems to pick wrong arguments, iow it looks like malfunctioning variadic args. (?) > I just ran libc-test with libc.so built by pcc and confirmed that > there are no non-math regressions versus gcc-built libc.so. (I did not > check math in detail because there are lots of known math failures > that are not serious.) > > Let me know if you have any further questions about my setup. Is it possible to try pcc from 2014-08-24 in your environment? If it is hard, I can test the old versions instead (when I can, right now my time slice is over). Regards, Rune PS (this variadic business reminds me again that stdarg.h should be provided by the compiler who knows what it can do to the generated functions and what it must do with the public ones - not by the library which can be used with different compilers and should not boldly assume the level of their intelligence)