Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make runs into an error when trying to build after make clean #16

Open
DillonZChen opened this issue Oct 11, 2023 · 1 comment
Open

Comments

@DillonZChen
Copy link

make works the first time but not after the second time after running make clean

To reproduce:

make -j
make clean
make -j

Then I get the error after the second make command:

bison -v -d -o src/hddl.cpp src/hddl.y
flex --yylineno -o src/hddl-token.cpp src/hddl-token.l
g++ -O3 -pipe -Wall -Wextra -pedantic -std=c++17 -DNDEBUG -Wno-unused-parameter  -o src/hddl-token.o -c src/hddl-token.cpp
src/hddl-token.cpp:1559:17: warning: ‘void yyunput(int, char*)’ defined but not used [-Wunused-function]
 1559 |     static void yyunput (int c, char * yy_bp )
      |                 ^~~~~~~
g++ -O3 -pipe -Wall -Wextra -pedantic -std=c++17 -DNDEBUG -Wno-unused-parameter  -o src/hddl.o -c src/hddl.cpp
make: *** No rule to make target 'src/options.ggo', needed by 'src/cmdline.h'.  Stop.

I currently get around the issue by cloning the repository from scratch.

@galvusdamor
Copy link
Collaborator

Thanks for pointing this out! There is indeed an error in the makefile - namely that in make clean we remove *o and not *.o. I've just changed this. I.e. making after clean should now work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants