From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 00:32:08 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FD12106566B for ; Wed, 8 Aug 2012 00:32:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 4D2CF8FC19 for ; Wed, 8 Aug 2012 00:32:08 +0000 (UTC) Received: from r56.edvax.de (port-92-195-22-218.dynamic.qsc.de [92.195.22.218]) by mx01.qsc.de (Postfix) with ESMTP id AC75A3CF02; Wed, 8 Aug 2012 02:32:06 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q780W6Nq008513; Wed, 8 Aug 2012 02:32:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 8 Aug 2012 02:32:06 +0200 From: Polytropon To: RW Message-Id: <20120808023206.dd333046.freebsd@edvax.de> In-Reply-To: <20120808010449.269b4e8b@gumby.homeunix.com> References: <201208071914.q77JEUKq022088@mail.r-bonomi.com> <20120807232633.9ca51ca6.freebsd@edvax.de> <20120808010449.269b4e8b@gumby.homeunix.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Why can't I set my cpu type in kernel config ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2012 00:32:08 -0000 On Wed, 8 Aug 2012 01:04:49 +0100, RW wrote: > On Tue, 7 Aug 2012 23:26:33 +0200 > Polytropon wrote: > > > On Tue, 7 Aug 2012 14:14:30 -0500 (CDT), Robert Bonomi wrote: > > > > From owner-freebsd-questions@freebsd.org Tue Aug 7 02:44:36 2012 > > > > Date: Tue, 7 Aug 2012 09:41:41 +0200 (CEST) > > > > From: Wojciech Puchar > > > > To: Chris Hill > > > > Cc: RW , freebsd-questions@freebsd.org > > > > Subject: Re: Why can't I set my cpu type in kernel config ? > > > > > > > > >> That's the amd64 (64-bit) GENERIC > > > > > > > > > > Jason: It looks like you may have installed the 64-bit > > > > > distribution on your > > > > > > > > nonsense. 64-bit distribution doesn't run on 32-bit computer. > > > > > > *PRECISELY* why the OP is having problems. He _is_ trying to > > > build amd64 kernel on 34-bit only processor. > > > > > > Unlike "Wojciech the infallible" people _do_ get things wrong on > > > occasion. > > > > That's why the statement "you may have installed the 64-bit > > distribution" Wojciech refered to as "nonsense": On a 32 bit > > system, the 64 bis OS version should not run. So the OP seems > > to be using the (correct!) 32 bit OS version, but trying to > > compile the 64 bit kernel (from /sys/amd64/conf instead of > > from /sys/i386/conf). Therefore, it's a matter of having > > chosen the wrong kernel config, not the wrong OS version. :-) > > The architecture isn't defined in GENERIC, it defaults to what's > already installed. Yes, I think this is done in /usr/src/Makefile.inc1 where the correct GENERIC file in /usr/src/sys/i386/conf or /usr/src/sys/amd64/conf is then selected. > You have to explicitly set it to cross-build, and I > find it hard to believe that someone would set TARGET/TARGET_ARCH to > amd64 by mistake In case of a crossbuild, I assume the system would also do the proper "TARGET magic" to use the GENERIC corresponding to the requested architecture. > I think it's likely that it is a 64-bit installation. Not sure about that. How could the amd64 OS be installed and run on a i386 machine? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...