2003-07-06 09:21:15

by Hans Lambrechts

[permalink] [raw]
Subject: 2.4.22-pre2 and pre3: compile error in aic7xxx

Hi
I got following error, gcc is version 3.3.

make -C aic7xxx modules
make[3]: Entering directory `/usr/src/linux-2.4/drivers/scsi/aic7xxx'
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -I/usr/src/linux-2.4/drivers/scsi -Werror -nostdinc -iwithprefix include -DKBUILD_BASENAME=aic7xxx_osm -c -o aic7xxx_osm.o aic7xxx_osm.c
In file included from /usr/src/linux-2.4/include/linux/blk.h:4,
from aic7xxx_osm.h:63,
from aic7xxx_osm.c:122:
/usr/src/linux-2.4/include/linux/blkdev.h: In function `blk_finished_sectors':
/usr/src/linux-2.4/include/linux/blkdev.h:325: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_setup_tag_info_global':
aic7xxx_osm.c:1610: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_setup_tag_info':
aic7xxx_osm.c:1622: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_setup_dv':
aic7xxx_osm.c:1635: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `aic7xxx_setup':
aic7xxx_osm.c:1687: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_platform_abort_scbs':
aic7xxx_osm.c:2164: warning: comparison between signed and unsigned
aic7xxx_osm.c:2171: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_user_tagdepth':
aic7xxx_osm.c:3556: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_user_dv_setting':
aic7xxx_osm.c:3585: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_send_async':
aic7xxx_osm.c:4088: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_done':
aic7xxx_osm.c:4209: warning: comparison between signed and unsigned
aic7xxx_osm.c: In function `ahc_linux_handle_scsi_status':
aic7xxx_osm.c:4334: warning: comparison between signed and unsigned
aic7xxx_osm.c: At top level:
/usr/src/linux-2.4/include/linux/module.h:299: warning: `__module_kernel_version' defined but not used
aic7xxx_osm.c:451: warning: `__module_license' defined but not used
make[3]: *** [aic7xxx_osm.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4/drivers/scsi/aic7xxx'
make[2]: *** [_modsubdir_aic7xxx] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4/drivers'
make: *** [_mod_drivers] Error 2


2003-07-07 23:08:39

by Sid Boyce

[permalink] [raw]
Subject: RE: 2.4.22-pre2 and pre3: compile error in aic7xxx

Also in 2.4.22-pre3-ac1, I'm seeing the same error using SuSE 8.2 gcc-3.3.
Regards
Sid.
---
Sid Boyce ... hamradio G3VBV ... Cessna/Warrior Pilot
Linux only shop

2003-07-08 05:51:10

by Margit Schubert-While

[permalink] [raw]
Subject: RE: 2.4.22-pre2 and pre3: compile error in aic7xxx

The GCC 3.3 PRERELEASE from Suse 8.2 is broken.

Update to the release version of GCC 3.3.

You can get it here:
ftp://ftp.suse.com/pub/projects/gcc/8.2

Margit

2003-07-08 11:09:24

by Mikael Pettersson

[permalink] [raw]
Subject: Re: 2.4.22-pre2 and pre3: compile error in aic7xxx

On Sun, 6 Jul 2003 11:35:00 +0200, Hans Lambrechts wrote:
>I got following error, gcc is version 3.3.
>
>make -C aic7xxx modules
>make[3]: Entering directory `/usr/src/linux-2.4/drivers/scsi/aic7xxx'
>gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -I/usr/src/linux-2.4/drivers/scsi -Werror -nostdinc -iwithprefix include -DKBUILD_BASENAME=aic7xxx_osm -c -o aic7xxx_osm.o aic7xxx_osm.c
>In file included from /usr/src/linux-2.4/include/linux/blk.h:4,
> from aic7xxx_osm.h:63,
> from aic7xxx_osm.c:122:
>/usr/src/linux-2.4/include/linux/blkdev.h: In function `blk_finished_sectors':
>/usr/src/linux-2.4/include/linux/blkdev.h:325: warning: comparison between signed and unsigned

aic7xxx's Makefile adds -Werror to CFLAGS ...

2003-07-09 08:41:08

by kees.bakker

[permalink] [raw]
Subject: Re: 2.4.22-pre2 and pre3: compile error in aic7xxx

>>>>> Hans Lambrechts writes:
>
> Hi
> I got following error, gcc is version 3.3.

Good chance that you're on a SuSE 8.2 system. Although it says gcc 3.3 it
is in fact a beta of gcc 3.3. I was told (by Adrian Bunk) that the final
version 3.3 does not give these warnings. And remember, there is a -Werror
in the Makefile which makes the compilation to give an exit code 1 in case
of warnings.

Kees