Fails compilation on my musl system with the error (which points out how to fix it): /var/tmp/portage/sci-libs/caffe2-2.2.2/work/pytorch-2.2.2/torch/csrc/profiler/unwind/unwind.cpp:115:20: error: 'LONG_LONG_MAX' was not declared in this scope; did you mean 'LLONG_MAX'? 115 | uint64_t adds_ = LONG_LONG_MAX; | ^~~~~~~~~~~~~ | LLONG_MAX /var/tmp/portage/sci-libs/caffe2-2.2.2/work/pytorch-2.2.2/torch/csrc/profiler/unwind/unwind.cpp:116:20: error: 'LONG_LONG_MAX' was not declared in this scope; did you mean 'LLONG_MAX'? 116 | uint64_t subs_ = LONG_LONG_MAX; | ^~~~~~~~~~~~~ | LLONG_MAX Reproducible: Always
Created attachment 891800 [details, diff] Patch https://github.com/pytorch/pytorch/pull/125043
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7016eada548b591cdeacaaf50aeca219128835b0 commit 7016eada548b591cdeacaaf50aeca219128835b0 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-05-07 06:04:38 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-05-07 06:05:21 +0000 sci-libs/caffe2: fix musl build Closes: https://bugs.gentoo.org/930641 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/caffe2/caffe2-2.2.2-r1.ebuild | 1 + 1 file changed, 1 insertion(+)