From owner-freebsd-ia64@FreeBSD.ORG Thu Jun 24 10:57:28 2010 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B50FF106566C; Thu, 24 Jun 2010 10:57:28 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 6CA4F8FC1A; Thu, 24 Jun 2010 10:57:28 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1ORk7b-0007lr-3Q; Thu, 24 Jun 2010 11:57:27 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1ORk7a-0006KG-Q4; Thu, 24 Jun 2010 11:57:26 +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 o5OAvQRq010483; Thu, 24 Jun 2010 11:57:26 +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 o5OAvQ02010476; Thu, 24 Jun 2010 11:57:26 +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 11:57:26 +0100 From: Anton Shterenlikht To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20100624105726.GB10082@mech-cluster241.men.bris.ac.uk> References: <4C1A117A.9060608@dataix.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86vd98aj7p.fsf@ds4.des.no> 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-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 10:57:28 -0000 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. > > 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: > 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 $ which seems identical. 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