python3Packages.pytorch: repair for darwin#225646
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@ofborg build python3Packages.pytorch |
I'm not sure I fully understand the comment from the linked code, but is there, from nixpkgs point of view, a "correct way" to detect I think it's OK to merge this patch for now though, as soon as we see that it fixes the build |
Please don't take this answer as definitive, but... There is no proper feature test macro for More background/brain dump: AFAICT, PyTorch is checking for C++17 language support in the compiler and assuming that implies the presence of Nixpkgs uses a very old set of standard library headers on Darwin, so C++17_{headers and libraries} support on that platform is a bit sketchy, hence the failure. I suspect you would see a similar failure if you installed modern Clang on a very old version of MacOS and tried to install PyTorch---but there are probably only 2 or 3 people on the planet with setups like that. Well, those 2 or 3 plus everyone who uses Nixpkgs on Darwin. |
|
Ah timeout 😮💨 2h30 on my machine |
|
Seems like it worked https://hydra.nixos.org/build/215847815 |
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/)