From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/434 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compilation error Date: Wed, 17 Aug 2011 12:33:28 +0200 Message-ID: <20110817103328.GR29562@port70.net> References: <6b8e6a08f65ec476283a3699a41451d7@smtp1.ispfr.net> <20110807193658.GA29562@port70.net> <20110807193431.GI132@brightrain.aerifal.cx> <20110807195006.GJ132@brightrain.aerifal.cx> <20110807220940.GC29562@port70.net> <20110807220025.GL132@brightrain.aerifal.cx> <20110808070817.GD29562@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1313577227 25851 80.91.229.12 (17 Aug 2011 10:33:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 10:33:47 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-435-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 17 12:33:42 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QtdRN-00007Y-RU for gllmg-musl@lo.gmane.org; Wed, 17 Aug 2011 12:33:41 +0200 Original-Received: (qmail 11498 invoked by uid 550); 17 Aug 2011 10:33:40 -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 11490 invoked from network); 17 Aug 2011 10:33:40 -0000 Content-Disposition: inline In-Reply-To: <20110808070817.GD29562@port70.net> User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.linux.lib.musl.general:434 Archived-At: * Szabolcs Nagy [2011-08-08 09:08:17 +0200]: > * Rich Felker [2011-08-07 18:00:25 -0400]: > > > (for some reason dynamic linking with musl fails now if i > > > compile musl with pcc imho it used to work..) > > > > Can you find where it fails? > > > > the only change to the linker flags is -L/path/to/pcclibs -lpcc > instead of -lgcc, so either pcc does not call ld properly > or there is some issue with -lpcc > i've just rechecked this and the problem simply was that libpcc.a was not compiled with -fPIC (it used to work because i didn't specify -lpcc when building libc.so and later i only tried dynamic linking with pcc which adds -lpcc automatically so there were no missing symbols) but i guess it would be nice if musl implemented long long arithmetics and made -lpcc/-lgcc unnecessary (i'm not sure where alloca should go, pcc does not provide it)