From owner-freebsd-current@FreeBSD.ORG Sun Jul 31 17:41:03 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6AE6106564A for ; Sun, 31 Jul 2011 17:41:02 +0000 (UTC) (envelope-from vertex.symphony@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id A45B68FC18 for ; Sun, 31 Jul 2011 17:41:02 +0000 (UTC) Received: by yic13 with SMTP id 13so4036815yic.13 for ; Sun, 31 Jul 2011 10:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=NjhClykNxLrJU+syE41UMbTzi0bInYaVjWCNJ1OSr3I=; b=ZqBXTSDMt0Xrbh86NvpCiXyd8VoG5rSvnRjUMQME3mLh6tOJbDyYuzU9ktJdZDJop+ kguY42HQ+w0gc9WYS+JJSYtxYQgpktVnFQ91rSUyhdBxGEDI8jGE/qxPBZhEZ+UQ6quL UVJIzJeJ3h7W+imO8f8wGLErUVbAp/op2EK5k= Received: by 10.91.72.23 with SMTP id z23mr2632785agk.13.1312132550788; Sun, 31 Jul 2011 10:15:50 -0700 (PDT) Received: from symphony.gl (165-55-16-190.fibertel.com.ar [190.16.55.165]) by mx.google.com with ESMTPS id p40sm4148696ann.33.2011.07.31.10.15.48 (version=SSLv3 cipher=OTHER); Sun, 31 Jul 2011 10:15:50 -0700 (PDT) From: Alex Kuster To: freebsd-current@freebsd.org Date: Sun, 31 Jul 2011 14:15:58 -0300 User-Agent: KMail/1.13.7 (FreeBSD/9.0-CURRENT; KDE/4.6.5; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1608635.RlpNNI43yj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201107311416.07307.vertex.Symphony@gmail.com> Subject: libc build broken with clang ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2011 17:41:03 -0000 --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--