Bug 509458 - Build fails since 893c64a46ced18f2f54b50b0c2febb29c87ee5f7
Summary: Build fails since 893c64a46ced18f2f54b50b0c2febb29c87ee5f7
Status: RESOLVED FIXED
Alias: None
Product: ktextaddons
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-13 15:02 UTC by yuki
Modified: 2025-09-13 15:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuki 2025-09-13 15:02:02 UTC
SUMMARY

On my system, build fails using kde-builder since commit 893c64a46ced18f2f54b50b0c2febb29c87ee5f7.
It seems to be an issue with the code generation, but I'm not too sure, and definitely not well-versed enough in CMake to figure out how to solve it.

STEPS TO REPRODUCE
1.  `kde-builder ktextaddons`

OBSERVED RESULT

Build fails with the following error in the log:
```
In file included from …/kde/build/ktextaddons/textautogeneratetext/TextAutoGenerateText/TextAutoGenerateExportChatBaseJob:1,
                 from …/kde/src/ktextaddons/textautogeneratetext/core/jobs/textautogenerateexportchatasjsonjob.h:9,
                 from …/kde/src/ktextaddons/textautogeneratetext/core/jobs/textautogenerateexportchatasjsonjob.cpp:7:
…/kde/build/ktextaddons/textautogeneratetext/textautogeneratetext/textautogenerateexportchatbasejob.h:1:10: fatal error: ../../../../src/ktextaddons/textautogeneratetext/core/textautogenerateexportchatbasejob.h: No such file or directory
    1 | #include "../../../../src/ktextaddons/textautogeneratetext/core/textautogenerateexportchatbasejob.h" // IWYU pragma: export
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```

EXPECTED RESULT

Build should succeed!

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.16.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7640U w/ Radeon 760M Graphics
Memory: 16 Gio of RAM (14.9 Gio usable)
Graphics Processor: AMD Radeon 760M Graphics

ADDITIONAL INFORMATION

Editing `kde/build/ktextaddons/textautogeneratetext/textautogeneratetext/textautogenerateexportchatbasejob.h`'s include line to add one more `../` fixes the issue. Seems like the codegen isn't generating relative paths correctly!
Comment 1 Laurent Montel 2025-09-13 15:04:12 UTC
Remove your build dir and regenerate it.
Regards.
Comment 2 yuki 2025-09-13 15:19:10 UTC
(In reply to Laurent Montel from comment #1)
> Remove your build dir and regenerate it.
> Regards.

oops, should've tried this earlier 😅