Skip to contentSkip to conversation

aic7(censored) compile error

DISCUSSION Stian Jordet 2 participants 3 messages May 20, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

Am I just blind, or haven't this been reported? Haven't been able to compile 2.5.69 since bk4, I think. This is with gcc-3.3.

make -f scripts/Makefile.build obj=drivers/scsi/aic7xxx
gcc -Wp,-MD,drivers/scsi/aic7xxx/.aic7xxx_osm.o.d -D__KERNEL__
-Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc -iwithprefix include -Idrivers/scsi -Werror -DKBUILD_BASENAME=aic7xxx_osm -DKBUILD_MODNAME=aic7xxx -c -o drivers/scsi/aic7xxx/aic7xxx_osm.o drivers/scsi/aic7xxx/aic7xxx_osm.c drivers/scsi/aic7xxx/aic7xxx_osm.c: In function `ahc_linux_map_seg':
drivers/scsi/aic7xxx/aic7xxx_osm.c:767: warning: integer constant is too large for "long" type
make[3]: *** [drivers/scsi/aic7xxx/aic7xxx_osm.o] Error 1 make[2]: *** [drivers/scsi/aic7xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Best regards,
Stian

#1 lore raw

tir, 20.05.2003 kl. 22.40 skrev Stian Jordet:

Quoted 4 lines

Hello,

Am I just blind, or haven't this been reported? Haven't been able to compile 2.5.69 since bk4, I think. This is with gcc-3.3.

Hmm. I fixed this with changing line 767 to:

next_len = 0x100000000LL - (addr & 0xFFFFFFFF);

Don't know if this is the right fix, but it works :)

Quoted 7 lines

make -f scripts/Makefile.build obj=drivers/scsi/aic7xxx
gcc -Wp,-MD,drivers/scsi/aic7xxx/.aic7xxx_osm.o.d -D__KERNEL__

(quoted diff) +0 -5
-Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=pentium3 -Iinclude/asm-i386/mach-default -fomit-frame-pointer
-nostdinc -iwithprefix include  -Idrivers/scsi -Werror 
-DKBUILD_BASENAME=aic7xxx_osm -DKBUILD_MODNAME=aic7xxx -c -o
Quoted 8 lines

drivers/scsi/aic7xxx/aic7xxx_osm.o drivers/scsi/aic7xxx/aic7xxx_osm.c drivers/scsi/aic7xxx/aic7xxx_osm.c: In function `ahc_linux_map_seg':
drivers/scsi/aic7xxx/aic7xxx_osm.c:767: warning: integer constant is too large for "long" type
make[3]: *** [drivers/scsi/aic7xxx/aic7xxx_osm.o] Error 1 make[2]: *** [drivers/scsi/aic7xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Best regards,
Stian

#2 lore raw
Quoted 6 lines
Quoted 4 lines

Hello,

Am I just blind, or haven't this been reported? Haven't been able to compile 2.5.69 since bk4, I think. This is with gcc-3.3.

Hmm. I fixed this with changing line 767 to:

I believe this has already been fixed in TOT, but if not, I have released the latest csets from my BK trees which address this and other issues. I'm still in the process of integrating some other changes, so I will be release another update later this week.

http://people.FreeBSD.org/~gibbs/linux/SRC/

--
Justin