Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930641 - sci-libs/caffe2-2.2.2: fails compilation with musl: 'LONG_LONG_MAX' was not declared in this scope
Summary: sci-libs/caffe2-2.2.2: fails compilation with musl: 'LONG_LONG_MAX' was not d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-24 22:26 UTC by Felix Janda
Modified: 2024-05-07 06:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (musl.patch,724 bytes, patch)
2024-04-26 17:01 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)