Skip to contentSkip to conversation

kernel compile problems on sparc32

DISCUSSION kaffe 2 participants 2 messages Jan 1, 2006 – Jan 31, 2006

lore
Share & tools
lore

kaffe

author
#0 lore raw

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

#1 lore raw

From: kaffe <[email protected]>
Date: Sun, 1 Jan 2006 23:33:11 +0100

Quoted 5 lines

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

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.