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

Bug 865351

Summary: media-libs/libheif-1.12.0-r3 fails to compile: catch.hpp:10376:58: error: call to non-constexpr function long int sysconf(int)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Jakov Smolić <jsmolic>
Status: RESOLVED OBSOLETE    
Severity: normal CC: sam, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-08-16 06:39:16 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/libheif-1.12.0-r3 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-16 06:39:18 UTC
Created attachment 799837 [details]
build.log

build log and emerge --info
Comment 2 Sergey Torokhov 2022-09-05 11:41:37 UTC
It seems is fixed in upstream [1] after libheif-1.13.0 release:

Update catch to the latest 2.x version
...which currently is 2.13.9. This allows building with glibc >= 2.34,
which otherwise produces:

"catch.hpp:10376:58: error: call to non-'constexpr' function 'long int sysconf(int)'
10376 |     constexpr static std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~"


[1] https://github.com/strukturag/libheif/commit/e7d41416c189fcc88e18bca17d6dbba173cd0c84
Comment 3 Sergey Torokhov 2022-09-05 11:53:04 UTC
Or it just update bundled catch.hpp that is removed anyway on test phase :(
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-06 03:53:03 UTC
(In reply to Sergey Torokhov from comment #3)
> Or it just update bundled catch.hpp that is removed anyway on test phase :(

Doh.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-06 03:54:19 UTC
(In reply to Sam James from comment #4)
> (In reply to Sergey Torokhov from comment #3)
> > Or it just update bundled catch.hpp that is removed anyway on test phase :(
> 
> Doh.

actually, no, I don't get it -- it drops the bundled one, replaces with ours, why doe sit fail?
Comment 6 Jakov Smolić archtester gentoo-dev 2024-01-06 01:23:25 UTC
*** Bug 915681 has been marked as a duplicate of this bug. ***
Comment 7 Jakov Smolić archtester gentoo-dev 2024-01-06 12:36:56 UTC
It appears to be fine now, I can't reproduce it with 1.15.2 version so I'll close the bug.