From owner-freebsd-current@FreeBSD.ORG Mon May 21 10:36:35 2012 Return-Path: Delivered-To: freebsd-current@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-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: 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