grub-devel
[Top][All Lists]
Advanced

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

grub2 ppc test compile problem


From: Mark Guertin
Subject: grub2 ppc test compile problem
Date: Thu, 10 Nov 2005 15:03:25 -0500

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





reply via email to

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