Skip to contentSkip to conversation

kernel 2.4.25-pre8 fails to build for sparc32

DISCUSSION Nicolas Boullis 2 participants 4 messages Feb 6, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

First of all, sorry if I'm doing something wrong with this report, I'm still quite a newbie on this list...

I just tried to build a sparc32 kernel for my Ultra5. (I know this is sparc64 hardware, but I need to test some things with a sparc32 kernel, and I think it's supposed to work fine...) Unfortunately, the build fails with the following message:

,----

| make[4]: Entering directory `/usr/src/linux-2.4.25-pre8_32/drivers/ide'
| gcc -D__KERNEL__ -I/usr/src/linux-2.4.25-pre8_32/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_iops  -DEXPORT_SYMTAB -c ide-iops.c
| ide-iops.c:119: error: conflicting types for `ide_insw'
| /usr/src/linux-2.4.25-pre8_32/include/asm/ide.h:107: error: previous declaration of `ide_insw'
| ide-iops.c:149: error: conflicting types for `ide_outsw'
| /usr/src/linux-2.4.25-pre8_32/include/asm/ide.h:138: error: previous declaration of `ide_outsw'
| ide-iops.c: In function `ide_mm_insw':
| ide-iops.c:196: warning: implicit declaration of function `__ide_mm_insw'
| ide-iops.c: In function `ide_mm_insl':
| ide-iops.c:206: warning: implicit declaration of function `__ide_mm_insl'
| ide-iops.c: In function `ide_mm_outsw':
| ide-iops.c:226: warning: implicit declaration of function `__ide_mm_outsw'
| ide-iops.c: In function `ide_mm_outsl':
| ide-iops.c:236: warning: implicit declaration of function `__ide_mm_outsl'
| make[4]: *** [ide-iops.o] Error 1
| make[4]: Leaving directory `/usr/src/linux-2.4.25-pre8_32/drivers/ide'

`----

Can anyone help me sove this failure?

TIA,

Nicolas

#1 lore raw
Quoted 7 lines · Nicolas Boullis

First of all, sorry if I'm doing something wrong with this report, I'm still quite a newbie on this list...

I just tried to build a sparc32 kernel for my Ultra5. (I know this is sparc64 hardware, but I need to test some things with a sparc32 kernel, and I think it's supposed to work fine...) Unfortunately, the build fails with the following message:

I think you're confused. You probably mean you want to use a 32-bit userland, which you can do just fine with a sparc64 kernel. The sparc32 kernel does not support ultrasparc CPUs nor any of the associated hardware in ultras. Please do not bother trying to make it work. Use ARCH=sparc64 and all will be well.

Signature · 1 line
Keith M Wesolowski
#2 lore raw
In reply to Nicolas Boullis

Hi,

Quoted 2 lines · Keith M Wesolowski

I think you're confused. You probably mean you want to use a 32-bit userland, which you can do just fine with a sparc64 kernel.

Well, I dont' think I am that confused. I'm currently using a 64-bit kernel, with 32-bit applications, and everything works fine.

But I'd like to check if XFS is as broken in 32-bit as in 64-bit (the 64-bit kernel freezes when a XFS restore is attemted), and to try a driver module in 32-bit mode. As far as I know, both require a 64-bit kernel...

Quoted 4 lines

The
sparc32 kernel does not support ultrasparc CPUs nor any of the associated hardware in ultras. Please do not bother trying to make it work. Use ARCH=sparc64 and all will be well.

Well, I thought that some distribution were using a 32-bit kernel for installation, even on sparc64... Was I wrong?

Regards,

Nicolas

#3 lore raw
In reply to Nicolas Boullis
Quoted 2 lines · Nicolas Boullis

Well, I thought that some distribution were using a 32-bit kernel for installation, even on sparc64... Was I wrong?

Yes. See arch/sparc/kernel/head.S:no_sun4u_here. Or about a hundred other places in the sparc32 code where ultras clearly couldn't possibly work.

Signature · 1 line
Keith M Wesolowski