View Single Post
Old 08-15-03, 12:34 PM   #46
whit
Registered User
 
Join Date: Aug 2003
Location: VT
Posts: 11
Default agpgart code fails to compile

Hi, nice Redhat guide. Are you trying to expand it to be a full guld for the A7N8X under Linux? With an A7N8X-X I'm seeing a problem when trying to compile a stock 2.4.21 kernel with the patch on Gentoo (the patch installed without error), with gcc version 3.2.3. Kernel compilation fails with:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_be -DEXPORT_SYMTAB -c agpgart_be.c
agpgart_be.c: In function `agp_generic_create_gatt_table':
agpgart_be.c:583: warning: assignment from incompatible pointer type
agpgart_be.c: In function `amd_create_gatt_table':
agpgart_be.c:2456: warning: assignment from incompatible pointer type
agpgart_be.c:2457: warning: assignment from incompatible pointer type
agpgart_be.c: In function `amd_free_gatt_table':
agpgart_be.c:2483: warning: assignment from incompatible pointer type
agpgart_be.c:2484: warning: assignment from incompatible pointer type
agpgart_be.c: In function `nvidia_generic_setup':
agpgart_be.c:4304: structure has no member named `num_of_masks'
make[4]: *** [agpgart_be.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.21/drivers/char/agp'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.21/drivers/char/agp'
make[2]: *** [_subdir_agp] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.21/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21/drivers'
make: *** [_dir_drivers] Error 2

Has nVidia just failed to code compatibly with gcc 3? Has anyone run into this and found a workaround (no, building the kernel with an old gcc is not something I'd do)? Is there any motion to put AGP support into the standard kernel tree, so that problems like this won't show up?

Thanks,
Whit
whit is offline   Reply With Quote