From owner-freebsd-current@FreeBSD.ORG Tue Sep 21 07:17:04 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0A5516A4CE for ; Tue, 21 Sep 2004 07:17:04 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1103343D45 for ; Tue, 21 Sep 2004 07:17:04 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (oak.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8L7H3OZ013973; Tue, 21 Sep 2004 10:17:03 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 25520-01; Tue, 21 Sep 2004 10:17:02 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8L7H2IH013970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Sep 2004 10:17:02 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i8L7H5SB089468; Tue, 21 Sep 2004 10:17:05 +0300 (EEST) (envelope-from ru) Date: Tue, 21 Sep 2004 10:17:04 +0300 From: Ruslan Ermilov To: Maksim Yevmenkin Message-ID: <20040921071704.GF89016@ip.net.ua> References: <414F4507.2010609@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QNDPHrPUIc00TOLW" Content-Disposition: inline In-Reply-To: <414F4507.2010609@savvis.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: current@freebsd.org Subject: Re: sparc64 buildworld is broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 21 Sep 2004 07:17:05 -0000 --QNDPHrPUIc00TOLW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Maksim, On Mon, Sep 20, 2004 at 02:00:55PM -0700, Maksim Yevmenkin wrote: > Hackers, >=20 > i'm trying to upgrade couple of sun netra's here and having troubles=20 > with 'make buildworld'. >=20 > netra1# uname -a > FreeBSD netra1 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Tue Feb 24=20 > 07:47:33 GMT 2004=20 > root@bobbi.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 >=20 > it always stops at '=3D=3D=3D> lib/libmagic (all)'. the last few lines ar= e=20 > below. complete buildworld output can be found at >=20 > http://mumu.org/~myevmenk/buildworld.txt >=20 Next time, please take a moment to compress it, OK? ;) > cc -DHAVE_CONFIG_H -DCOMPILE_ONLY -I/usr/src/lib/libmagic=20 > -I/usr/src/lib/libmagic/../../contrib/file -o mkmagic=20 > /usr/src/lib/libmagic/../../contrib/file/apprentice.c=20 > /usr/src/lib/libmagic/../../contrib/file/funcs.c=20 > /usr/src/lib/libmagic/../../contrib/file/magic.c=20 > /usr/src/lib/libmagic/../../contrib/file/print.c > /usr/obj/usr/src/sparc64/usr/bin/ld: cannot find -lc > *** Error code 1 >=20 > Stop in /usr/src/lib/libmagic. > *** Error code 1 >=20 What you see is that your libmagic's build-tools is rebuilt twice. First here (as expected): : -------------------------------------------------------------- : >>> stage 2.3: build tools : -------------------------------------------------------------- : =3D=3D=3D> lib/libmagic (obj,build-tools) : cc -DHAVE_CONFIG_H -DCOMPILE_ONLY -I/usr/src/lib/libmagic -I/usr/src/lib= /libmagic/../../contrib/file -o mkmagic /usr/src/lib/libmagic/../../contrib= /file/apprentice.c /usr/src/lib/libmagic/../../contrib/file/funcs.c /usr/sr= c/lib/libmagic/../../contrib/file/magic.c /usr/src/lib/libmagic/../../contr= ib/file/print.c And then here (where it's not supposed to be built): : -------------------------------------------------------------- : >>> stage 4.2: building libraries : -------------------------------------------------------------- : =3D=3D=3D> lib/libmagic (all) : cc -DHAVE_CONFIG_H -DCOMPILE_ONLY -I/usr/src/lib/libmagic -I/usr/src/lib= /libmagic/../../contrib/file -o mkmagic /usr/src/lib/libmagic/../../contrib= /file/apprentice.c /usr/src/lib/libmagic/../../contrib/file/funcs.c /usr/sr= c/lib/libmagic/../../contrib/file/magic.c /usr/src/lib/libmagic/../../contr= ib/file/print.c : /usr/obj/usr/src/sparc64/usr/bin/ld: cannot find -lc : *** Error code 1 :=20 : Stop in /usr/src/lib/libmagic. : *** Error code 1 Since mkmagic is a build tool, it's normally built in stage 2.3 only, using the host libraries and headers (/lib, /usr/lib and /usr/include). The fact that it attempts to do it again in stage 4.2 tells us something: most likely, your computer's date/time is set incorrectly. If it's set correctly, there're still a couple of possibilities: you touched some files that mkmagic depends on, causing make(1) to think it should rebuild it. Or some /usr/src files have modification date/time set to the future time. Please double-check and let me know. Most likely in this case that your computer's date/time is set incorrectly, as mkmagic does not appear in libmagic/.depend file. And no, this has nothing to do with 64bTT. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --QNDPHrPUIc00TOLW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBT9VwqRfpzJluFF4RAgtsAJ0YTLNSLFebhN0nCNWOXRmGBAY5rQCfUvsp E9R/H2U3QQt8CKFHIT/wLA0= =Fp6q -----END PGP SIGNATURE----- --QNDPHrPUIc00TOLW--