[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2.4.2-rc6 sun4u root partition mounting failures

On Mon, Jun 02, 2003 at 10:05:19AM -0400, satadru@umich.edu wrote:
> Fixed!  The problem with not being able to get a working kernel turned out 
> to be a problem with either my gcc-3.3 installation or version > 7.x of 
> kernel-package.
> For some reason, sparc64-linux-gcc was not being used to compile the kernel 
> (even though egcs64 was/is installed).
> Uninstalling gcc-3.3 & kernel-package (by reverting my apt sources.list to 
> stable only) and reinstalling gcc-2.95 and the older 7.x version of 
> kernel-package enabled me to compile a working kernel.
> Is this a bug in either kernel-package or the gcc-3.3 packaging, or am I 
> doing something wrong?

gcc-3.3 is not suitable for compiling kernels. I wouldn't call it a bug.
The issue is that the kernel build files check if "gcc" is capable of
building 64-bit, and if so, it uses it.

It should just use sparc64-linux-gcc. You could have done this a lot
easier by editing arch/sparc64/Makefile in the kernel sources and
commenting out the CC= line and adding one for "CC=sparc64-linux-gcc".

Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/

Reply to: