Conversation
|
the build is working without this change (on linux-x86_64), could you elaborate a little more what is broken ? |
|
There are two things broken the other one there is a collision of dependency for protobuf. one from torch and another from onnxruntime. torch uses v4, and onnxruntime uses v3. and the torch ci currently uses v3. thinking we should downgrade torch to use v3 because of that but that might cause other packages to break. not sure what is the best way to fix it. any advice is welcome. @happysalada |
|
How can i trigger the failure locally ? Does the failure only happen on staging next or another branch ? |
once you add pybind11, compilation will complete, and you will see the protobuf collision. I marked this MR as a draft. because I am not sure how best to deal with the collision with protobuf yet. |
@happysalada I can also reproduce the build issue on x86_64-linux |
|
After that latest merge of staging-next, got it. I wasn't on the latest commit. I've looked a bit at the build process of onnxruntime and it's intense. I think we can merge the pybind11 addition in the meantime. It doesn't fix the build completely, but it will be required in the future no matter what. |
|
what about downgrading torch to use protobuf3_21, as it is the version used in their CI. |
|
looking a bit further, it looks like onnx has switched to protobuf python 4 downgrading the torch propagated build input might break dependents. I don't know how many it will break though, or if it will break any. It feels like that change to downgrade the version is a little backwards, but it might be an acceptable temporary solution. |
|
here is the ci reference for torch https://github.com/pytorch/pytorch/blob/c2ac0da445cfe3d848342926f9cd4422bd35bfe2/.ci/docker/requirements-ci.txt#L133 |
|
builds at 6814225 |
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)