Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2012 02:32:06 +0200
From:      Polytropon <freebsd@edvax.de>
To:        RW <rwmaillists@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Why can't I set my cpu type in kernel config ?
Message-ID:  <20120808023206.dd333046.freebsd@edvax.de>
In-Reply-To: <20120808010449.269b4e8b@gumby.homeunix.com>
References:  <alpine.BSF.2.00.1208070941260.4007@wojtek.tensor.gdynia.pl> <201208071914.q77JEUKq022088@mail.r-bonomi.com> <20120807232633.9ca51ca6.freebsd@edvax.de> <20120808010449.269b4e8b@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <wojtek@wojtek.tensor.gdynia.pl>
> > > > To: Chris Hill <chris@monochrome.org>
> > > > Cc: RW <rwmaillists@googlemail.com>, 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120808023206.dd333046.freebsd>