Skip to content

GH-49898: [C++][CI] Use mold in more builds - #49899

Merged
kou merged 1 commit into
apache:mainfrom
pitrou:gh49898-use-mold
Apr 29, 2026
Merged

GH-49898: [C++][CI] Use mold in more builds#49899
kou merged 1 commit into
apache:mainfrom
pitrou:gh49898-use-mold

Conversation

@pitrou

@pitroupitrou commented Apr 29, 2026

Copy link
Copy Markdown
Member

Rationale for this change

We're currently using the mold linker only on a couple of C++ builds. This PR uses it in more builds to get faster link times and thus faster CI builds.

Are these changes tested?

Yes, by CI builds.

Are there any user-facing changes?

No.

We're currently using the mold linker only on a couple of C++ builds.
Use it in more builds to get faster link times and thus faster CI builds.
@pitrou

Copy link
Copy Markdown
MemberAuthor

@github-actions crossbow submit -g cpp

@github-actions

Copy link
Copy Markdown

Revision: eb0c13a

Submitted crossbow builds: ursacomputing/crossbow @ actions-4c03283919

TaskStatus
example-cpp-minimal-build-staticGitHub Actions
example-cpp-minimal-build-static-system-dependencyGitHub Actions
example-cpp-tutorialGitHub Actions
test-build-cpp-fuzzGitHub Actions
test-conda-cppGitHub Actions
test-conda-cpp-valgrindGitHub Actions
test-debian-13-cpp-amd64GitHub Actions
test-debian-13-cpp-i386GitHub Actions
test-debian-experimental-cpp-gcc-15GitHub Actions
test-fedora-42-cppGitHub Actions
test-ubuntu-22.04-cppGitHub Actions
test-ubuntu-22.04-cpp-bundledGitHub Actions
test-ubuntu-22.04-cpp-emscriptenGitHub Actions
test-ubuntu-22.04-cpp-no-threadingGitHub Actions
test-ubuntu-24.04-cppGitHub Actions
test-ubuntu-24.04-cpp-bundled-offlineGitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundledGitHub Actions
test-ubuntu-24.04-cpp-gcc-14GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formatsGitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizerGitHub Actions

@pitrou

Copy link
Copy Markdown
MemberAuthor

@kou Could you take a look at this PR?

kou
kou approved these changes Apr 29, 2026

@koukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@github-actionsgithub-actionsBot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Apr 29, 2026
@kou
kou merged commit 684c21e into apache:mainApr 29, 2026
50 of 52 checks passed
@koukou removed the awaiting merge Awaiting merge label Apr 29, 2026
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 0 benchmarking runs that have been run so far on merge-commit 684c21e.

None of the specified runs were found on the Conbench server.

The full Conbench report has more details.

@pitrou
pitrou deleted the gh49898-use-mold branch April 30, 2026 08:05
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 684c21e.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 110 possible false positives for unstable benchmarks that are known to sometimes produce them.

Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
### Rationale for this change
We're currently using the mold linker only on a couple of C++ builds. This PR uses it in more builds to get faster link times and thus faster CI builds.
### Are these changes tested?
Yes, by CI builds.
### Are there any user-facing changes?
No.
* GitHub Issue: apache#49898
Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
kou pushed a commit that referenced this pull request May 26, 2026
…1247 (#50033)
### Rationale for this change
Fixes#49767 - intermittent SIGSEGV in the ODBC Linux CI job, the crash occurs during `_dl_relocate_object` before `main()` : #49767 (comment)
apt ships mold 2.30.0 on Ubuntu 24.04 'Noble Numbat'.
mold 2.30.0 has a non-determinism bug in section placement that causes this crash ([rui314/mold#1247](rui314/mold#1247)). Fixed upstream in [mold 2.31.0](https://github.com/rui314/mold/releases/tag/v2.31.0).
### What changes are included in this PR?
Disable mold on Ubuntu 24.04 in `ubuntu-24.04-cpp.dockerfile` by setting `ARROW_USE_MOLD=OFF`.
Re-enable if apt mold reaches 2.31+ - note that Ubuntu 24.04 'Noble Numbat' might never update to 2.31+ https://launchpad.net/ubuntu/noble/+source/mold - its mold release is over 2 years old.
A follow-up issue tracking apt mold updates and other CI jobs using mold (more added with #49898/#49899) will be opened separately.
### Are these changes tested?
Yes, ODBC Linux job runs complete successfully on fork: [1st](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77676883090), [2nd](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77684025003) , [3rd](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77685765548) , [4th](https://github.com/tadeja/arrow/actions/runs/26389905866/job/77693037433) ### Are there any user-facing changes?
No.
* GitHub Issue: #49767
Authored-by: Tadeja Kadunc <tadeja.kadunc@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for freeto 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.

2 participants

@pitrou@kou