Re: kernel compile.again.
On Wednesday 25 October 2006 09:08, C_Wakefield wrote:
> Still trying to understand why I can't seem to run any kernels I compile.
> Been trying since 2.6.17 on my new amd64-X2 and since then the only kernel
> that'll boot is a 2.6.16-2-amd64-k8-smp.
> I've tried using the debian amd64 kernel conifig on most kernels as well,
> with no joy.
> Kind of at the end of the rope here with ideas. NOW I'm beginning to think
> it's the compiler, 4.1? I've noticed that 2.6.16-2 is compiled with 4.0.
> How do I specify gcc 4.0 instead of 4.1 to compile a kernel?
I would expect it to be part of the "alternatives" mechanism, but it seems its
not. there is a /etc/alternatives/cc file, but its a link to /usr/bin/gcc.
/usr/bin/gcc is again a link, this time to /usr/bin/gcc-4.1 in my case. I have
successfully compiled sources that needed gcc-4.0 by changing the links
of /usr/bin/gcc and /usr/bin/g++ to point to the 4.0 version. I guess you can
try the same brute trick.