Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930641

Summary: sci-libs/caffe2-2.2.2: fails compilation with musl: 'LONG_LONG_MAX' was not declared in this scope
Product: Gentoo Linux Reporter: Felix Janda <felix.janda>
Component: Current packagesAssignee: Tupone Alfredo <tupone>
Status: RESOLVED FIXED    
Severity: normal CC: felix.janda, tupone
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch

Description Felix Janda 2024-04-24 22:26:09 UTC
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
Comment 1 Felix Janda 2024-04-26 17:01:42 UTC
Created attachment 891800 [details, diff]
Patch

https://github.com/pytorch/pytorch/pull/125043
Comment 2 Larry the Git Cow gentoo-dev 2024-05-07 06:06:13 UTC
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(+)