Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873631 - x11-terms/kterm-6.2.0-r7 fails to build clang, worse with clang16 (error: non-void function 'TrackText' should return a value)
Summary: x11-terms/kterm-6.2.0-r7 fails to build clang, worse with clang16 (error: non...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
Depends on:
Blocks: systemwide-clang c99-porting, clang-16-porting
  Show dependency tree
Reported: 2022-09-30 10:15 UTC by Ionen Wolkens
Modified: 2022-09-30 11:02 UTC (History)
0 users

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

build.log + emerge --info.txt (build.log-emerge-info.txt,125.05 KB, text/plain)
2022-09-30 10:15 UTC, Ionen Wolkens

Note You need to log in before you can comment on or make changes to this bug.
Description Ionen Wolkens gentoo-dev 2022-09-30 10:15:55 UTC
Created attachment 814777 [details]
build.log + emerge --info.txt

With any clang there's the usual return value issues:

button.c:1268:50: error: non-void function 'TrackText' should return a value [-Wreturn-type]
            trow == old_endrow   && tcol == old_endcol) return;

With clang16 there will be wall of implicit failures:

cursor.c:47:2: error: call to undeclared function 'TrackText'; ISO C99 and later do not support
      implicit function declarations [-Werror,-Wimplicit-function-declaration]
        TrackText(0, 0, 0, 0);

Haven't looked deeper for further issues.

There's also the imake cpp bit but I'll fix that one soon.
Comment 1 Larry the Git Cow gentoo-dev 2022-09-30 11:02:10 UTC
The bug has been referenced in the following commit(s):

commit 7f04a2241960a2de4b91f9ae55e26cb1b4f81ae0
Author:     Ionen Wolkens <>
AuthorDate: 2022-09-30 10:17:07 +0000
Commit:     Ionen Wolkens <>
CommitDate: 2022-09-30 10:48:14 +0000

    x11-terms/kterm: force gcc -E for imake's generation
    Requires traditional cpp support and is broken in all sort of ways
    with clang-cpp / -E. Can still use clang & friends for everything else.
    Ideally these packages need to be built another way or last rited,
    imake will just accumulate more problems.
    wrt #873631, this only helps a bit and still has several clang issues.
    Signed-off-by: Ionen Wolkens <>

 x11-terms/kterm/kterm-6.2.0-r7.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)