gregrahn / tpcds-kit

TPC-DS benchmark kit with some modifications/fixes
320 stars 205 forks source link

When I make the code, I will make a mistake. #32

Closed ghost closed 7 years ago

ghost commented 7 years ago

When I make the code, I will make a mistake.

[root@master tools]# make gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DYYDEBUG -DLINUX -g -Wall -o dsqgen address.o date.o decimal.o dist.o error_msg.o expr.o eval.o genrand.o grammar_support.o keywords.o list.o nulls.o permute.o print.o QgenMain.o query_handler.o r_params.o scaling.o StringBuffer.o substitution.o tdefs.o text.o tokenizer.o w_inventory.o y.tab.o release.o scd.o build_support.o parallel.o -lm grammar_support.o: In functioninclude_file': /opt/tpcds-kit-master/tools/grammar_support.c:128: undefined reference to yy_create_buffer' /opt/tpcds-kit-master/tools/grammar_support.c:129: undefined reference toyy_switch_to_buffer' y.tab.o: In function yyparse': /opt/tpcds-kit-master/tools/y.tab.c:551: undefined reference toyylex' /opt/tpcds-kit-master/tools/y.tab.c:1129: undefined reference to yylex' collect2: ld returned 1 exit status make: *** [dsqgen] Error 1

I need help to solve this issue. Thanks.

gregrahn commented 7 years ago

Seems like missing dev tools. See #27

ghost commented 7 years ago

@gregrahn Thank you for your reply. It doesn't work.

[root@master tools]# yum install gcc make flex bison byacc git Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile

[root@master tools]# make OS=LINUX make: *** No targets specified and no makefile found. Stop.

[root@master tools]# cp Makefile.suite Makefile [root@master tools]# make gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DYYDEBUG -DLINUX -g -Wall -o dsqgen address.o date.o decimal.o dist.o error_msg.o expr.o eval.o genrand.o grammar_support.o keywords.o list.o nulls.o permute.o print.o QgenMain.o query_handler.o r_params.o scaling.o StringBuffer.o substitution.o tdefs.o text.o tokenizer.o w_inventory.o y.tab.o release.o scd.o build_support.o parallel.o -lm grammar_support.o: In function include_file': /opt/tpcds-kit-master/tools/grammar_support.c:128: undefined reference toyy_create_buffer' /opt/tpcds-kit-master/tools/grammar_support.c:129: undefined reference to yy_switch_to_buffer' y.tab.o: In functionyyparse': /opt/tpcds-kit-master/tools/y.tab.c:551: undefined reference to yylex' /opt/tpcds-kit-master/tools/y.tab.c:1129: undefined reference toyylex' collect2: ld returned 1 exit status make: *** [dsqgen] Error 1

gregrahn commented 7 years ago

What is the OS and version? Did you also make clean?

ghost commented 7 years ago

@gregrahn I forget to run "make clean". Now it works. Thanks.