Am I correct in my understanding that bison is complaining about some component of the tool chain?

I don't remember using any different versions.


On 10/12/21 10:20 pm, Nico Huber wrote:
Hi Keith,

On 10.12.21 09:28, Keith Emery wrote:
So I set out to repeat the experiment on my local computer. Only to find
that the current master branch of Coreboot fails to build the tool
chain. I was following the tutorial to the letter, but received the
following:

[redacted]/src/coreboot/util/genbuild_h/genbuild_h.sh: 59: -v: not found
that's a known cosmetic issue. Calling `genbuild_h.sh` at that time
seems spurious. I guess, you can ignore it.

The tool-chain then failed to build IASL:

Building IASL v20210331 for host ... failed. Check 'build-IASL/build.log'.
make[1]: *** [Makefile:23: build_iasl] Error 1
make: *** [util/crossgcc/Makefile.inc:30: crossgcc-i386] Error 2


I checked the log, which states:

cp: cannot stat 'iasl': No such file or directory
That looks like a later error only shown because the script goes on even
when the build failed. The actual error might be earlier in the log. If
in doubt, please attach the whole file.

Nico
make[1]: Entering directory '[redacted]/src/coreboot/util/crossgcc/acpica-unix2-20190509/generate/unix/iasl'
-  m4           Preprocess main iASL parser
-  bison        obj/aslcompiler.y
[redacted]/src/coreboot/util/crossgcc/acpica-unix2-20190509/generate/unix/iasl/obj/aslcompiler.y:103.1-7: warning: POSIX Yacc does not support %expect [-Wyacc]
  103 | %expect 124
      | ^~~~~~~
-  flex         ../../../source/compiler/aslcompiler.l
-  bison        obj/aslcompiler.y
[redacted]/src/coreboot/util/crossgcc/acpica-unix2-20190509/generate/unix/iasl/obj/aslcompiler.y:103.1-7: warning: POSIX Yacc does not support %expect [-Wyacc]
  103 | %expect 124
      | ^~~~~~~
-  bison        ../../../source/compiler/dtparser.y
-  flex         ../../../source/compiler/dtparser.l
-  bison        ../../../source/compiler/dtparser.y
-  bison        ../../../source/compiler/prparser.y
-  flex         ../../../source/compiler/prparser.l
-  bison        ../../../source/compiler/prparser.y
-  Intermediate obj/aslcompilerlex.c
-  Intermediate obj/aslcompilerparse.c
-  Intermediate obj/dtparserlex.c
../../../source/compiler/dtparser.l: In function 'DtInitLexer':
../../../source/compiler/dtparser.l:123:17: error: implicit declaration of function 'yy_scan_string' [-Werror=implicit-function-declaration]
  123 |     LexBuffer = yy_scan_string (String);
      |                 ^~~~~~~~~~~~~~
../../../source/compiler/dtparser.l:123:15: error: assignment to 'YY_BUFFER_STATE' {aka 'struct yy_buffer_state *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
  123 |     LexBuffer = yy_scan_string (String);
      |               ^
cc1: all warnings being treated as errors
make[1]: *** [Makefile:357: obj/dtparserlex.o] Error 1
make[1]: Leaving directory '[redacted]/src/coreboot/util/crossgcc/acpica-unix2-20190509/generate/unix/iasl'
make: *** [Makefile.common:7: iasl] Error 2
cp: cannot stat 'bin/iasl': No such file or directory
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to