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

Bug 873631

Summary: x11-terms/kterm-6.2.0-r7 fails to build clang, worse with clang16 (error: non-void function 'TrackText' should return a value)
Product: Gentoo Linux Reporter: Ionen Wolkens <ionen>
Component: Current packagesAssignee: CJK Team <cjk>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963, 870412    
Attachments: build.log + emerge --info.txt

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(-)