Hi Simon, > Le 18 sept. 2018 à 11:52, Simon Sobisch <simonsobi...@web.de> a écrit : > > Hi, I've tried to build Bison the first time from source using an old MinGW > environment. > * configure finds several things to be missing and generates replacements in > the lib directory (works very good btw) > * make passes > * make check fails: > > $ make examples/variant.cc > YACC examples/variant.cc > ?: m4 subprocess failed: No such file or directory > make: *** [examples/variant.cc] Error 1
I will need your help here, I don’t understand why it would fail. Try $ make examples/variant.cc V=1 and see if you see something fishy. Also, run this: $ ./tests/bison examples/variant.yy --trace=tools (./tests/bison is in your build dir, where you ran configure, and examples/variant.yy is in the source tree, where you untared Bison. Adjust to you own paths). This command should help you understand what is going on. > I've attached config.log and as configure doesn't seem to check for m4 > version 1.4.6 prerequisite mentioned in README: > > $ m4 --version > m4 (GNU M4) 1.4.16 > Copyright (C) 2011 Free Software Foundation, Inc. Good point. But as of today, it seems unlikely to be found :) > Is there anything more I can test? > > > Unrelated note: there was a single warning during make which may be possible > to fix, too: > > > ../lib/timevar.c:66:35: warning: 'struct rusage' declared inside parameter > list > extern int getrusage (int, struct rusage *); > ^ > ../lib/timevar.c:66:35: warning: its scope is only this definition or > declaration, which is probably not what you want I don’t understand this: you don’t have an error, so I guess getrusage is usable, yet configure:12563: gcc -o conftest.exe -g -O2 conftest.c >&5 conftest.c:189:26: fatal error: sys/resource.h: No such file or directory compilation terminated. so it is not declared in sys/resource.h. Do you know which header defines rusage on your machine?