From owner-freebsd-current@FreeBSD.ORG Thu Jun 24 11:33:52 2010 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 89C45106566C; Thu, 24 Jun 2010 11:33:52 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 408238FC14; Thu, 24 Jun 2010 11:33:51 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1ORkgp-0002EO-6W; Thu, 24 Jun 2010 12:33:51 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1ORkgp-0005EE-1t; Thu, 24 Jun 2010 12:33:51 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id o5OBXoXA071584; Thu, 24 Jun 2010 12:33:50 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id o5OBXo9T071583; Thu, 24 Jun 2010 12:33:50 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 24 Jun 2010 12:33:50 +0100 From: Anton Shterenlikht To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20100624113350.GA54493@mech-cluster241.men.bris.ac.uk> References: <20100618085018.GA94427@mech-cluster241.men.bris.ac.uk> <4C1B63A1.3010604@dataix.net> <8639wgfnrk.fsf@ds4.des.no> <20100621150445.GA50194@mech-cluster241.men.bris.ac.uk> <754D875E-48AB-423D-B309-9415EA2867E4@mac.com> <20100623130534.GA69821@mech-cluster241.men.bris.ac.uk> <86d3vhomot.fsf@ds4.des.no> <20100624083635.GB9272@mech-cluster241.men.bris.ac.uk> <86vd98aj7p.fsf@ds4.des.no> <20100624105726.GB10082@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20100624105726.GB10082@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org, freebsd-ia64@freebsd.org Subject: Re: r209240 ia64 -> buildworld -> undefined reference to `lzma_physmem' 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: Thu, 24 Jun 2010 11:33:52 -0000 On Thu, Jun 24, 2010 at 11:57:26AM +0100, Anton Shterenlikht wrote: > On Thu, Jun 24, 2010 at 11:11:22AM +0200, Dag-Erling Smørgrav wrote: > > Anton Shterenlikht writes: > > > # find /usr/obj/usr/src -name liblzma.a > > > /usr/obj/usr/src/tmp/usr/lib/liblzma.a > > > /usr/obj/usr/src/lib/liblzma/liblzma.a > > > # diff /usr/obj/usr/src/tmp/usr/lib/liblzma.a /usr/obj/usr/src/lib/liblzma/liblzma.a > > > # > > > # nm /usr/obj/usr/src/lib/liblzma/liblzma.a | grep physmem > > > hardware_physmem.o: > > > 0000000000000000 T lzma_physmem > > > U lzma_tuklib_physmem > > > tuklib_physmem.o: > > > 0000000000000000 T lzma_tuklib_physmem > > > # > > > # nm /usr/lib/liblzma.a | grep physmem > > > nm: '/usr/lib/liblzma.a': No such file > > > # > > > > > > Did you mean /usr/local/lib/liblzma.a ? > > > > No, I meant /usr/lib/liblzma.a. > > This file doesn't exist on either of > my other two ia64 boxes, where this problem > is not present. I appologise. The file does exist on the other 2 ia64 boxes: % nm /usr/lib/liblzma.a | grep physmem hardware_physmem.o: 0000000000000000 T lzma_physmem U lzma_tuklib_physmem tuklib_physmem.o: 0000000000000000 T lzma_tuklib_physmem % sorry about this, I looked in the wrong place. > > > > Do you have any other compilers installed? > > No, I don't think so, gcc from ports don't build > on ia64, at least 43/44/45 don't. I haven't > tried 46 yet. Obviosly clang doesn't build either. > > > > > On a machine where make buildworld failed, do > > > > % cd /usr/src > > % make buildenv > > % echo $PATH > > % which cc > > % cc --version > > % strings $(which cc) | grep -w tmp > > > # cd /usr/src/ > # make buildenv > Entering world for ia64:ia64 > # echo $PATH > /usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin > # which cc > /usr/obj/usr/src/tmp/usr/bin/cc > # cc --version > cc (GCC) 4.2.1 20070719 [FreeBSD] > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > # strings $(which cc) | grep -w tmp > /usr/obj/usr/src/tmp/usr/bin/ > /usr/obj/usr/src/tmp/usr/libdata/gcc/ > /usr/obj/usr/src/tmp/usr/lib/ > /usr/obj/usr/src/tmp/usr/libexec/ > /usr/obj/usr/src/tmp/usr > /var/tmp/ > /var/tmp > /usr/tmp > /tmp > # > > Compare this with the output from another ia64 -current, > where this problem is not present: > I rechecked this again, seems correct. % cd /usr/src/ % make buildenv Entering world for ia64:ia64 $ echo $PATH /usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin $ which cc /usr/obj/usr/src/tmp/usr/bin/cc $ cc --version cc (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ strings $(which cc) | grep -w tmp /usr/obj/usr/src/tmp/usr/bin/ /usr/obj/usr/src/tmp/usr/libdata/gcc/ /usr/obj/usr/src/tmp/usr/lib/ /usr/obj/usr/src/tmp/usr/libexec/ /usr/obj/usr/src/tmp/usr /var/tmp/ /var/tmp /usr/tmp /tmp $ many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423