bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile error and Runtime error


From: James Linden
Subject: Re: Compile error and Runtime error
Date: Wed, 28 May 2008 09:31:01 -0400
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Bean wrote:
On Wed, May 28, 2008 at 9:57 AM, James Linden <address@hidden> wrote:
Description:
 I don't know if the compile error and the runtime errors are related, but
I'm going to put them into one thread for the moment...

Environment:
 grub:     1.96
 bison:    2.3
 kernel:   2.6.25.2
 gcc:      4.3.0
 glibc:    2.7
 make:     3.81


Situation (compile):
 ./normal/parser.y: In function 'grub_script_yyparse':
 ./normal/parser.y:58: error: expected ';' before '}' token
 make: *** [normal_mod-grub_script_tab.o] Error 1

Current code:
 script_init:    { state->err = 0} script

Proposed change:
 script_init:    { state->err = 0; } script

Well, my bison doesn't complain. Adding the semicolon make it look
better though.
Isn't it gcc/make complaining, not bison? Here are the last few lines of the log...
----------------------------------------
gcc -I. -I./. -I. -Iinclude -I./include -Wall -W -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -Os -falign-jumps=1 -falign-loops=1 -falign-functions=1 -fno-stack-protector -fno-builtin -mrtd -mregparm=3 -m32 -MD -c -o normal_mod-grub_script_tab.o grub_script.tab.c
  grub_script.tab.c:197:6: warning: "YYENABLE_NLS" is not defined
  ./normal/parser.y: In function 'grub_script_yyparse':
  ./normal/parser.y:58: error: expected ';' before '}' token
  make: *** [normal_mod-grub_script_tab.o] Error 1
----------------------------------------
Situation (runtime):
 When booting grub, the following error appears:
       Warning: syntax error (missing slash) in '?'
 Press a key, and another error appears:
       Warning: syntax error (missing slash) in ''
 Press a key again, and the normal grub menu and operations continue as
expected...

 The config file is well-formed, and has no syntax errors in it, so I can
only guess that the error is coming from something internal.

First of all, try the cvs version. If the problem still exists, paste
the content of your grub.cfg here.

OK, I grabbed CVS source and compiled using my hack to fix the parser.y syntax error (above)... no syntax errors on boot.

Regards,
     James 'KodeKrash' Linden
     address@hidden
     http://www.jameslinden.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]