From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5896 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: compiling musl on x86_64 linux with pcc Date: Mon, 25 Aug 2014 11:46:17 -0400 Message-ID: <20140825154617.GV12888@brightrain.aerifal.cx> 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> 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 1408981601 6295 80.91.229.3 (25 Aug 2014 15:46:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2014 15:46:41 +0000 (UTC) Cc: musl@lists.openwall.com To: u-igbb@aetey.se Original-X-From: musl-return-5902-gllmg-musl=m.gmane.org@lists.openwall.com Mon Aug 25 17:46:36 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 1XLwTZ-000541-8a for gllmg-musl@plane.gmane.org; Mon, 25 Aug 2014 17:46:33 +0200 Original-Received: (qmail 15469 invoked by uid 550); 25 Aug 2014 15:46:32 -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 15461 invoked from network); 25 Aug 2014 15:46:32 -0000 Content-Disposition: inline In-Reply-To: <20140825083457.GC12376@example.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5896 Archived-At: On Mon, Aug 25, 2014 at 10:34:57AM +0200, u-igbb@aetey.se wrote: > On Mon, Aug 25, 2014 at 10:28:08AM +0200, u-igbb@aetey.se wrote: > > Do you have a reference to which versions of musl and pcc > > did work together? (May be the musl compilation went through, like > > it does now, but the resulting library was not fully healthy either?) > > Found http://www.etalabs.net/musl/oldversions.html which says > that musl-0.7.10.tar.gz - May 17, 2011 was good with pcc (presumably > of the same time). I guess too much happened since then on both sides. 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. - You need to add __attribute__((__visibility__("hidden"))) to all external functions in libpcc. - 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 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. Rich