[GLUTEN-10552][VL] Fix openEuler compiling issue #10564
[GLUTEN-10552][VL] Fix openEuler compiling issue #10564zhouyuan merged 2 commits intoapache:mainfrom
Conversation
|
@kevinw66 @PHILO-HE can you please take a look? |
Signed-off-by: Yuan <yuanzhou@apache.org>
992b104 to
797de66
Compare
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
They look similar. If 12.4 is not confirmed, I think we can just include 12.3 in the check at Velox side.
There was a problem hiding this comment.
@kevinw66 do you happen to know is there any plan to upgrade GCC in openeuler-24 recently?
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>
…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>
What changes are proposed in this pull request?
This patch adds a extra gcc flag
-Wno-restrictto workaround the openeuler compiling issueVelox 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