mkeeter / antimony

CAD from a parallel universe
2.09k stars 159 forks source link

configure succeeds, and then the build fails: /bin/sh: LEMON_EXECUTABLE-NOTFOUND: not found #236

Closed yurivict closed 1 year ago

yurivict commented 1 year ago
[  0% 3/111] cd /usr/ports/cad/antimony/work/.build/lib/fab && LEMON_EXECUTABLE-NOTFOUND -q -c -s /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.y && mv /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.c /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.cpp && mv /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.h /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.hpp
FAILED: lib/fab/v2syntax.lemon.hpp lib/fab/v2syntax.lemon.cpp /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.hpp /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.cpp 
cd /usr/ports/cad/antimony/work/.build/lib/fab && LEMON_EXECUTABLE-NOTFOUND -q -c -s /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.y && mv /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.c /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.cpp && mv /usr/ports/cad/antimony/work/antimony-0.9.3b-37-g8b805c67/lib/fab/src/tree/v2syntax.h /usr/ports/cad/antimony/work/.build/lib/fab/v2syntax.lemon.hpp
/bin/sh: LEMON_EXECUTABLE-NOTFOUND: not found
mkeeter commented 1 year ago

Did you follow the guide in BUILDING.md, including installing lemon?

If you run lemon from the command line, does it work?

Also, I don't know what operating system you're running, which makes this harder to debug.

yurivict commented 1 year ago

The point is that configure doesn't check that the lemon executable is installed.

mkeeter commented 1 year ago

If you add REQUIRED here, does it then fail at config time? If so, I'd be happy to take a PR.

(here's the docs for find_program)

yurivict commented 1 year ago

Yes, it fails with:

find_program(LEMON_EXECUTABLE lemon REQUIRED DOC "path to the lemon executable")

mkeeter commented 1 year ago

Great, please open a PR with that fix.

yurivict commented 1 year ago

Sorry, I am not dependent on the fix and have no resources for PRs.