Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830945 - dev-libs/sink-0.8.0-r3 fails to compile: backtrace.cpp:34:10: fatal error: execinfo.h: No such file or directory
Summary: dev-libs/sink-0.8.0-r3 fails to compile: backtrace.cpp:34:10: fatal error: ex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting 856418
  Show dependency tree
 
Reported: 2022-01-10 19:10 UTC by Agostino Sarubbo
Modified: 2022-08-17 16:18 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,449.79 KB, text/plain)
2022-01-10 19:10 UTC, Agostino Sarubbo
Details

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