2004-11-24 13:49:47

by Justin Piszcz

[permalink] [raw]
Subject: Kernel 2.6.9 SCSI driver compile error w/gcc-3.4.2.

Under slackware-current, gcc-3.4.2.

root@p500b:/usr/src/linux# make modules
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] drivers/scsi/cpqfcTScontrol.o
drivers/scsi/cpqfcTScontrol.c:609:2: #error This is too much stack
drivers/scsi/cpqfcTScontrol.c:721:2: #error This is too much stack
make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
root@p500b:/usr/src/linux# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.2/specs
Configured with: ../gcc-3.4.2/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.4.2
root@p500b:/usr/src/linux#


2004-11-24 17:17:13

by Justin Piszcz

[permalink] [raw]
Subject: Re: Kernel 2.6.9 SCSI driver compile error w/gcc-3.4.2.

Ahh, ok thanks!

On Wed, 24 Nov 2004, Adrian Bunk wrote:

> On Wed, Nov 24, 2004 at 08:13:06AM -0500, Justin Piszcz wrote:
>> Under slackware-current, gcc-3.4.2.
>>
>> root@p500b:/usr/src/linux# make modules
>> CHK include/linux/version.h
>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>> CC [M] drivers/scsi/cpqfcTScontrol.o
>> drivers/scsi/cpqfcTScontrol.c:609:2: #error This is too much stack
>> drivers/scsi/cpqfcTScontrol.c:721:2: #error This is too much stack
>> make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
>> ...
>
> This compile error (as well as the other two compile errors you
> reported) comes from the fact, that you disabled the option
>
> Code maturity level options
> Prompt for development and/or incomplete code/drivers
> Select only drivers expected to compile cleanly
>
>
> It's known that some drivers do not compile and marked in the Kconfig
> files. But if you choose to try to compile them anyway, they don't
> compile.
>
>
> cu
> Adrian
>
> --
>
> "Is there not promise of rain?" Ling Tan asked suddenly out
> of the darkness. There had been need of rain for many days.
> "Only a promise," Lao Er said.
> Pearl S. Buck - Dragon Seed
>

2004-11-24 17:25:46

by Adrian Bunk

[permalink] [raw]
Subject: Re: Kernel 2.6.9 SCSI driver compile error w/gcc-3.4.2.

On Wed, Nov 24, 2004 at 08:13:06AM -0500, Justin Piszcz wrote:
> Under slackware-current, gcc-3.4.2.
>
> root@p500b:/usr/src/linux# make modules
> CHK include/linux/version.h
> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> CC [M] drivers/scsi/cpqfcTScontrol.o
> drivers/scsi/cpqfcTScontrol.c:609:2: #error This is too much stack
> drivers/scsi/cpqfcTScontrol.c:721:2: #error This is too much stack
> make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
>...

This compile error (as well as the other two compile errors you
reported) comes from the fact, that you disabled the option

Code maturity level options
Prompt for development and/or incomplete code/drivers
Select only drivers expected to compile cleanly


It's known that some drivers do not compile and marked in the Kconfig
files. But if you choose to try to compile them anyway, they don't
compile.


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2004-11-25 02:47:52

by Adrian Bunk

[permalink] [raw]
Subject: Re: Kernel 2.6.9 SCSI driver compile error w/gcc-3.4.2.

On Wed, Nov 24, 2004 at 01:35:37PM -0500, [email protected] wrote:
> >> SNIP <<
>
> >> root@p500b:/usr/src/linux# make modules
> >> CHK include/linux/version.h
> >> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
> >> CC [M] drivers/scsi/cpqfcTScontrol.o
> >> drivers/scsi/cpqfcTScontrol.c:609:2: #error This is too much stack
> >> drivers/scsi/cpqfcTScontrol.c:721:2: #error This is too much stack
> >> make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
> >>...
>
> >> SNIP <<
> > It's known that some drivers do not compile and marked in the Kconfig
> > files. But if you choose to try to compile them anyway, they don't
> > compile.
> > cu
> >Adrian
>
> The problem that I have with this, isn't that the driver is broken (it works
> under 2.4), It isn't labeled as broken in the menuconfig, if you choose the
> option to include the dubious drivers. Unfortunately, I do need this

It's marked as BROKEN, and if you choose the option to enable broken
drivers, you are offered to compile broken drivers.

> particular driver and hope someone steps up to the plate to take care of it.

If this is the only problem in this driver, the fix wasn't too hard.
But considering how long this problem is unfixed, the driver doesn't
seem to be in a good shape...

> Dan

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

2004-11-27 07:30:21

by Weigert, Daniel

[permalink] [raw]
Subject: RE: Kernel 2.6.9 SCSI driver compile error w/gcc-3.4.2.

>> SNIP <<

>> root@p500b:/usr/src/linux# make modules
>> CHK include/linux/version.h
>> make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
>> CC [M] drivers/scsi/cpqfcTScontrol.o
>> drivers/scsi/cpqfcTScontrol.c:609:2: #error This is too much stack
>> drivers/scsi/cpqfcTScontrol.c:721:2: #error This is too much stack
>> make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
>>...

>> SNIP <<
> It's known that some drivers do not compile and marked in the Kconfig
> files. But if you choose to try to compile them anyway, they don't
> compile.
> cu
>Adrian

The problem that I have with this, isn't that the driver is broken (it works
under 2.4), It isn't labeled as broken in the menuconfig, if you choose the
option to include the dubious drivers. Unfortunately, I do need this
particular driver and hope someone steps up to the plate to take care of it.

Dan