Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895052 - dev-libs/libtsm-4.0.2 fails to compile (MUSL-CLANG-SYSTEM): shl-macro.h:206:2: error: call to undeclared function static_assert; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Summary: dev-libs/libtsm-4.0.2 fails to compile (MUSL-CLANG-SYSTEM): shl-macro.h:206:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ben Kohler
URL:
Whiteboard: ~arch only
Keywords: PullRequest
: 921326 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-17 08:16 UTC by Agostino Sarubbo
Modified: 2024-10-29 20:27 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,58.78 KB, text/plain)
2023-02-17 08:16 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 2023-02-17 08:16:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/libtsm-4.0.2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-17 08:16:38 UTC
Created attachment 851966 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-17 08:16:39 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find XKBCommon (missing: XKBCommon_KeySyms_FOUND KeySyms) 
-- Could NOT find XKBCommon_KeySyms (missing: XKBCommon_KeySyms_INCLUDE_DIR) (found version "")
FAILED: src/shared/CMakeFiles/shl.dir/shl-pty.c.o 
FAILED: src/shared/CMakeFiles/shl.dir/shl-ring.c.o 
/var/tmp/portage/dev-libs/libtsm-4.0.2/work/libtsm-4.0.2/src/shared/shl-macro.h:206:2: error: call to undeclared function 'static_assert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 Ben Kohler gentoo-dev 2024-01-04 17:29:11 UTC
*** Bug 921326 has been marked as a duplicate of this bug. ***
Comment 4 NHO 2024-03-29 15:09:23 UTC
Compilation error fixed upstream in https://github.com/Aetf/libtsm/commit/37ab668857967052cd394628a32347affb330cde
Comment 5 Larry the Git Cow gentoo-dev 2024-03-29 15:16:57 UTC
The bug has been closed via the following commit(s):

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

commit 96ae890a4cfe1d8d88e91cd035e93a7238d79917
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-03-29 15:16:13 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-03-29 15:16:51 +0000

    dev-libs/libtsm: add 4.0.2_p20231223
    
    Closes: https://bugs.gentoo.org/895052
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 dev-libs/libtsm/Manifest                      |  1 +
 dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2024-05-09 14:21:49 UTC
The bug has been closed via the following commit(s):

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

commit 518afe3c3a29496c364bbad08361908a52739716
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-11-02 17:45:10 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-05-09 14:21:41 +0000

    dev-libs/libtsm: Fix call to undeclared function static_assert
    
    and update EAPI 7 -> 8
    
    Closes: https://bugs.gentoo.org/895052
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/33651
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../files/libtsm-clang16-static_assert-fix.patch     | 10 ++++++++++
 dev-libs/libtsm/libtsm-4.0.2-r1.ebuild               | 20 ++++++++++++++++++++
 2 files changed, 30 insertions(+)