Skip to content

[c++] update to fmt 11.1.2, fast_double_parser 0.8.0 - #6802

Merged
jameslamb merged 5 commits into
masterfrom
newer-fmt
Feb 10, 2025
Merged

jameslamb merged 5 commits into
masterfrom
newer-fmt

Conversation

@jameslamb

@jameslamb jameslamb commented Jan 27, 2025 •

Copy link
Copy Markdown
Member

Contributes to #3763.
Contributes to #5691.

Proposes updated the projects vendored in here as git submodules to their latest versions:

How I did that

# fast_double_parser
cd ./external_libs/fast_double_parser
git fetch origin --tags
git checkout v0.8.0
cd ../../

# fmt
cd ./external_libs/fmt
git fetch origin 11.1.2
git checkout 11.1.2
cd ../../

# commit update
git add ./external_libs

Benefits of this change

Pulls in bugfixes, security patches, performance improvements.

The last update like this was #6074, over a year ago.

@jameslamb

jameslamb commented Jan 27, 2025 •

Copy link
Copy Markdown
Member Author

The only compilation failure left is this one on Appveyor:

c:\projects\lightgbm\lightgbm-python\external_libs\fmt\include\fmt\base.h(743): error C2338: (compiling source file
C:\projects\lightgbm\lightgbm-python\src\io\tree.cpp) [C:\Users\appveyor\tmp\tmpaktrbpjy\build\lightgbm_objs.vcxproj]
c:\projects\lightgbm\lightgbm-python\external_libs\fmt\include\fmt\base.h(743): error C2327:
'fmt::v11::basic_specs::data_': is not a type name, static, or enumerator (compiling source file
C:\projects\lightgbm\lightgbm-python\src\metric\dcg_calculator.cpp

(build link)

That code was JUST introduced into fmt 2 weeks ago: fmtlib/fmt@01914f0

Note that that is failing with MSVC 2015... other builds with later MSVC versions do not have this compilation error, for example this one with Visual Studio 2019: https://github.com/microsoft/LightGBM/actions/runs/12981353281/job/36199682684?pr=6802

I'm going to try rolling back one minor version to fmt 11.1.2 to see if that's enough to avoid it. Then maybe separately try to file a bug report with fmt and see if they'd be willing to support such an old version of MSVC.

@jameslamb jameslamb changed the title update to fmt 11.1.3, fast_double_parser 0.8.0 update to fmt 11.1.2, fast_double_parser 0.8.0 Jan 27, 2025
@jameslamb
jameslamb marked this pull request as ready for review January 27, 2025 05:54
@jameslamb jameslamb changed the title update to fmt 11.1.2, fast_double_parser 0.8.0 [c++] update to fmt 11.1.2, fast_double_parser 0.8.0 Jan 27, 2025
@jameslamb

Copy link
Copy Markdown
Member Author

/gha run r-valgrind

@StrikerRUS StrikerRUS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks for doing this!

@borchero borchero 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.

LGTM!

@jameslamb

Copy link
Copy Markdown
Member Author

I'd really like to run the valgrind checks before merging this. Will try that again once we merge #6816

@jameslamb

jameslamb commented Feb 10, 2025 •

Copy link
Copy Markdown
Member Author

/gha run r-valgrind

Workflow R valgrind tests has been triggered! πŸš€
https://github.com/microsoft/LightGBM/actions/runs/13232180550

Status: success βœ”οΈ.

@jameslamb
jameslamb merged commit 768f642 into master Feb 10, 2025
@jameslamb
jameslamb deleted the newer-fmt branch February 10, 2025 04:38
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants