Cannot recompile x86_64 kernel on installed F9 i686
Jarod Wilson
jarod at redhat.com
Mon Oct 6 15:45:49 UTC 2008
On Monday 06 October 2008 11:24:07 Joshua C. wrote:
> 2008/10/6 Jarod Wilson <jarod at redhat.com>:
> > On Monday 06 October 2008 04:23:12 Joshua C. wrote:
> >> I tried to recompile the x86_64 version of the F10beta kernel on my F9
> >> i686. And this is the error message I got
> >
> > [...]
> >
> >> scripts/mod/empty.c:1: error: code model 'kernel' not supported in the
> >> 32 bit mode
> >> scripts/mod/empty.c:1: sorry, unimplemented: 64-bit mode not compiled in
> >> make[2]: *** [scripts/mod/empty.o] Error 1
> >> make[1]: *** [scripts/mod] Error 2
> >> make[1]: *** Waiting for unfinished jobs....
> >> make: *** [scripts] Error 2
> >
> > [...]
> >
> >> Recompiling the i686 kernel works fine but not the x86_64. Tried also
> >> the lastes kernel in koji and got the same error. How to recompile it?
> >
> > x86_64 is backwards-compatible with i686. i686 is not forwards-compatible
> > with x86_64. Might be doable with a cross-compiler env., but certainly
> > not doable the way you're trying to do it.
> >
>
> I have a x86_64 processor (Turion 64 X2 TL-60) but I've installed the
> x86 version of fedora.
The 32-bit compiler can't build 64-bit binaries. Doesn't matter that your cpu
is 64-bit if you're running it in 32-bit mode. Apparently, the 32-bit compiler
*can* somehow be made to build 64-bit binaries too, but the Fedora gcc isn't
set up for it.
> Any ideas how is this going to work with qemu?
Very slowly?
> What should I install? Any cross-compilers?
I'd just install x86_64 Fedora. Not aware of anyone packaging a cross-compiler
for x86_64 builds on i686. Most people just run x86_64 if they want to build
both x86_64 and i686.
--
Jarod Wilson
jarod at redhat.com
More information about the fedora-devel-list
mailing list