From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/351 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compilation error Date: Sun, 7 Aug 2011 15:34:31 -0400 Message-ID: <20110807193431.GI132@brightrain.aerifal.cx> References: <6b8e6a08f65ec476283a3699a41451d7@smtp1.ispfr.net> <20110807193658.GA29562@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 1312746431 30545 80.91.229.12 (7 Aug 2011 19:47:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 19:47:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-352-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 07 21:47:06 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 1Qq9JS-00006f-MV for gllmg-musl@lo.gmane.org; Sun, 07 Aug 2011 21:47:06 +0200 Original-Received: (qmail 32104 invoked by uid 550); 7 Aug 2011 19:47:06 -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 32096 invoked from network); 7 Aug 2011 19:47:06 -0000 Content-Disposition: inline In-Reply-To: <20110807193658.GA29562@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:351 Archived-At: On Sun, Aug 07, 2011 at 09:36:58PM +0200, Szabolcs Nagy wrote: > * nicolas@atelier-web.com [2011-08-07 20:57:11 +0200]: > > I tried to compile musl with the pcc compiler, but it failed because of : > > > > $(CC) $(LDFLAGS) -Wl,-soname=libc.so -o $@ $(LOBJS) -lgcc > > > > Is the option -lgcc really necessary ? > > I had removed it, and the compilation succeeded :) > > with pcc you don't need -lgcc obviously > with gcc you need it Doesn't pcc have its own equivalent library with the same functions for big division, etc.? This makes me think more and more I should just add the essential functions to musl. That way we could make them faster and less bloated. There are only a few that are actually useful anyway (at least to libc) and for the rest apps/libraries can just pull in their own copy from libgcc or libpcc via the compiler's default library searches. > btw pcc cannot build a correct musl now > clock_gettime refers to a weak symbol > but pcc does not know __attribute__((weak)) > so __vdso_clock_gettime ends up being > an undefined symbol > > (there are various kinds of weakref related > attributes and it's a known defect in pcc > http://pcc.ludd.ltu.se/jira/browse/PCC-362 ) > > musl mostly uses weak aliases which happen > to work with pcc imho clock_gettime is the > only exception.. I'll try to work up a fix... Rich