hortonworks / hive-testbench

376 stars 283 forks source link

make fails in tpcds-gen #43

Closed babaMar closed 1 year ago

babaMar commented 1 year ago

Compilation fails for me with:

/usr/bin/ld: s_purchase.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_purchase.c:55: multiple definition of `nItemIndex'; s_catalog_order.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_catalog_order.c:56: first defined here
/usr/bin/ld: s_web_order.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_web_order.c:56: multiple definition of `nItemIndex'; s_catalog_order.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_catalog_order.c:56: first defined here
/usr/bin/ld: s_web_order_lineitem.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_web_order_lineitem.c:54: multiple definition of `g_s_web_order_lineitem'; s_web_order.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_web_order.c:54: first defined here
/usr/bin/ld: w_catalog_page.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/w_catalog_page.c:52: multiple definition of `g_w_catalog_page'; s_catalog_page.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_catalog_page.c:51: first defined here
/usr/bin/ld: w_warehouse.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/w_warehouse.c:53: multiple definition of `g_w_warehouse'; s_warehouse.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_warehouse.c:51: first defined here
/usr/bin/ld: w_web_site.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/w_web_site.c:59: multiple definition of `g_w_web_site'; s_web_site.o:/home/stefano/Repositories/hive-testbench/tpcds-gen/target/tools/s_web_site.c:51: first defined here
collect2: error: ld returned 1 exit status

any clue?

babaMar commented 1 year ago

Turns out the compiler is too new, had to use gcc 9, see https://github.com/gregrahn/tpcds-kit/issues/57