On Sun, Jul 30, 2006 at 06:06:15PM +0200, Yoshinori K. Okuji wrote: > > According to GCC: > > > > gcc -Ihello -I./hello -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow > > -Wpointer-arith -Wmissing-prototypes -Wundef > > -Wstrict-prototypes -g -Os -fno-builtin -c -o hello_mod-hello_hello.o > > hello/hello.c In file included from include/grub/normal.h:28, > > from hello/hello.c:27: > > include/grub/script.h:27:29: error: grub_script.tab.h: No such file or > > directory > > Right. But I have this dependency generated automatically as well: > > hello_mod-hello_hello.o > hello_mod-hello_hello.d : ../hello/hello.c ../include/grub/types.h config.h \ > include/grub/cpu/types.h ../include/grub/misc.h \ > /usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/include/stdarg.h \ > ../include/grub/symbol.h ../include/grub/err.h ../include/grub/mm.h \ > ../include/grub/dl.h ../include/grub/normal.h ../include/grub/setjmp.h \ > include/grub/cpu/setjmp.h ../include/grub/arg.h \ > ../include/grub/script.h ../include/grub/parser.h grub_script.tab.h > > So the question is why you don't have it. Please look at the content of > hello_mod-hello_hello.d.
set -e; gcc -Ihello -I./hello -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -fno-builtin -M hello/hello.c | sed 's,hello\.o[ :]*,hello_mod-hello_hello.o hello_mod-hello_hello.d : ,g' > hello_mod-hello_hello.d; [ -s hello_mod-hello_hello.d ] || rm -f hello_mod-hello_hello.d In file included from include/grub/normal.h:28, from hello/hello.c:27: include/grub/script.h:27:29: error: grub_script.tab.h: No such file or directory Generates a zero-byte file which is promptly deleted. So this file is never generated. > > > > 2) When hacking on the build env, how do I force things to be > > > > regenerated? When I do "make conf/hppa-ipl.mk", it doesn't generate > > > > the file for me. > > Since it works for me, all I can say is "I don't know". Have you added > hppa-ipl.rmk into RMKFILES in Makefile.in? Oh. I see. I had misunderstood the rule: $(addprefix $(srcdir)/,$(MKFILES)): %.mk: %.rmk genmk.rb as being a generic rule. I'll try to send a patch for that as well. Adding it to RMKFILES also helped. Do you accept GNU make-isms, or are you restricting yourself to POSIX make? Tks, Jeff Bailey -- I do not agree with a word you say, but I will defend to the death your right to say it. - Voltaire _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel