From owner-freebsd-toolchain@FreeBSD.ORG Sun May 20 17:34:25 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41828106564A for ; Sun, 20 May 2012 17:34:25 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 863168FC15 for ; Sun, 20 May 2012 17:34:24 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id C6950E650C for ; Sun, 20 May 2012 18:34:43 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mail; bh=dkpB6ogat/unF3FqPP1GV1+CX cs=; b=y18N0510nkE7CBqXcnntgnioetx4SDUevBXQnUm4tAjVy4XURKMNX93Uq QMHDPWI8RwViiWS7ENSe3CLHJ3hUjS0BRXyyE3ASt3T3Z1qIhlNctZmkph8iK1Zz CmphTWzkn8ks+439lDJkeLRSxYBwWHxkOVNIOHKm4Z5KxuTnxU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=message-id :date:from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=mail; b=bN72GUy0y19uRI7Swgr /HCXKn0zY9jEA+e39ObSxuhss4Mk4iA51uIcDJ2WaMgHE2QbNvVi+TR0srlffPes 75Kt8KhAnEl+lt56cB3lRyRD/OJlzITaul+f30FkAFBb6G89z8dUo0OiL2LJvUwl DNMng3JzpruHf1Ha8+JMtuQI= Received: from [192.168.2.2] (unknown [109.249.120.3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id BB852E6509 for ; Sun, 20 May 2012 18:34:42 +0100 (BST) Message-ID: <4FB92B18.7050003@cran.org.uk> Date: Sun, 20 May 2012 18:34:16 +0100 From: Bruce Cran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-toolchain Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: WITH_CLANG_IS_CC and unrecognized command line options X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2012 17:34:25 -0000 I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf. However there's an error building ncurses: cc: unrecognized option '-Qunused-arguments' cc: unrecognized option '-Qunused-arguments' cc1: error: unrecognized command line option "-Wno-empty-body" cc1: error: unrecognized command line option "-Wno-string-plus-int" cc1: error: unrecognized command line option "-Wno-tautological-compare" cc1: error: unrecognized command line option "-Wno-parentheses-equality" cc1: error: unrecognized command line option "-Wno-empty-body" cc1: error: unrecognized command line option "-Wno-string-plus-int" cc1: error: unrecognized command line option "-Wno-tautological-compare" cc1: error: unrecognized command line option "-Wno-parentheses-equality" *** [make_hash] Error code 1 *** [make_keys] Error code 1 Is there some configuration I've missed? -- Bruce Cran From owner-freebsd-toolchain@FreeBSD.ORG Sun May 20 17:45:53 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6A231065675 for ; Sun, 20 May 2012 17:45:53 +0000 (UTC) (envelope-from zeising@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F51E8FC17 for ; Sun, 20 May 2012 17:45:53 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 2CD9D40014 for ; Sun, 20 May 2012 19:45:48 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 2221440040; Sun, 20 May 2012 19:45:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id CC39440014; Sun, 20 May 2012 19:45:46 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3VwVs61ypsz8ggx; Sun, 20 May 2012 19:45:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([IPv6:2001:470:dca9:0:1::3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [2001:470:dca9:0:1::6]) (amavisd-new, port 10025) with ESMTPS id mX4v-gUD1Jaj; Sun, 20 May 2012 19:45:44 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [10.1.0.4]) by mx.daemonic.se (Postfix) with ESMTPS id 3VwVs41BBTz8ggv; Sun, 20 May 2012 19:45:44 +0200 (CEST) Received: from tifa.daemonic.se (tifa.daemonic.se [10.32.0.6]) by mail.daemonic.se (Postfix) with ESMTPSA id 3VwVs40cH1z9Ctq; Sun, 20 May 2012 19:45:44 +0200 (CEST) Received: from tifa.daemonic.se (localhost [IPv6:::1]) by tifa.daemonic.se (Postfix) with ESMTP id 9983F22AC3; Sun, 20 May 2012 19:45:43 +0200 (CEST) Message-ID: <4FB92DC7.1010408@daemonic.se> Date: Sun, 20 May 2012 19:45:43 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: Bruce Cran References: <4FB92B18.7050003@cran.org.uk> In-Reply-To: <4FB92B18.7050003@cran.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-toolchain Subject: Re: WITH_CLANG_IS_CC and unrecognized command line options X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2012 17:45:53 -0000 On 05/20/12 19:34, Bruce Cran wrote: > I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and > have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf. > However there's an error building ncurses: > > cc: unrecognized option '-Qunused-arguments' > cc: unrecognized option '-Qunused-arguments' > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > *** [make_hash] Error code 1 > *** [make_keys] Error code 1 > > Is there some configuration I've missed? > With the risk of stating the obvious. Are you sure cc is clang in this context. The line "cc: unrecognized option '-Qunused-arguments'" is quite suspicious. Regards! -- Niclas Zeising From owner-freebsd-toolchain@FreeBSD.ORG Sun May 20 17:52:30 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 280591065687; Sun, 20 May 2012 17:52:30 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id C93198FC16; Sun, 20 May 2012 17:52:29 +0000 (UTC) Received: from kibab-darwin.local (unknown [46.115.2.123]) by mx0.deglitch.com (Postfix) with ESMTPSA id A17938FC27; Sun, 20 May 2012 21:52:25 +0400 (MSK) Message-ID: <4FB92FCE.7050407@kibab.com> Date: Sun, 20 May 2012 19:54:22 +0200 From: Ilya Bakulin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB6CC2C21E9FEF0514460187C" Cc: freebsd-toolchain@freebsd.org Subject: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2012 17:52:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB6CC2C21E9FEF0514460187C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I have compiled FreeBSD-CURRENT amd64 (fresh checkout from today, git revision 46b12ff6d8ab4f736d155646ae32133083e1da05 -- from official FreeBSD github mirror) and installed it in custom location (DESTDIR=3D...= =2E make installworld). After chrooting to installed system and trying to compile any program I get the message: # gcc -o hello hello.c /usr/bin/ld: cannot find -lgcc_s Here is an output of 'ls -l' after chrooting to installed system: total 89076 -rwxr-xr-x 1 0 0 3352 19 =D0=BC=D0=B0=D0=B9 21:27 Scrt1.o drwxr-xr-x 2 0 0 512 20 =D0=BC=D0=B0=D0=B9 08:39 aout drwxr-xr-x 3 0 0 512 20 =D0=BC=D0=B0=D0=B9 08:39 compat -rwxr-xr-x 1 0 0 3296 19 =D0=BC=D0=B0=D0=B9 21:27 crt1.o -rwxr-xr-x 1 0 0 2408 19 =D0=BC=D0=B0=D0=B9 21:27 crtbegin.o =2E.. -rwxr-xr-x 1 0 0 56354 20 =D0=BC=D0=B0=D0=B9 09:31 libalias.a lrwxr-xr-x 1 0 0 71 20 =D0=BC=D0=B0=D0=B9 09:54 libalias.so -> /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libalias.so.7 -rwxr-xr-x 1 0 0 3200 20 =D0=BC=D0=B0=D0=B9 09:31 libalias_cuseeme.a =2E.. -rwxr-xr-x 1 0 0 17108 20 =D0=BC=D0=B0=D0=B9 09:31 libbegemot.a lrwxr-xr-x 1 0 0 73 20 =D0=BC=D0=B0=D0=B9 09:54 libbegemot.so -> /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libbegemot.so.4= =2E.. lrwxr-xr-x 1 root wheel 71 20 =D0=BC=D0=B0=D0=B9 21:31 libgcc_s.so -> /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libgcc_s.so.1 Links to libalias, libbegemot, libgcc_s point to respective libraries under /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib. But this path doesn't exist even on build system! In my setup, FreeBSD source tree is under /home/kibab/repos/freebsd-cap-git/freebsd, object directory is /home/kibab/repos/freebsd-cap-git/freebsd/obj, installation directory is /home/kibab/repos/freebsd-cap-git/freebsd/inst. As I understand, this problem will arise only if using non-standard object directory (not under /usr/obj), because symbolic links will otherwise point to some files under /usr/obj and required files will be actually there. This is still incorrect, but at least would seem to work.= =2E. I'm using custom src.conf with these options: WITHOUT_CLANG=3Dyes WITHOUT_GAMES=3Dyes WITHOUT_KERNEL_SYMBOLS=3Dyes WITHOUT_EXAMPLES=3Dyes WITHOUT_HTML=3Dyes WITHOUT_NCP=3Dyes WITHOUT_PROFILE=3Dyes WITHOUT_SENDMAIL=3Dyes WITHOUT_SYSINSTALL=3Dyes WITHOUT_VINUM=3Dyes WITHOUT_LIB32=3Dyes I tried a fresh build with clean object directory. Could anyone tell what may have gone wrong? --=20 Regards, Ilya Bakulin http://kibab.com xmpp://kibab612@jabber.ru --------------enigB6CC2C21E9FEF0514460187C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+5L9IACgkQo9vlj1oadwguogCdFBNUD2v5rZpE/Ut4P1jNcWJj CvwAnROAgZDFlUsZeFWSRsc9x36Ti5tW =9AtJ -----END PGP SIGNATURE----- --------------enigB6CC2C21E9FEF0514460187C-- From owner-freebsd-toolchain@FreeBSD.ORG Sun May 20 19:11:33 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33281065670 for ; Sun, 20 May 2012 19:11:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from springbank.echomania.com (andric.com [IPv6:2001:888:2003:1001:230:48ff:fe51:76b6]) by mx1.freebsd.org (Postfix) with ESMTP id 8AC6F8FC0A for ; Sun, 20 May 2012 19:11:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at springbank.echomania.com Received: from [192.168.1.6] (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by springbank.echomania.com (Postfix) with ESMTPSA id 794D4A7071; Sun, 20 May 2012 21:11:15 +0200 (CEST) Message-ID: <4FB941E5.2000307@FreeBSD.org> Date: Sun, 20 May 2012 21:11:33 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120425 Thunderbird/13.0 MIME-Version: 1.0 To: Bruce Cran References: <4FB92B18.7050003@cran.org.uk> In-Reply-To: <4FB92B18.7050003@cran.org.uk> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-toolchain Subject: Re: WITH_CLANG_IS_CC and unrecognized command line options X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2012 19:11:34 -0000 On 2012-05-20 19:34, Bruce Cran wrote:> I've done a fresh install of FreeBSD 9.0, upgraded to 10-CURRENT and > have just tried doing a rebuild with CLANG_IS_CC=yes in src.conf. > However there's an error building ncurses: > > cc: unrecognized option '-Qunused-arguments' > cc: unrecognized option '-Qunused-arguments' > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > cc1: error: unrecognized command line option "-Wno-empty-body" > cc1: error: unrecognized command line option "-Wno-string-plus-int" > cc1: error: unrecognized command line option "-Wno-tautological-compare" > cc1: error: unrecognized command line option "-Wno-parentheses-equality" > *** [make_hash] Error code 1 > *** [make_keys] Error code 1 > > Is there some configuration I've missed? Yeah, unfortunately, for the first buildworld to succeed you will also need to have: CC=clang CXX=clang++ CPP=clang-cpp in your src.conf. After installing world, the new /usr/bin/cc will then recognize the options. This is a problem that I haven't yet been able to solve... From owner-freebsd-toolchain@FreeBSD.ORG Mon May 21 10:36:35 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 44AC0106564A; Mon, 21 May 2012 10:36:35 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id E6BEF8FC18; Mon, 21 May 2012 10:36:32 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id 598D2D48012; Mon, 21 May 2012 12:36:25 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 32587654; Mon, 21 May 2012 12:36:24 +0200 (CEST) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 27046E39A; Mon, 21 May 2012 10:36:24 +0000 (UTC) Date: Mon, 21 May 2012 12:36:24 +0200 From: Jeremie Le Hen To: Ilya Bakulin Message-ID: <20120521103623.GD65093@felucia.tataz.chchile.org> Mail-Followup-To: Ilya Bakulin , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org References: <4FB92FCE.7050407@kibab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB92FCE.7050407@kibab.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 10:36:35 -0000 Hi, On Sun, May 20, 2012 at 07:54:22PM +0200, Ilya Bakulin wrote: > Hi all, > I have compiled FreeBSD-CURRENT amd64 (fresh checkout from today, git > revision 46b12ff6d8ab4f736d155646ae32133083e1da05 -- from official > FreeBSD github mirror) and installed it in custom location (DESTDIR=.... > make installworld). > > After chrooting to installed system and trying to compile any program I > get the message: > > # gcc -o hello hello.c > /usr/bin/ld: cannot find -lgcc_s > > Here is an output of 'ls -l' after chrooting to installed system: > > total 89076 > -rwxr-xr-x 1 0 0 3352 19 ?????? 21:27 Scrt1.o > drwxr-xr-x 2 0 0 512 20 ?????? 08:39 aout > drwxr-xr-x 3 0 0 512 20 ?????? 08:39 compat > -rwxr-xr-x 1 0 0 3296 19 ?????? 21:27 crt1.o > -rwxr-xr-x 1 0 0 2408 19 ?????? 21:27 crtbegin.o > ... > -rwxr-xr-x 1 0 0 56354 20 ?????? 09:31 libalias.a > lrwxr-xr-x 1 0 0 71 20 ?????? 09:54 libalias.so -> > /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libalias.so.7 > -rwxr-xr-x 1 0 0 3200 20 ?????? 09:31 libalias_cuseeme.a > ... > -rwxr-xr-x 1 0 0 17108 20 ?????? 09:31 libbegemot.a > lrwxr-xr-x 1 0 0 73 20 ?????? 09:54 libbegemot.so -> > /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libbegemot.so.4 > ... > lrwxr-xr-x 1 root wheel 71 20 ?????? 21:31 libgcc_s.so -> > /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libgcc_s.so.1 > > Links to libalias, libbegemot, libgcc_s point to respective libraries > under /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib. But > this path doesn't exist even on build system! > In my setup, FreeBSD source tree is under > /home/kibab/repos/freebsd-cap-git/freebsd, object directory is > /home/kibab/repos/freebsd-cap-git/freebsd/obj, installation directory is > /home/kibab/repos/freebsd-cap-git/freebsd/inst. > As I understand, this problem will arise only if using non-standard > object directory (not under /usr/obj), because symbolic links will > otherwise point to some files under /usr/obj and required files will be > actually there. This is still incorrect, but at least would seem to work... > > I'm using custom src.conf with these options: > WITHOUT_CLANG=yes > WITHOUT_GAMES=yes > WITHOUT_KERNEL_SYMBOLS=yes > WITHOUT_EXAMPLES=yes > WITHOUT_HTML=yes > WITHOUT_NCP=yes > WITHOUT_PROFILE=yes > WITHOUT_SENDMAIL=yes > WITHOUT_SYSINSTALL=yes > WITHOUT_VINUM=yes > WITHOUT_LIB32=yes > > I tried a fresh build with clean object directory. > Could anyone tell what may have gone wrong? Can you provide the exact commands you have used to create your chroot? -- Jeremie Le Hen Men are born free and equal. Later on, they're on their own. Jean Yanne From owner-freebsd-toolchain@FreeBSD.ORG Mon May 21 11:43:42 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F41B9106564A; Mon, 21 May 2012 11:43:41 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 65EB78FC08; Mon, 21 May 2012 11:43:40 +0000 (UTC) Received: from zugang.kibab.com (unknown [78.110.54.255]) by mx0.deglitch.com (Postfix) with ESMTPA id 538458FC27; Mon, 21 May 2012 15:43:39 +0400 (MSK) Received: from 80.154.94.20 (SquirrelMail authenticated user kibab) by zugang.kibab.com with HTTP; Mon, 21 May 2012 13:43:39 +0200 Message-ID: <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com> In-Reply-To: <20120521103623.GD65093@felucia.tataz.chchile.org> References: <4FB92FCE.7050407@kibab.com> <20120521103623.GD65093@felucia.tataz.chchile.org> Date: Mon, 21 May 2012 13:43:39 +0200 From: "Ilya Bakulin" To: "Ilya Bakulin" , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 11:43:42 -0000 On Mon, May 21, 2012 12:36 pm, Jeremie Le Hen wrote: > Can you provide the exact commands you have used to create your chroot? > Sure! 1. The build host is FreeBSD 8.2-RELEASE-p3 amd64 2. Directory where project resides ($PROJROOT): /home/kibab/repos/freebsd-cap-git 2. FreeBSD-CURRENT sources are in $PROJROOT/freebsd 3. Object directory is $PROJROOT/obj 4. Installation directory is $PROJROOT/inst 5. Building world: while in $PROJROOT/freebsd, I type: make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 buildworld ...After a while, build ends... 6. while in $PROJROOT/freebsd, type `sudo make buildenv`, after entering build environment I set nessesary env variables: PROJROOT=/home/kibab/repos/freebsd-cap-git MAKEOBJDIRPREFIX=/home/kibab/repos/freebsd-cap-git/obj DISTDIR=/home/kibab/repos/freebsd-cap-git/inst DESTDIR=/home/kibab/repos/freebsd-cap-git/inst 7. After that, type: make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 installworld Now I can chroot to newly installed system. FreeBSD 8.2 still allows running 10-CURRENT binaries, so that's not a problem: kibab@ssh%pwd /home/kibab/repos/freebsd-cap-git/inst kibab@ssh%sudo chroot `pwd` /bin/csh # ls -l /usr/lib | grep libgcc_s lrwxr-xr-x 1 0 0 71 May 20 17:31 libgcc_s.so -> /usr/obj/home/kibab/repos/freebsd-cap-git/freebsd/tmp/lib/libgcc_s.so.1 So the path to shared library is invalid! This setup was functional for about a year, and it was broken by recent update. I tried with clean object directory as well, this doesn't change anything. -- Regards, Ilya Bakulin http://kibab.com xmpp://kibab612@jabber.ru From owner-freebsd-toolchain@FreeBSD.ORG Tue May 22 12:27:26 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23F01106564A; Tue, 22 May 2012 12:27:26 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 979198FC08; Tue, 22 May 2012 12:27:22 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id AE6ECD48031; Tue, 22 May 2012 14:27:16 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 93F29A90; Tue, 22 May 2012 14:27:15 +0200 (CEST) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 6546FE191; Tue, 22 May 2012 12:27:15 +0000 (UTC) Date: Tue, 22 May 2012 14:27:15 +0200 From: Jeremie Le Hen To: Ilya Bakulin Message-ID: <20120522122715.GA23522@felucia.tataz.chchile.org> Mail-Followup-To: Ilya Bakulin , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org References: <4FB92FCE.7050407@kibab.com> <20120521103623.GD65093@felucia.tataz.chchile.org> <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 12:27:26 -0000 Ilya, On Mon, May 21, 2012 at 01:43:39PM +0200, Ilya Bakulin wrote: > On Mon, May 21, 2012 12:36 pm, Jeremie Le Hen wrote: > > Can you provide the exact commands you have used to create your chroot? > > > Sure! > > 1. The build host is FreeBSD 8.2-RELEASE-p3 amd64 > 2. Directory where project resides ($PROJROOT): > /home/kibab/repos/freebsd-cap-git > 2. FreeBSD-CURRENT sources are in $PROJROOT/freebsd > 3. Object directory is $PROJROOT/obj > 4. Installation directory is $PROJROOT/inst > > 5. Building world: while in $PROJROOT/freebsd, I type: > make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 > buildworld > ...After a while, build ends... > 6. while in $PROJROOT/freebsd, type `sudo make buildenv`, after entering > build environment I set nessesary env variables: > PROJROOT=/home/kibab/repos/freebsd-cap-git > MAKEOBJDIRPREFIX=/home/kibab/repos/freebsd-cap-git/obj > DISTDIR=/home/kibab/repos/freebsd-cap-git/inst > DESTDIR=/home/kibab/repos/freebsd-cap-git/inst > > 7. After that, type: > make __MAKE_CONF=$PROJROOT/make.conf SRCCONF=$PROJROOT/src.conf -j16 > installworld This is expected I think, as "make buildenv" defines $_SHLIBDIRPREFIX which is used to make the toolchain use libraries built during stage 4.2 of buildworld. Just run "make installworld" with the correct DESTDIR and your chroot will be fine. -- Jeremie Le Hen Men are born free and equal. Later on, they're on their own. Jean Yanne From owner-freebsd-toolchain@FreeBSD.ORG Wed May 23 11:23:32 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 439DF1065672; Wed, 23 May 2012 11:23:32 +0000 (UTC) (envelope-from webmaster@kibab.com) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id A30A98FC12; Wed, 23 May 2012 11:23:31 +0000 (UTC) Received: from zugang.kibab.com (unknown [78.110.54.255]) by mx0.deglitch.com (Postfix) with ESMTPA id E43F68FC27; Wed, 23 May 2012 15:23:26 +0400 (MSK) Received: from 80.154.94.20 (SquirrelMail authenticated user kibab) by zugang.kibab.com with HTTP; Wed, 23 May 2012 13:23:28 +0200 Message-ID: In-Reply-To: <20120522122715.GA23522@felucia.tataz.chchile.org> References: <4FB92FCE.7050407@kibab.com> <20120521103623.GD65093@felucia.tataz.chchile.org> <381ab8da04624264d621cb9f0f8d1ee0.squirrel@zugang.kibab.com> <20120522122715.GA23522@felucia.tataz.chchile.org> Date: Wed, 23 May 2012 13:23:28 +0200 From: "Ilya Bakulin" To: "Jeremie Le Hen" , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: Broken symbolic links in /usr/lib after compiling and installing -CURRENT X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2012 11:23:32 -0000 On Tue, May 22, 2012 2:27 pm, Jeremie Le Hen wrote: > This is expected I think, as "make buildenv" defines $_SHLIBDIRPREFIX > which is used to make the toolchain use libraries built during stage 4.2 > of buildworld. > > Just run "make installworld" with the correct DESTDIR and your chroot > will be fine. > It helped! Thank you very much! -- Regards, Ilya Bakulin http://kibab.com xmpp://kibab612@jabber.ru From owner-freebsd-toolchain@FreeBSD.ORG Thu May 24 12:25:27 2012 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82C36106566C for ; Thu, 24 May 2012 12:25:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 004DE8FC25 for ; Thu, 24 May 2012 12:25:26 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q4OCPJoa098835 for ; Thu, 24 May 2012 15:25:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q4OCPJAB065062 for ; Thu, 24 May 2012 15:25:19 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q4OCPISO065061 for toolchain@freebsd.org; Thu, 24 May 2012 15:25:18 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 24 May 2012 15:25:18 +0300 From: Konstantin Belousov To: toolchain@freebsd.org Message-ID: <20120524122518.GJ2358@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4aUSi4GuQtquuilV" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Subject: libunwind-based pstack(1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 12:25:27 -0000 --4aUSi4GuQtquuilV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I reimplemented pstack(1) using libunwind. The source is available at the git repository at http://people.freebsd.org/~kib/git/pstacku.git/ . To use it, you should also use git HEAD of the libunwind from http://libunwind.nongnu.org, I do not think that version from ports will work. Due to libunwind use, this pstack works on i386 and amd64. When libunwind/FreeBSD is ported to other arches, adding corresponding support to pstack is quite easy. So far, I tried to implement most of the features supported by original pstack, but there are limitations due to use of libunwind. Only libthr supported as the threading library, you probably get some funny results for libc_r and kse-based libpthread. The big unimplemented feature is coredump stack dumping, but libunwind only got support for Linux coredump backtracing a day ago, and I did not yet looked at porting this to FreeBSD. Lesser implemented but not properly working feature is the arguments=20 printing. I might fix this later. Enjoy. --4aUSi4GuQtquuilV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk++KK4ACgkQC3+MBN1Mb4guCQCgwhm3UJnAjKuO/xjAoF5CN45v JboAnREqRS7/qMY81gd7Y90VSQ/TLM1d =iCvy -----END PGP SIGNATURE----- --4aUSi4GuQtquuilV--