kernel compile problems on sparc32
Hello,
compiling latest gentoo kernel on sparc 32bit, 2.4.32, it didn't build. The fix is trivial and I was asked to report it here.
in arch/sparc32/math/math.c around lines 330 there are two #ifdef's with debugging outputs, they are in the default: section of a switch(), since if debug is disabled no statement exist, compilation will file. My suggestion for a fix is simply to add
#ifdef ----
--debug statement--
#else
;#endif
I found two of these occurrences and I did not make a patch but just fixed my file, thus sorry for the "wordy" description.
Cheers,
Riccardo
From: kaffe <[email protected]>
Date: Sun, 1 Jan 2006 23:33:11 +0100
Quoted 5 lines
in
arch/sparc32/math/math.caround lines 330 there are two #ifdef's with debugging outputs, they are in the default: section of aswitch(), since if debug is disabled no statement exist, compilation will file. My suggestion for a fix is simply to add
Quoted 8 lines
#ifdef ----
--debug statement--#else ;#endif
I found two of these occurrences and I did not make a patch but just fixed my file, thus sorry for the "wordy" description.
Thanks, I'm just going to delete these "default" cases from the switch entirely in order to fix this. If type is not initialized then we get a debug message and an emulation failure later in the function, so these default cases are totally unnecessary.