libc build broken with clang ?



Hi! I'm writing because I'm having some issues with -CURRENT and clang in
amd64.
I first compiled latest revision at this date and everything went ok:

[0][root@Symphony ~]# uname -a
FreeBSD Symphony.Gl 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Sun Jul 10 10:38:28
ART 2011 toor@xxxxxxxxxxx:/usr/obj/usr/src/sys/GENERIC amd64

Now, a week or two later, something around libc broke.
here's the output of make buildworld with clang :

lang -fpic -DPIC -O2 -pipe "-march=native" -I/usr/src/lib/libc/include
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6
-I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE
-DPOSIX_MISTAKE -I/usr/src/lib/libc/../../contrib/tzcode/stdtime
-I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES
-DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING
-DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c
/usr/src/lib/libc/string/wmemset.c -o wmemset.So building shared library
libc.so.7
/usr/bin/ld: cap_getrights.So: relocation R_X86_64_32S against
`SYS_cap_getrights' can not be used when making a shared object; recompile
with -fPIC cap_getrights.So: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see
invocation) *** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src.
*** Error code 1

My kernel configurations is very generic ( here it is, just in case ->
http://pastebin.com/ev78UTZL ), I've just disabled debug-related stuff (I have
a separate kernel for that)

I also think that my make.conf has nothing special (but I'll leave it anyways
-> http://pastebin.com/2Pi0ejbR )

So, I'm kinda confused here (I'm still not completely familiar with the source
code)
Any idea ?

Thanks for reading !

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M/MU d-x s+:- !a C++(+++)@>$
UBLVS++++>$ P+ L+++(++++) E- W++
N++(+++) o K- w--- !O- M-@ !V PS++@
PE? Y+ PGP+++ t- 5? X- R* tv-- b+
DI+ D+(++) G h-- r++@ z?**
------END GEEK CODE BLOCK------

Attachment: signature.asc
Description: This is a digitally signed message part.



Relevant Pages

  • Re: Sleep/Lenovo SL410 fails again after csup & clang
    ... Today I rebuilt world using clang & this morning's csup current. ... I closed my laptop lid and put it in my case. ... sleep light flashing. ... *** Error code 1 ...
    (freebsd-current)
  • Re: buildkernel error ...
    ... *** Error code 1 ... Given that the only thing that has changed is the addition of clang, ... I'm in the middle of a buildworld as I write this, ... Just with the detail that the quoted error occured during buildkernel and not ...
    (freebsd-stable)
  • Re: buildkernel error ...
    ... *** Error code 1 ... Given that the only thing that has changed is the addition of clang, ... I'm in the middle of a buildworld as I write this, ... Just with the detail that the quoted error occured during buildkernel and not ...
    (freebsd-stable)
  • Re: Migrating from FreeBSD 9.0-STABLE/amd to 10.0-CURRENT/amd64?
    ... clang: warning: argument unused during compilation: ... *** Error code 1 ...
    (freebsd-current)
  • Re: Clang now builds world and kernel, on i386 and amd64
    ... clang which is some 30% slower than the normal one... ... *** Error code 250 ... et ceux qui ne le comprennent pas." ...
    (freebsd-current)