Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 7 Aug 2011 21:36:58 +0200
From: Szabolcs Nagy <>
Subject: Re: Compilation error

* <> [2011-08-07 20:57:11 +0200]:
> I tried to compile musl with the pcc compiler, but it failed because of :
> $(CC) $(LDFLAGS) -Wl, -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

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 )

musl mostly uses weak aliases which happen
to work with pcc imho clock_gettime is the
only exception..

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.