Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G7F6z-0006rA-W8 for mharc-grub-devel@gnu.org; Sun, 30 Jul 2006 13:29:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7F6z-0006r1-8r for grub-devel@gnu.org; Sun, 30 Jul 2006 13:29:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7F6w-0006q2-T4 for grub-devel@gnu.org; Sun, 30 Jul 2006 13:29:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7F6w-0006pw-O9 for grub-devel@gnu.org; Sun, 30 Jul 2006 13:29:54 -0400 Received: from [69.90.100.5] (helo=titanium.v3.ca) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7F9Q-00077I-Fs for grub-devel@gnu.org; Sun, 30 Jul 2006 13:32:28 -0400 Received: from titanium.v3.ca (localhost [127.0.0.1]) by titanium.v3.ca (8.13.2/8.13.2/Debian-1) with ESMTP id k6UHToVX023336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 30 Jul 2006 10:29:50 -0700 Received: (from jbailey@localhost) by titanium.v3.ca (8.13.2/8.13.2/Submit) id k6UHTow0023335 for grub-devel@gnu.org; Sun, 30 Jul 2006 10:29:50 -0700 X-Authentication-Warning: titanium.v3.ca: jbailey set sender to jbailey@raspberryginger.com using -f Date: Sun, 30 Jul 2006 10:29:50 -0700 From: Jeff Bailey To: The development of GRUB 2 Message-ID: <20060730172950.GA22812@titanium.v3.ca> References: <20060729133502.GA16439@titanium.v3.ca> <200607301611.26752.okuji@enbug.org> <20060730143118.GA12425@titanium.v3.ca> <200607301806.15452.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607301806.15452.okuji@enbug.org> User-Agent: Mutt/1.5.6+20040907i Subject: Re: porting to hppa-ipl X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2006 17:29:57 -0000 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