Hi Simon, Please, keep the message public.
> Le 20 sept. 2018 à 11:43, Simon Sobisch <simonsobi...@web.de> a écrit : > > Hi Akim, > >> Gesendet: Mittwoch, 19. September 2018 um 06:42 Uhr >> Von: "Akim Demaille" <a...@lrde.epita.fr> >> An: "Simon Sobisch" <simonsobi...@web.de> >> Cc: "Bison Bugs" <bug-bison@gnu.org> >> Betreff: Re: Bison 3.1 check "examples/variant.cc" fails >> 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. > > here's the output to help with debugging the variant.cc error: > > $ make examples/variant.cc V=1 > \ > /bin/sh ../build-aux/ylwrap `test -f 'examples/variant.yy' || echo > '../'`examples/variant.yy y.tab.c examples/variant.cc y.tab.h `echo > examples/variant.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e > s/c++$/h++/ -e s/c$/h/` y.output examples/variant.output -- ./tests/bison -o > y.tab.c -d -v -Werror -Wall -Wno-yacc --report=all > ?: m4 subprocess failed: No such file or directory > make: *** [examples/variant.cc] Error 1 > > $ ./tests/bison ../examples/variant.yy --trace=tools > running: /bin/m4 C:/dev/bison-3.1/build_mingw/../data/m4sugar/m4sugar.m4 - > C:/dev/bison-3.1/build_mingw/../data/bison.m4 > C:/dev/bison-3.1/build_mingw/../data/c++-skel.m4 > ?: m4 subprocess failed: No such file or directory I’m afraid I won’t be of much help here. Your bison is trying to run this: > /bin/m4 C:/dev/bison-3.1/build_mingw/../data/m4sugar/m4sugar.m4 - > C:/dev/bison-3.1/build_mingw/../data/bison.m4 > C:/dev/bison-3.1/build_mingw/../data/c++-skel.m4 Which looks good. In particular: > $ ls -l /bin/m4 C:/dev/bison-3.1/build_mingw/../data/m4sugar/m4sugar.m4 > C:/dev/bison-3.1/build_mingw/../data/bison.m4 > C:/dev/bison-3.1/build_mingw/../data/c++-skel.m4 > -rwxr-xr-x 1 simon Users 228864 Feb 22 2013 /bin/m4 > -rw-r--r-- 1 simon Users 37210 Aug 25 08:55 > C:/dev/bison-3.1/build_mingw/../data/bison.m4 > -rw-r--r-- 1 simon Users 1158 Aug 25 08:55 > C:/dev/bison-3.1/build_mingw/../data/c++-skel.m4 > -rw-r—r-- 1 simon Users 122297 May 19 13:13 > C:/dev/bison-3.1/build_mingw/../data/m4sugar/m4sugar.m4 these files exists. It looks like it is unable to run /bin/m4. I don’t know enough of your platform to know what is going wrong. Does it _have_ to have a disk letter first? What happens with $ M4=C:/bin/m4 ./tests/bison ../examples/variant.yy for instance, if m4 is in C:? If you want to deep dive into the code, I guess the error is here: pid = create_pipe_bidi ("m4", m4, (char **)(void*)argv, false, true, true, filter_fd); in src/output.c. That’s where we fail to find m4.