Re: agpgart build fail

From: Matthew Vanecek (linuxguy@directlink.net)
Date: Mon Jul 10 2000 - 22:36:41 EST


Phil Russell wrote:
>
> agpgart is failing to build with this error in all test3 patches :
>
> make -C agp
> make[3]: Entering directory `/usr/src/linux/drivers/char/agp'
> make all_targets
> make[4]: Entering directory `/usr/src/linux/drivers/char/agp'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -Werror -pipe -mpreferred-stack-boundary=2
> -march=i686 -malign-functions=4 -fschedule-insns2 -mwide-multiply
> -fexpensive-optimizations -fno-strict-aliasing -DEXPORT_SYMTAB -c
> agpgart_be.c
> cc1: warnings being treated as errors
> agpgart_be.c:536: warning: `agp_generic_create_gatt_table' defined but not
> used
> agpgart_be.c:655: warning: `agp_generic_free_gatt_table' defined but not
> used
> agpgart_be.c:704: warning: `agp_generic_insert_memory' defined but not
> used
> agpgart_be.c:762: warning: `agp_generic_remove_memory' defined but not
> used
> make[4]: *** [agpgart_be.o] Error 1
> make[4]: Leaving directory `/usr/src/linux/drivers/char/agp'
> make[3]: *** [first_rule] Error 2
> make[3]: Leaving directory `/usr/src/linux/drivers/char/agp'
> make[2]: *** [_subdir_agp] Error 2
> make[2]: Leaving directory `/usr/src/linux/drivers/char'
> make[1]: *** [_subdir_char] Error 2
> make[1]: Leaving directory `/usr/src/linux/drivers'
> make: *** [_dir_drivers] Error 2
>

This is a simple one, more or less, on the surface. The immediate
culprit is the -Werror flag in the top level Makefile. I'm not sure I
feel safe, however, taking that flag out. There must have been a good
reason to have it there.

I got this exact same error myself, so I guess there's no need to paste
it in, eh? I had the agpgart stuff defined as a module.

-- 
Matthew Vanecek
Visit my Website at http://mysite.directlink.net/linuxguy
For answers type: perl -e 'print
$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:12 EST