2002-07-29 20:15:19

by Stefan Kleyer

[permalink] [raw]
Subject: 2.4.19rc3-ac4 parse error

Hi,

I get this error while compiling:

make[4]: Entering directory `/usr/src/linux.19rc3-ac4-sk/drivers/char/drm'
gcc -D__KERNEL__ -I/usr/src/linux.19rc3-ac4-sk/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include -DKBUILD_BASENAME=r128_drv -c -o r128_drv.o r128_drv.c
In file included from r128_drv.c:36:
ati_pcigart.h: In function `r128_ati_pcigart_init':
ati_pcigart.h:96: parse error before `)'
ati_pcigart.h:102: parse error before `)'
ati_pcigart.h:107: parse error before `)'
ati_pcigart.h:115: parse error before `)'
ati_pcigart.h:135: parse error before `)'
ati_pcigart.h: In function `r128_ati_pcigart_cleanup':
ati_pcigart.h:173: parse error before `)'
In file included from r128_drv.c:80:
drm_context.h: In function `r128_context_switch':
drm_context.h:228: parse error before `)'
drm_context.h: In function `r128_context_switch_complete':
drm_context.h:259: parse error before `)'
drm_context.h: In function `r128_addctx':
drm_context.h:319: parse error before `)'
In file included from r128_drv.c:83:
drm_drv.h: In function `r128_setup':
drm_drv.h:323: parse error before `)'
drm_drv.h: In function `r128_takedown':
drm_drv.h:345: parse error before `)'
drm_drv.h: In function `drm_count_cards':
drm_drv.h:504: parse error before `)'
drm_drv.h: In function `drm_init':
drm_drv.h:537: parse error before `)'
drm_drv.h:595: parse error before `)'
drm_drv.h: In function `drm_cleanup':
drm_drv.h:622: parse error before `)'
drm_drv.h:627: parse error before `)'
drm_drv.h: In function `r128_ioctl':
drm_drv.h:888: parse error before `)'
drm_drv.h: In function `r128_unlock':
drm_drv.h:1043: parse error before `)'
In file included from r128_drv.c:104:
drm_fops.h: In function `r128_read':
drm_fops.h:135: parse error before `)'
drm_fops.h:143: parse error before `)'
drm_fops.h:148: parse error before `)'
drm_fops.h: In function `r128_write_string':
drm_fops.h:206: parse error before `)'
In file included from r128_drv.c:107:
drm_lock.h: In function `r128_block':
drm_lock.h:38: parse error before `)'
drm_lock.h: In function `r128_unblock':
drm_lock.h:45: parse error before `)'
drm_lock.h: In function `r128_flush_queue':
drm_lock.h:120: parse error before `)'
drm_lock.h: In function `r128_flush_unblock_queue':
drm_lock.h:151: parse error before `)'
drm_lock.h: In function `r128_flush_block_and_flush':
drm_lock.h:170: parse error before `)'
drm_lock.h: In function `r128_flush_unblock':
drm_lock.h:189: parse error before `)'
drm_lock.h: In function `r128_finish':
drm_lock.h:212: parse error before `)'
In file included from r128_drv.c:109:
drm_proc.h: In function `r128_proc_init':
drm_proc.h:87: parse error before `)'
In file included from r128_drv.c:111:
drm_stub.h: In function `r128_stub_register':
drm_stub.h:125: parse error before `)'
drm_stub.h:133: parse error before `)'
drm_stub.h:137: parse error before `)'
make[4]: *** [r128_drv.o] Error 1
make[4]: Leaving directory `/usr/src/linux.19rc3-ac4-sk/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux.19rc3-ac4-sk/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory `/usr/src/linux.19rc3-ac4-sk/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux.19rc3-ac4-sk/drivers'
make: *** [_dir_drivers] Error 2

Bye, Stefan


2002-07-29 20:35:51

by Marek Habersack

[permalink] [raw]
Subject: Re: 2.4.19rc3-ac4 parse error

On Mon, Jul 29, 2002 at 10:17:59PM +0200, Stefan Kleyer scribbled:
> Hi,
>
> I get this error while compiling:
My guess is that you're using gcc 2.95 possibly from Debian? (Other distros
might be affected too, I don't know). The cpp shipped with the Debian's gcc
2.95-15 doesn't parse the ##arg part of the varargs macro DRM_ERROR (or any
other) for that matter. It is supposed, per docs, to remove the comma should
the variable args (the "rest") be empty - it leaves the comma there instead,
which renders incorrect C code. I have submitted the bug to the Debian
gcc maintainers.

greetings,

marek


Attachments:
(No filename) (602.00 B)
(No filename) (189.00 B)
Download all attachments

2002-07-29 21:09:32

by Stefan Kleyer

[permalink] [raw]
Subject: Re: 2.4.19rc3-ac4 parse error

On Mon, 29 Jul 2002 22:39:10 +0200
Marek Habersack <[email protected]> wrote:

> My guess is that you're using gcc 2.95 possibly from Debian? (Other
> distros might be affected too, I don't know). The cpp shipped with the
> Debian's gcc 2.95-15 doesn't parse the ##arg part of the varargs macro
> DRM_ERROR (or any other) for that matter. It is supposed, per docs, to
> remove the comma should the variable args (the "rest") be empty - it
> leaves the comma there instead, which renders incorrect C code. I have
> submitted the bug to the Debian gcc maintainers.

gcc -v says:
"Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)"
Shipped with Slackware 8.1
and the -ac3 was compiled without errors

Bye, Stefan