* grub2 ppc test compile problem
@ 2005-11-10 20:03 Mark Guertin
2005-11-10 20:14 ` Marco Gerards
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mark Guertin @ 2005-11-10 20:03 UTC (permalink / raw)
To: grub-devel
Not sure if this is a grub or distro problem (is pre-release of YDL
4.1). I haven't had time to look at this closely yet, but told
Hollis I would post the info so here goes:
This is where it seems to choke out:
if (grub_script_lexer_done)
return 0;
If anything else is useful please let me know (CC me as I'm not
subbed to this list yet).
Mark
<snip>
gcc -Inormal -I../normal -I. -Iinclude -I../include -Wall -W -
DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2 -
DGRUB_UTIL=1 -c -o grub_emu-normal_lexer.o ../normal/lexer.c
../normal/lexer.c: In function `grub_script_yylex':
../normal/lexer.c:89: error: called object is not a function
../normal/lexer.c:90: error: syntax error before "return"
../normal/lexer.c:92: error: called object is not a function
../normal/lexer.c:93: error: syntax error before '{' token
../normal/lexer.c:84: warning: unused variable `newstate'
../normal/lexer.c:85: warning: unused variable `use'
../normal/lexer.c:86: warning: unused variable `buffer'
../normal/lexer.c:87: warning: unused variable `bp'
../normal/lexer.c: At top level:
../normal/lexer.c:105: error: syntax error before string constant
../normal/lexer.c:105: warning: type defaults to `int' in declaration
of `grub_real_dprintf'
../normal/lexer.c:105: error: conflicting types for `grub_real_dprintf'
../include/grub/misc.h:67: error: previous declaration of
`grub_real_dprintf'
../normal/lexer.c:105: warning: data definition has no type or
storage class
../normal/lexer.c:106: error: syntax error before numeric constant
../normal/lexer.c:112: warning: type defaults to `int' in declaration
of `newscript'
../normal/lexer.c:112: error: conflicting types for `newscript'
../normal/lexer.c:55: error: previous declaration of `newscript'
../normal/lexer.c:112: warning: data definition has no type or
storage class
../normal/lexer.c:113: warning: type defaults to `int' in declaration
of `grub_script_lexer_done'
../normal/lexer.c:113: error: redefinition of `grub_script_lexer_done'
../normal/lexer.c:29: error: `grub_script_lexer_done' previously
defined here
../normal/lexer.c:113: warning: data definition has no type or
storage class
../normal/lexer.c:114: error: syntax error before string constant
../normal/lexer.c:114: warning: type defaults to `int' in declaration
of `grub_real_dprintf'
../normal/lexer.c:114: warning: data definition has no type or
storage class
../normal/lexer.c:115: error: syntax error before "return"
../normal/lexer.c:119: warning: type defaults to `int' in declaration
of `newstate'
../normal/lexer.c:119: error: `use' undeclared here (not in a function)
../normal/lexer.c:119: error: initializer element is not constant
../normal/lexer.c:119: warning: data definition has no type or
storage class
../normal/lexer.c:122: error: syntax error before numeric constant
../normal/lexer.c:141: warning: type defaults to `int' in declaration
of `grub_script_lexer_state'
../normal/lexer.c:141: error: conflicting types for
`grub_script_lexer_state'
../normal/lexer.c:28: error: previous declaration of
`grub_script_lexer_state'
../normal/lexer.c:141: warning: data definition has no type or
storage class
../normal/lexer.c:142: error: syntax error before '++' token
../normal/lexer.c:144: error: syntax error before string constant
../normal/lexer.c:144: warning: type defaults to `int' in declaration
of `grub_real_dprintf'
../normal/lexer.c:144: warning: data definition has no type or
storage class
../normal/lexer.c:145: error: syntax error before "return"
../normal/lexer.c:156: warning: type defaults to `int' in declaration
of `buffer'
../normal/lexer.c:156: warning: initialization makes integer from
pointer without a cast
../normal/lexer.c:156: error: initializer element is not constant
../normal/lexer.c:156: warning: data definition has no type or
storage class
../normal/lexer.c:157: error: syntax error before numeric constant
../normal/lexer.c:160: warning: type defaults to `int' in declaration
of `bp'
../normal/lexer.c:160: error: initializer element is not constant
../normal/lexer.c:160: warning: data definition has no type or
storage class
../normal/lexer.c:163: error: syntax error before numeric constant
../normal/lexer.c:191: error: syntax error before '++' token
../normal/lexer.c:196: warning: type defaults to `int' in declaration
of `grub_script_lexer_state'
../normal/lexer.c:196: error: initializer element is not constant
../normal/lexer.c:196: warning: data definition has no type or
storage class
../normal/lexer.c:197: error: syntax error before '++' token
../normal/lexer.c:201: warning: type defaults to `int' in declaration
of `bp'
../normal/lexer.c:201: error: conflicting types for `bp'
../normal/lexer.c:160: error: previous declaration of `bp'
../normal/lexer.c:201: warning: data definition has no type or
storage class
../normal/lexer.c:202: error: syntax error before string constant
../normal/lexer.c:202: warning: type defaults to `int' in declaration
of `grub_real_dprintf'
../normal/lexer.c:202: warning: data definition has no type or
storage class
../normal/lexer.c:203: error: syntax error before '.' token
../normal/lexer.c:229: warning: type defaults to `int' in declaration
of `bp'
../normal/lexer.c:229: error: conflicting types for `bp'
../normal/lexer.c:201: error: previous declaration of `bp'
../normal/lexer.c:229: warning: data definition has no type or
storage class
../normal/lexer.c:232: error: syntax error before numeric constant
../normal/lexer.c:244: warning: type defaults to `int' in declaration
of `grub_script_lexer_state'
../normal/lexer.c:244: error: redefinition of `grub_script_lexer_state'
../normal/lexer.c:196: error: `grub_script_lexer_state' previously
defined here
../normal/lexer.c:244: error: initializer element is not constant
../normal/lexer.c:244: warning: data definition has no type or
storage class
../normal/lexer.c:245: error: syntax error before "break"
../normal/lexer.c:251: warning: type defaults to `int' in declaration
of `grub_script_lexer_state'
../normal/lexer.c:251: error: redefinition of `grub_script_lexer_state'
../normal/lexer.c:244: error: `grub_script_lexer_state' previously
defined here
../normal/lexer.c:251: error: initializer element is not constant
../normal/lexer.c:251: warning: data definition has no type or
storage class
../normal/lexer.c:252: error: syntax error before '}' token
../normal/lexer.c:254: warning: type defaults to `int' in declaration
of `bp'
../normal/lexer.c:254: error: conflicting types for `bp'
../normal/lexer.c:229: error: previous declaration of `bp'
../normal/lexer.c:254: warning: data definition has no type or
storage class
../normal/lexer.c:255: warning: type defaults to `int' in declaration
of `grub_script_lexer_state'
../normal/lexer.c:255: error: redefinition of `grub_script_lexer_state'
../normal/lexer.c:251: error: `grub_script_lexer_state' previously
defined here
../normal/lexer.c:255: error: initializer element is not constant
../normal/lexer.c:255: warning: data definition has no type or
storage class
../normal/lexer.c:256: error: syntax error before '.' token
../normal/lexer.c:257: error: syntax error before string constant
../normal/lexer.c:257: warning: type defaults to `int' in declaration
of `grub_real_dprintf'
../normal/lexer.c:257: warning: data definition has no type or
storage class
../normal/lexer.c:259: error: syntax error before "return"
../normal/lexer.c:34: warning: `check_varstate' defined but not used
../normal/lexer.c:45: warning: `check_textstate' defined but not used
make: *** [grub_emu-normal_lexer.o] Error 1
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: grub2 ppc test compile problem
2005-11-10 20:03 grub2 ppc test compile problem Mark Guertin
@ 2005-11-10 20:14 ` Marco Gerards
2005-11-11 18:58 ` Marco Gerards
2005-11-12 17:58 ` Hollis Blanchard
2 siblings, 0 replies; 9+ messages in thread
From: Marco Gerards @ 2005-11-10 20:14 UTC (permalink / raw)
To: The development of GRUB 2, guertin
Mark Guertin <guertin@brucemaudesign.com> writes:
> Not sure if this is a grub or distro problem (is pre-release of YDL
> 4.1). I haven't had time to look at this closely yet, but told
> Hollis I would post the info so here goes:
>
> This is where it seems to choke out:
>
> if (grub_script_lexer_done)
> return 0;
Thanks for the report. I guess I broke something that I didn't catch
with my minor test...
I will fix this tomorrow.
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-10 20:03 grub2 ppc test compile problem Mark Guertin
2005-11-10 20:14 ` Marco Gerards
@ 2005-11-11 18:58 ` Marco Gerards
2005-11-11 19:23 ` Mark Guertin
2005-11-12 17:58 ` Hollis Blanchard
2 siblings, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2005-11-11 18:58 UTC (permalink / raw)
To: The development of GRUB 2, guertin
Mark Guertin <guertin@brucemaudesign.com> writes:
> Not sure if this is a grub or distro problem (is pre-release of YDL
> 4.1). I haven't had time to look at this closely yet, but told
> Hollis I would post the info so here goes:
I was not able to reproduce this problem. Which gcc version do you use?
> <snip>
> gcc -Inormal -I../normal -I. -Iinclude -I../include -Wall -W -
> DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2 -
> DGRUB_UTIL=1 -c -o grub_emu-normal_lexer.o ../normal/lexer.c
> ../normal/lexer.c: In function `grub_script_yylex':
> ../normal/lexer.c:89: error: called object is not a function
This makes no sense. On that line no function is called. It's just a
check if a variable is 0 or not. Same for the if statement below.
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-11 18:58 ` Marco Gerards
@ 2005-11-11 19:23 ` Mark Guertin
2005-11-11 20:01 ` Marco Gerards
0 siblings, 1 reply; 9+ messages in thread
From: Mark Guertin @ 2005-11-11 19:23 UTC (permalink / raw)
To: Marco Gerards; +Cc: The development of GRUB 2
here's the version information. it doesn't make any sense to me
either now that I have dug in it a little bit. I've compiled quite a
bit of other stuff without problem on this setup so not sure wtf is
going on here.
gcc version 3.3.3 (Yellow Dog Linux 3.3.3-16.ydl.10)
Mark
On 11-Nov-05, at 1:58 PM, Marco Gerards wrote:
> Mark Guertin <guertin@brucemaudesign.com> writes:
>
>> Not sure if this is a grub or distro problem (is pre-release of YDL
>> 4.1). I haven't had time to look at this closely yet, but told
>> Hollis I would post the info so here goes:
>
> I was not able to reproduce this problem. Which gcc version do you
> use?
>
>> <snip>
>> gcc -Inormal -I../normal -I. -Iinclude -I../include -Wall -W -
>> DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2 -
>> DGRUB_UTIL=1 -c -o grub_emu-normal_lexer.o ../normal/lexer.c
>> ../normal/lexer.c: In function `grub_script_yylex':
>> ../normal/lexer.c:89: error: called object is not a function
>
> This makes no sense. On that line no function is called. It's just a
> check if a variable is 0 or not. Same for the if statement below.
>
> --
> Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-11 19:23 ` Mark Guertin
@ 2005-11-11 20:01 ` Marco Gerards
2005-11-11 20:07 ` Mark Guertin
0 siblings, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2005-11-11 20:01 UTC (permalink / raw)
To: Mark Guertin; +Cc: The development of GRUB 2
Mark Guertin <guertin@brucemaudesign.com> writes:
> here's the version information. it doesn't make any sense to me
> either now that I have dug in it a little bit. I've compiled quite a
> bit of other stuff without problem on this setup so not sure wtf is
> going on here.
>
> gcc version 3.3.3 (Yellow Dog Linux 3.3.3-16.ydl.10)
Do you have bison installed and which version do you have?
--
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-11 20:01 ` Marco Gerards
@ 2005-11-11 20:07 ` Mark Guertin
2006-01-03 18:10 ` Marco Gerards
0 siblings, 1 reply; 9+ messages in thread
From: Mark Guertin @ 2005-11-11 20:07 UTC (permalink / raw)
To: Marco Gerards; +Cc: The development of GRUB 2
bison (GNU Bison) 1.875c
I've also asked other users beta testing YDL to try this out and see
if things track back to the toolchain causing problems :(
Thanks
Mark
On 11-Nov-05, at 3:01 PM, Marco Gerards wrote:
> Mark Guertin <guertin@brucemaudesign.com> writes:
>
>> here's the version information. it doesn't make any sense to me
>> either now that I have dug in it a little bit. I've compiled quite a
>> bit of other stuff without problem on this setup so not sure wtf is
>> going on here.
>>
>> gcc version 3.3.3 (Yellow Dog Linux 3.3.3-16.ydl.10)
>
> Do you have bison installed and which version do you have?
>
> --
> Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-11 20:07 ` Mark Guertin
@ 2006-01-03 18:10 ` Marco Gerards
2006-01-03 19:22 ` Mark Guertin
0 siblings, 1 reply; 9+ messages in thread
From: Marco Gerards @ 2006-01-03 18:10 UTC (permalink / raw)
To: Mark Guertin; +Cc: The development of GRUB 2
Mark Guertin <guertin@brucemaudesign.com> writes:
Hi Mark,
> bison (GNU Bison) 1.875c
>
> I've also asked other users beta testing YDL to try this out and see
> if things track back to the toolchain causing problems :(
The test is changed a bit now. It didn't always default to bison, I
think that was the problem in your case. Can you check if it works
for you now?
Thanks,
Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2006-01-03 18:10 ` Marco Gerards
@ 2006-01-03 19:22 ` Mark Guertin
0 siblings, 0 replies; 9+ messages in thread
From: Mark Guertin @ 2006-01-03 19:22 UTC (permalink / raw)
To: Marco Gerards; +Cc: The development of GRUB 2
I'll give it a shot this afternoon, thanks :)
Mark
On 3-Jan-06, at 1:10 PM, Marco Gerards wrote:
> Mark Guertin <guertin@brucemaudesign.com> writes:
>
> Hi Mark,
>
>> bison (GNU Bison) 1.875c
>>
>> I've also asked other users beta testing YDL to try this out and see
>> if things track back to the toolchain causing problems :(
>
> The test is changed a bit now. It didn't always default to bison, I
> think that was the problem in your case. Can you check if it works
> for you now?
>
> Thanks,
> Marco
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: grub2 ppc test compile problem
2005-11-10 20:03 grub2 ppc test compile problem Mark Guertin
2005-11-10 20:14 ` Marco Gerards
2005-11-11 18:58 ` Marco Gerards
@ 2005-11-12 17:58 ` Hollis Blanchard
2 siblings, 0 replies; 9+ messages in thread
From: Hollis Blanchard @ 2005-11-12 17:58 UTC (permalink / raw)
To: The development of GRUB 2
On Nov 10, 2005, at 2:03 PM, Mark Guertin wrote:
> Not sure if this is a grub or distro problem (is pre-release of YDL
> 4.1). I haven't had time to look at this closely yet, but told Hollis
> I would post the info so here goes:
>
> This is where it seems to choke out:
>
> if (grub_script_lexer_done)
> return 0;
>
> If anything else is useful please let me know (CC me as I'm not subbed
> to this list yet).
>
> Mark
>
> <snip>
> gcc -Inormal -I../normal -I. -Iinclude -I../include -Wall -W
> -DGRUB_DATADIR=\"/usr/local/share/grub/powerpc-ieee1275\" -g -O2
> -DGRUB_UTIL=1 -c -o grub_emu-normal_lexer.o ../normal/lexer.c
> ../normal/lexer.c: In function `grub_script_yylex':
> ../normal/lexer.c:89: error: called object is not a function
> ../normal/lexer.c:90: error: syntax error before "return"
> ../normal/lexer.c:92: error: called object is not a function
> ../normal/lexer.c:93: error: syntax error before '{' token
> ../normal/lexer.c:84: warning: unused variable `newstate'
> ../normal/lexer.c:85: warning: unused variable `use'
> ../normal/lexer.c:86: warning: unused variable `buffer'
> ../normal/lexer.c:87: warning: unused variable `bp'
Since this problem is so odd, it might be interesting to compile by
hand with the gcc line above and add the -save-temps flag, then have a
look at the .i file to see if there's any unusual preprocessing going
on.
-Hollis
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-01-03 19:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-10 20:03 grub2 ppc test compile problem Mark Guertin
2005-11-10 20:14 ` Marco Gerards
2005-11-11 18:58 ` Marco Gerards
2005-11-11 19:23 ` Mark Guertin
2005-11-11 20:01 ` Marco Gerards
2005-11-11 20:07 ` Mark Guertin
2006-01-03 18:10 ` Marco Gerards
2006-01-03 19:22 ` Mark Guertin
2005-11-12 17:58 ` Hollis Blanchard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.