GH-43228: [C++] Fix Abseil compile error on GCC 13#43157
GH-43228: [C++] Fix Abseil compile error on GCC 13#43157assignUser merged 21 commits intoapache:mainfrom
Conversation
|
@github-actions crossbow submit -g cpp -g r |
|
Revision: 8f503ae7d8bab313b6325992c32859770dc29a98 Submitted crossbow builds: ursacomputing/crossbow @ actions-defadac854 |
|
@raulcd @assignUser this should be ready for review, I tried a more conservative approach as upgrading Abseil introduced more problems than it fixed even on the most conservative version upgrade. |
|
Could you open a new issue for this instead of reusing existing closed issue? |
Given it's the same exact error message shouldn't we preserve a consolidated history by keeping the original issue? |
|
The problem is that the original issue is in the |
Makes sense, I didn't check and thought it was closed without being done. I'll open a new one. |
|
|
There was a problem hiding this comment.
Can we reproduce this by the following change?
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index 45417acf85..cd5f119b77 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -1418,6 +1418,16 @@ tasks:
GCC_VERSION: 12
image: ubuntu-r-only-r
+ # This also has -flto=auto
+ test-r-gcc-13:
+ ci: github
+ template: docker-tests/github.linux.yml
+ params:
+ env:
+ UBUNTU: 24.04
+ GCC_VERSION: 13
+ image: ubuntu-r-only-r
+
test-r-minimal-build:
ci: azure
template: r/azure.linux.yml|
@github-actions crossbow submit test-ubuntu-24.04-cpp-gcc-13-bundled |
|
Revision: d59f39b Submitted crossbow builds: ursacomputing/crossbow @ actions-a91e2018b6
|
|
@kou I think that this is ready for final review. |
|
@github-actions crossbow submit test-ubuntu-20.04-cpp-bundled |
|
Revision: 70e6e7d Submitted crossbow builds: ursacomputing/crossbow @ actions-3d162f80dd
|
|
@github-actions crossbow submit test-ubuntu-24.04-cpp-gcc-13-bundled |
|
Revision: 943baa0 Submitted crossbow builds: ursacomputing/crossbow @ actions-ecde5a2c6e
|
|
The timestamp tests now pass too by installing |
assignUser
left a comment
There was a problem hiding this comment.
Looks good, thanks! Could you also remove the workaround we added to r/configure?
|
@github-actions crossbow submit test-r-depsource-bundled |
|
Revision: 0a6e367 Submitted crossbow builds: ursacomputing/crossbow @ actions-c9cac2c09c
|
Done and tested on |
|
@github-actions crossbow submit r-binary-packages |
|
Revision: 0a6e367 Submitted crossbow builds: ursacomputing/crossbow @ actions-4b94da66a4
|
|
Ugh, turns out |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit aaeff72. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 1 possible false positive for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change When trying to compile Arrow with GCC 13, it fails due to ABSEIL missing a `<cstdint>` include, this PR addresses the issue by adding the missing include. There have been past reports for this issue too: #36969 This is a more minimal fix that tries to avoid the complexity of previous attempts like #43147 and #37066 which involved updating Abseil and facing additional issues to fix. ### What changes are included in this PR? Add the missing include when GCC>=13 ### Are these changes tested? They are tested by the existing compile infrastructure and testsuite and by adding a new GCC-13 based CPP test environment for bundled builds. ### Are there any user-facing changes? No, all behaviours should remain the same * GitHub Issue: #43228 Lead-authored-by: Alessandro Molina <alessandro@molina.fyi> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>
Rationale for this change
When trying to compile Arrow with GCC 13, it fails due to ABSEIL missing a
<cstdint>include, this PR addresses the issue by adding the missing include.There have been past reports for this issue too: #36969
This is a more minimal fix that tries to avoid the complexity of previous attempts like #43147 and #37066 which involved updating Abseil and facing additional issues to fix.
What changes are included in this PR?
Add the missing include when GCC>=13
Are these changes tested?
They are tested by the existing compile infrastructure and testsuite and by adding a new GCC-13 based CPP test environment for bundled builds.
Are there any user-facing changes?
No, all behaviours should remain the same