On 6/18/06, John Temples wrote: > > If I delete the include files section after the "# DO NOT DELETE" > > for the indivisual Makefile, I can build jalv2 without a problem under > > Linux. It seems to work as well. > > > But since the author says that we should not delete them, > > there must be some side effects... > > I don't think the author is saying that. "# DO NOT DELETE" is > inserted by makedepend. I haven't looked at the makefile in question, > but that comment implies there is a "depend" target, meaning you > simply do "make depend" to update those dependencies. > Thanks. It seems that now the depend mcuee@ubuntu:~/Desktop/build/jalv2/jalv2$ make depend make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/libutils' makedepend *.c *.h makedepend: warning: cache.c (reading /usr/include/string.h, line 33): cannot f ind include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/stdlib.h, line 33): cannot f ind include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/bits/types.h, line 31): cann ot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/sys/types.h, line 147): cann ot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/alloca.h, line 25): cannot f ind include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/stdio.h, line 34): cannot fi nd include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/_G_config.h, line 14): canno t find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/wchar.h, line 48): cannot fi nd include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/gconv.h, line 31): cannot fi nd include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cache.c (reading /usr/include/libio.h, line 53): cannot fi nd include file "stdarg.h" not in /usr/include/stdarg.h make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/libutils' make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/libcore' makedepend *.c *.h makedepend: warning: cmd_asm.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/bits/types.h, line 31): ca nnot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/_G_config.h, line 14): can not find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/wchar.h, line 48): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/gconv.h, line 31): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h" not in /usr/include/stdarg.h makedepend: warning: cmd_asm.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/sys/types.h, line 147): ca nnot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_asm.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: cmd_optm.c (reading /usr/include/string.h, line 33): canno t find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pfile.c, line 12: cannot find include file "stdarg.h" not in /usr/include/stdarg.h make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/libcore' make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/libpic12' makedepend *.c *.h makedepend: warning: pic_brop.c (reading /usr/include/string.h, line 33): canno t find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/bits/types.h, line 31): c annot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/_G_config.h, line 14): ca nnot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/wchar.h, line 48): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/gconv.h, line 31): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h" not in /usr/include/stdarg.h makedepend: warning: pic_brop.c (reading /usr/include/stdlib.h, line 33): canno t find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/sys/types.h, line 147): c annot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: pic_brop.c (reading /usr/include/alloca.h, line 25): canno t find include file "stddef.h" not in /usr/include/stddef.h make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/libpic12' make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/jal' makedepend *.c *.h makedepend: warning: jal_asm.c (reading /usr/include/stdio.h, line 34): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/bits/types.h, line 31): ca nnot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/_G_config.h, line 14): can not find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/wchar.h, line 48): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/gconv.h, line 31): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/libio.h, line 53): cannot find include file "stdarg.h" not in /usr/include/stdarg.h makedepend: warning: jal_asm.c (reading /usr/include/stdlib.h, line 33): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/sys/types.h, line 147): ca nnot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_asm.c (reading /usr/include/alloca.h, line 25): cannot find include file "stddef.h" not in /usr/include/stddef.h makedepend: warning: jal_blck.c (reading /usr/include/string.h, line 33): canno t find include file "stddef.h" not in /usr/include/stddef.h make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/jal' mcuee@ubuntu:~/Desktop/build/jalv2/jalv2$ make make -C libutils make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/libutils' gcc -O2 -Werror -pedantic -Wall -Wshadow -Wcast-qual -Wcast-align -g -c -o mem.o mem.c gcc -O2 -Werror -pedantic -Wall -Wshadow -Wcast-qual -Wcast-align -g -c -o cache.o cache.c ar -r libutils.a mem.o cache.o ar: creating libutils.a make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/libutils' make -C libcore make[1]: Entering directory `/home/mcuee/Desktop/build/jalv2/jalv2/libcore' gcc -O2 -Werror -pedantic -Wall -Wshadow -Wcast-qual -Wcast-align -g -c -o tag.o tag.c gcc -O2 -Werror -pedantic -Wall -Wshadow -Wcast-qual -Wcast-align -g -c -o vardef.o vardef.c cc1: warnings being treated as errors In file included from variable.h:15, from vardef.c:12: vardef.h:74: warning: type qualifiers ignored on function return type vardef.h:84: warning: type qualifiers ignored on function return type vardef.c:310: warning: type qualifiers ignored on function return type vardef.c:413: warning: type qualifiers ignored on function return type make[1]: *** [vardef.o] Error 1 make[1]: Leaving directory `/home/mcuee/Desktop/build/jalv2/jalv2/libcore' make: *** [libcore/libcore.a] Error 2 If I remove the -Werror option in CFLAGS, the build process will be okay. Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist