Skip to content

[GLUTEN-10552][VL] Fix openEuler compiling issue #10564

Merged
zhouyuan merged 2 commits intoapache:mainfrom
zhouyuan:wip_fix_openeuler
Aug 28, 2025
Merged

[GLUTEN-10552][VL] Fix openEuler compiling issue #10564
zhouyuan merged 2 commits intoapache:mainfrom
zhouyuan:wip_fix_openeuler

Conversation

@zhouyuan
Copy link
Member

@zhouyuan zhouyuan commented Aug 27, 2025

What changes are proposed in this pull request?

This patch adds a extra gcc flag -Wno-restrict to workaround the openeuler compiling issue

Velox did added this for gcc-12.2.1 however openeuler is using gcc-12.3.1
https://github.com/facebookincubator/velox/blob/main/CMakeLists.txt#L408

fixes: #10552

How was this patch tested?

pass GHA

Signed-off-by: Yuan <yuanzhou@apache.org>

fix

Signed-off-by: Yuan <yuanzhou@apache.org>

fix

Signed-off-by: Yuan <yuanzhou@apache.org>

fix

Signed-off-by: Yuan <yuanzhou@apache.org>

fix

Signed-off-by: Yuan <yuanzhou@apache.org>

fix

Signed-off-by: Yuan <yuanzhou@apache.org>
@github-actions
Copy link

#10552

@github-actions github-actions bot removed the INFRA label Aug 27, 2025
@zhouyuan
Copy link
Member Author

@kevinw66 @PHILO-HE can you please take a look?
the build on openeuler is successful now
https://github.com/apache/incubator-gluten/actions/runs/17271248861/job/49016316647?pr=10564

Signed-off-by: Yuan <yuanzhou@apache.org>
elif [[ "$LINUX_DISTRIBUTION" == "openEuler" ]]; then
# this is workaround for gcc-12.3.1
# https://github.com/facebookincubator/velox/blob/b263d9dd8b8910dc642d8fdb0c0adee4b2a1fb29/CMakeLists.txt#L433
sed -i "s|no-unknown-warning-option|no-unknown-warning-option -Wno-restrict|g" ../../src/build_velox.sh
Copy link
Member

Choose a reason for hiding this comment

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

According to the link below commented in Velox, it seems the gcc community is retargeting the bugs to GCC 12.5. Therefore, I am wondering if we can just submit a Velox PR to include 12.3.x and even 12.4.x in that check of CMakeLists.txt. Assume this issue is not limited to openEuler.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329

Copy link
Contributor

Choose a reason for hiding this comment

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

@PHILO-HE It seems more complicate than I thought, 105651 mentioned this was fixed in 12.4, not sure if it's the same bug.

Copy link
Member

Choose a reason for hiding this comment

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

They look similar. If 12.4 is not confirmed, I think we can just include 12.3 in the check at Velox side.

Copy link
Member Author

Choose a reason for hiding this comment

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

@kevinw66 do you happen to know is there any plan to upgrade GCC in openeuler-24 recently?

Copy link
Member Author

Choose a reason for hiding this comment

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

@PHILO-HE @kevinw66 could we land this fix on Gluten side first? My intention is to fix the coming 1.5 release.
I will also submit the patch to Velox, once it's merged we could revert this workaround

Copy link
Member

Choose a reason for hiding this comment

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

@zhouyuan, make sense. Approved. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

@kevinw66 do you happen to know is there any plan to upgrade GCC in openeuler-24 recently?

@zhouyuan Sorry for the late reply, currently openeuler community is planning port fixed patches(mentioned in the gcc issues above) to openeuler-gcc.

@zhouyuan zhouyuan changed the title [GLUTEN-10552][VL] Fix openeuler compiling issue [GLUTEN-10552][VL] Fix openEuler compiling issue Aug 28, 2025
@zhouyuan zhouyuan merged commit 0cb3ce2 into apache:main Aug 28, 2025
96 of 97 checks passed
@zhouyuan
Copy link
Member Author

@PHILO-HE @kevinw66 @Yohahaha Thanks. Will also backport this to 1.5 branch.

zhouyuan added a commit to zhouyuan/gluten that referenced this pull request Aug 28, 2025
This patch adds a extra gcc flag -Wno-restrict to workaround the openeuler compiling issue

Velox did added this for gcc-12.2.1 however openeuler is using gcc-12.3.1
https://github.com/facebookincubator/velox/blob/main/CMakeLists.txt#L408

fixes: apache#10552

---------

Signed-off-by: Yuan <yuanzhou@apache.org>
zhouyuan added a commit that referenced this pull request Aug 28, 2025
…10576)

* [VL][INFRA] Fix docker build error on Centos-7 (#10522)

* [TEST][VL] Reinclude "cast string to timestamp" test (#10532)

* [GLUTEN-10552][VL] Fix openEuler compiling issue  (#10564)

This patch adds a extra gcc flag -Wno-restrict to workaround the openeuler compiling issue

Velox did added this for gcc-12.2.1 however openeuler is using gcc-12.3.1
https://github.com/facebookincubator/velox/blob/main/CMakeLists.txt#L408

fixes: #10552

---------

Signed-off-by: Yuan <yuanzhou@apache.org>

---------

Signed-off-by: Yuan <yuanzhou@apache.org>
Co-authored-by: PHILO-HE <philo@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VL] compiling issue on openeuler

4 participants