Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2011 14:15:58 -0300
From:      Alex Kuster <vertex.symphony@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   libc build broken with clang ?
Message-ID:  <201107311416.07307.vertex.Symphony@gmail.com>

next in thread | raw e-mail | index | archive | help
--nextPart1608635.RlpNNI43yj
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi!  I'm writing because I'm having some issues with -CURRENT and clang in=
=20
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@Symphony.Gl:/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=3Dnative"  -I/usr/src/lib/libc/include
> -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS=20
> -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=3Dgnu99 -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
>=20
> Stop in /usr/src/lib/libc.
> *** Error code 1
>=20
> Stop in /usr/src.
> *** Error code 1

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

I also think that my make.conf has nothing special (but I'll leave it anywa=
ys=20
=2D> http://pastebin.com/2Pi0ejbR )

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

Thanks for reading !

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

--nextPart1608635.RlpNNI43yj
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAABAgAGBQJONY3XAAoJEAbK7mQx/toetMwP/0S1JvrjsG/cLOnbyhb6gV/L
fi+wTbqNeJa4azbG/w4MH15HheUsI73sY9jcCiGKyXpzkXCJiz2TFoBGLeB86zHU
aqxQyl8FDkaR1H2mJKDaxS9fGVtaQ7YeednuqdVjWoAtN2IFw92jh6+jrYVfcnNg
YVwJrX/9uP78PlSaC6Xh/ydHjupW7RMkMeU6cSANeMEDSUb6uc5xu+jvnn8vunlW
O+yoUpMKBQj13kNlsHdrt6OzhqzlF13SWzdA7ui9bCvxCO8Dod6q94Jj1uePUL3c
6odplmlZ+tCCIGQw549deqrMzHeJwn0BU3xW8fZj3pmvHcRlvTrRqI97Vrh3zUOW
yfQWFfOh4ugbXbG8I/ClfthpyCNYe3U6pF0f8wt8KZ56JiFxph8bHKYfgYVvr1Hh
1m7IDhz6nzUtZ+B3Q513Z8SZuBeBJCUCnlV/EtAdKZ0Ta2pIJFIol24+1rh5Ggpm
nONN2bGslp8aAmURtcWrTLiHuLXzek7ZM1b3lGAtGEguu/c5SHubgIC+fP+qG3Ve
JMKYc4xme+BBdRyTNCao7y0zfOYtrWyonDTtqwlJ3oC9Eqx2dMQCRPWwh5o7xQn+
JAt8T5H12/DEfPzWTvGb/VXKo+CpM4CfLh9MhPngR08Q7Q+HSY/Wchsgfo4DCOmj
e63ynWecnnJjpKgo5Q6v
=ZjN+
-----END PGP SIGNATURE-----

--nextPart1608635.RlpNNI43yj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107311416.07307.vertex.Symphony>