From owner-freebsd-sparc64@FreeBSD.ORG Thu Feb 5 06:07:46 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64FA916A4CE for ; Thu, 5 Feb 2004 06:07:46 -0800 (PST) Received: from electra.cse.Buffalo.EDU (electra.cse.Buffalo.EDU [128.205.32.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1223643D41 for ; Thu, 5 Feb 2004 06:07:42 -0800 (PST) (envelope-from kensmith@cse.Buffalo.EDU) Received: from electra.cse.Buffalo.EDU (kensmith@localhost [127.0.0.1]) i15E7dTr011005; Thu, 5 Feb 2004 09:07:39 -0500 (EST) Received: (from kensmith@localhost) by electra.cse.Buffalo.EDU (8.12.10/8.12.9/Submit) id i15E7d8D011004; Thu, 5 Feb 2004 09:07:39 -0500 (EST) Date: Thu, 5 Feb 2004 09:07:39 -0500 From: Ken Smith To: "Goodleaf, John M" Message-ID: <20040205140739.GC9911@electra.cse.Buffalo.EDU> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: "'freebsd-sparc64@freebsd.org'" Subject: Re: new to sparc64 -- build problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 14:07:46 -0000 On Wed, Feb 04, 2004 at 09:48:29AM -0800, Goodleaf, John M wrote: > I'm trying to buildworld (CURRENT) on a Sun Ultra 5. I always hit the > following error, regardless of the cvsup date: > > cc -O -pipe -mcpu=ultrasparc -I. -static -DGENERATOR_FILE > -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_CONFIG_H > -DPREFIX=\"/usr\" > -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools > -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools > -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc > -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config > -I/usr/obj/usr/src/sparc64/legacy/usr/include -c > /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gencheck.c > In file included from hconfig.h:1, > from /usr/src/contrib/gcc/gencheck.c:21: > /usr/src/gnu/usr.bin/cc/cc_tools/auto-host.h:320:2: #error "I don't > know what arch this is." > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/cc/cc_tools. > *** Error code 1 > > I've tried setting the __sparc64__ and defining environment > variables like MACHINE_ARCH, but it just doesn't work. Is this > covered somewhere in some documentation I've not seen? I did a cvsup to -current last night and started up a buildworld. That succeeded. From the log file I got from the build the output for the file you list above came out as: cc -O -pipe -I. -static -DGENERATOR_FILE -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -I/usr/obj/usr/src/sparc64/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gencheck.c Yours has an extra "-mcpu=ultrasparc", that is the only difference I see. Is there anything in your environment (environment variables, or maybe something in /etc/make.conf) that might account for where that is coming from? Or was the run you got this message from one where you had tried setting environment variables yourself? -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel |