Repository navigation
gcc: 15 -> 16 - #537781
gcc: 15 -> 16#537781
Conversation
24f1097 to
41bbad1
Compare
ae9e57e to
de820b4
Compare
GCC 16 added and starts using -latomic_asneeded and -lgcc_s_asneeded to pull in the corresponding libraries as if --as-needed. Add these linker scripts. After fixing this, gcc in turn wants libatomic, so reuse the existing line copying it for riscv, and use it for all platforms. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123650 for why this was added. (cherry picked from commit cd01953)
de820b4 to
83a31a3
Compare
|
with https://github.com/microsoft/onnxruntime/pull/31346#issuecomment-5688923246 from upstream, i can confirm we are now able to build onnxruntime with gcc 16, just by specifying this patch (i did so on top of diff --git a/pkgs/by-name/on/onnxruntime/package.nix b/pkgs/by-name/on/onnxruntime/package.nix
index b1a972d4d2..1850f55e30 100644
--- a/pkgs/by-name/on/onnxruntime/package.nix
+++ b/pkgs/by-name/on/onnxruntime/package.nix
@@ -293,6 +293,7 @@
(lib.cmakeBool "onnxruntime_USE_MIGRAPHX" rocmSupport)
(lib.cmakeBool "onnxruntime_USE_COREML" coremlSupport)
(lib.cmakeBool "onnxruntime_ENABLE_LTO" (!cudaSupport || cudaPackages.cudaOlder "12.8"))
+ (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-D_GLIBCXX_USE_OLD_GENERATE_CANONICAL")
]
++ lib.optionals openvinoSupport [
(lib.cmakeBool "onnxruntime_USE_OPENVINO" true) |
|
So you think this is ready to be included in the upcoming |
i think so! the main work that remains is the whack-a-mole that will need to continue to fix the regressions in leaf packages/ones with a few reverse dependencies. if we want to have that happen, we're probably better off doing this on master, since we'll have more eyes on it helping out. this is especially true with the release of 26.11 coming in just two months, i think. i figure we should probably only delay if we want to push this until after branch off, but personally i think this is fine to get in. |
|
|
|
|
changes: https://gcc.gnu.org/gcc-16/changes.html
porting guide: https://gcc.gnu.org/gcc-16/porting_to.html
see #537781 (comment) for a reasonably up-to-date triaging of current failures.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.