Skip to content

Build onnxruntime with training, training_apis, tests and gcc-15#27191

Open
AlekseiNikiforovIBM wants to merge 1 commit intomicrosoft:mainfrom
AlekseiNikiforovIBM:gcc15_cxxopts
Open

Build onnxruntime with training, training_apis, tests and gcc-15#27191
AlekseiNikiforovIBM wants to merge 1 commit intomicrosoft:mainfrom
AlekseiNikiforovIBM:gcc15_cxxopts

Conversation

@AlekseiNikiforovIBM
Copy link
Contributor

Description

This change is needed to build onnxruntime with gcc-15 when training, training_apis and tests are enabled.

Motivation and Context

When building onnxruntime on fedora 43, both s390x and x86, with following command line, build fails:
./build.sh --config Debug --parallel 0 --enable_pybind --build_wheel --enable_training --enable_training_apis --enable_training_ops --allow_running_as_root --compile_no_warning_as_error.

This change fixes build failure caused by cxxopts missing correct includes.

@AlekseiNikiforovIBM
Copy link
Contributor Author

@tianleiwu @amarin16, could you please take a look at this change?

@baijumeswani
Copy link
Contributor

@AlekseiNikiforovIBM could you share with us how (and if) you're using onnxruntime-training?

@AlekseiNikiforovIBM
Copy link
Contributor Author

I'm building it as one of optional test dependencies for pytorch like this:

https://github.com/pytorch/pytorch/blob/main/.ci/docker/manywheel/Dockerfile_s390x#L129-L144

@baijumeswani
Copy link
Contributor

Thanks for the information. While this PR can be merged, I would like to share with you that onnxruntime-training is no longer being developed or actively maintained by our team and is not part of our future roadmap at the moment.

@AlekseiNikiforovIBM
Copy link
Contributor Author

Merging this PR would be great. And thank you for notice of ended support. I'll take a look later if I can disable training APIs when building onnxruntime.

@baijumeswani
Copy link
Contributor

Pipelines are stuck. Trying to re-trigger all of them. Closing and re-opening the PR.

@baijumeswani baijumeswani reopened this Feb 3, 2026
@baijumeswani baijumeswani enabled auto-merge (squash) February 3, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants