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

[SC-138006] Fix datagen install issue after gcc upgrade to 11+ #7

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

zhengtang-db
Copy link
Collaborator

The tpcds lib hit a build issue in dbr 13+. Example error:

w_warehouse.o:/home/zheng.tang/tpcds-kit/tools/w_warehouse.c:53: multiple definition of `g_w_warehouse'
s_warehouse.o:/home/zheng.tang/tpcds-kit/tools/s_warehouse.c:51: first defined here
w_web_site.o:/home/zheng.tang/tpcds-kit/tools/w_web_site.c:59: multiple definition of `g_w_web_site'
s_web_site.o:/home/zheng.tang/tpcds-kit/tools/s_web_site.c:51: first defined here

The failure is due to the GCC was updated from 9.4.0 to 11.3.0 in DBR.According to the gcc doc link, If the header is included by several files it results in multiple definitions of the same variable. In previous GCC versions this error is ignored. GCC 10 defaults to -fno-common, which means a linker error will now be reported. To mitigate the issue, need to add flag -fcommon to the CFLAGS in the make file.

Tested on devbox with gcc-11 with command make CC=gcc-11 -f Makefile.suite

Copy link

@joeharris76 joeharris76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's get it merged

@zhengtang-db zhengtang-db merged commit 1b7fb75 into databricks:master Aug 15, 2023
LuciferYang pushed a commit to apache/spark that referenced this pull request Feb 19, 2025
…mark` from 20.04 to latest

### What changes were proposed in this pull request?

This PR aims to upgrade Github Action image for `TPCDSQueryBenchmark` from 20.04 to latest and update the dependency of `databricks/tpcds-kit` to the latest codes.

In the past, there were compilation problems in high-version Ubuntu images due to g++ version compatibility issues, but this problem has been solved after this PR: databricks/tpcds-kit#7

### Why are the changes needed?

Refer to: actions/runner-images#11101

> The Ubuntu 20.04 Actions runner image will begin deprecation on 2025-02-01 and will be fully unsupported by 2025-04-01

![image](https://github.com/user-attachments/assets/db68ec55-f3ca-4a24-aa81-5347c85ec0ed)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manual check on Ubuntu 24.04 and Pass GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #49980 from wayneguow/tpcds_inf.

Authored-by: Wei Guo <guow93@gmail.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
LuciferYang pushed a commit to apache/spark that referenced this pull request Feb 19, 2025
…mark` from 20.04 to latest

### What changes were proposed in this pull request?

This PR aims to upgrade Github Action image for `TPCDSQueryBenchmark` from 20.04 to latest and update the dependency of `databricks/tpcds-kit` to the latest codes.

In the past, there were compilation problems in high-version Ubuntu images due to g++ version compatibility issues, but this problem has been solved after this PR: databricks/tpcds-kit#7

### Why are the changes needed?

Refer to: actions/runner-images#11101

> The Ubuntu 20.04 Actions runner image will begin deprecation on 2025-02-01 and will be fully unsupported by 2025-04-01

![image](https://github.com/user-attachments/assets/db68ec55-f3ca-4a24-aa81-5347c85ec0ed)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manual check on Ubuntu 24.04 and Pass GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #49980 from wayneguow/tpcds_inf.

Authored-by: Wei Guo <guow93@gmail.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
(cherry picked from commit 0af25b8)
Signed-off-by: yangjie01 <yangjie01@baidu.com>
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

Successfully merging this pull request may close these issues.

2 participants