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

Bug 830945

Summary: dev-libs/sink-0.8.0-r3 fails to compile: backtrace.cpp:34:10: fatal error: execinfo.h: No such file or directory
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: maintainer-needed
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/26655
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702, 856418    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-10 19:10:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/sink-0.8.0-r3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-10 19:10:31 UTC
Created attachment 761823 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-10 19:10:32 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/synchronizer/backtrace.cpp:34:10: fatal error: execinfo.h: No such file or directory
fatal: not a git repository (or any parent up to mount point /var/tmp)
/var/tmp/portage/dev-libs/sink-0.8.0-r3/work/sink-0.8.0/synchronizer/backtrace.cpp:34:10: fatal error: execinfo.h: No such file or directory
Comment 3 Andreas Sturmlechner gentoo-dev 2022-01-11 10:52:30 UTC
Should be obvious this is caused by musl.
Comment 4 Larry the Git Cow gentoo-dev 2022-08-17 16:18:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2812d756f23179a480f982ef877f3ff5b7e4116

commit b2812d756f23179a480f982ef877f3ff5b7e4116
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-07-29 18:53:09 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-08-17 16:17:56 +0000

    dev-libs/sink: Musl fix build error, missing execinfo.h
    
    On musl execinfo.h is not present, it results in build error for missing
    header file. Hence we are going check first for execinfo.h then include
    and use it for backtrace.
    
    Closes: https://bugs.gentoo.org/830945
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26655
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/sink/files/sink-0.8.0-musl-execinfo.patch | 48 ++++++++++++++++++++++
 dev-libs/sink/sink-0.8.0-r3.ebuild                 |  6 ++-
 2 files changed, 53 insertions(+), 1 deletion(-)