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--