mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Compilation error
Date: Sun, 7 Aug 2011 15:34:31 -0400	[thread overview]
Message-ID: <20110807193431.GI132@brightrain.aerifal.cx> (raw)
In-Reply-To: <20110807193658.GA29562@port70.net>

On Sun, Aug 07, 2011 at 09:36:58PM +0200, Szabolcs Nagy wrote:
> * nicolas@atelier-web.com <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


  reply	other threads:[~2011-08-07 19:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-07 18:57 nicolas
2011-08-07 19:36 ` Szabolcs Nagy
2011-08-07 19:34   ` Rich Felker [this message]
2011-08-07 19:50     ` Rich Felker
2011-08-07 21:01       ` nicolas
2011-08-07 20:52         ` Rich Felker
2011-08-07 22:09       ` Szabolcs Nagy
2011-08-07 22:00         ` Rich Felker
2011-08-07 22:05           ` Rich Felker
2011-08-08  7:08           ` Szabolcs Nagy
2011-08-17 10:33             ` Szabolcs Nagy
2011-08-17 13:39               ` Rich Felker
2011-08-17 14:47                 ` Szabolcs Nagy
2011-08-17 14:59                   ` Szabolcs Nagy
2011-08-17 18:18                   ` Rich Felker
2011-08-08 13:03           ` Make nicolas
2011-08-08 20:55             ` Make Rich Felker
2011-08-08 20:56             ` Make Rich Felker
2011-08-09 19:10               ` Make nicolas
2011-08-09 19:29                 ` Make Rich Felker
2011-08-09 20:23                 ` Make Szabolcs Nagy
2011-08-10 19:19                   ` Make nicolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110807193431.GI132@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).