[GH-ISSUE #1939] Leftover cpptrace include? #1203

Closed
opened 2026-10-29 14:49:53 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @DocShotgun on GitHub (Apr 22, 2026).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1939

Reminder

  • I have read the above rules and searched the existing issues.

System Info

9544a8960d

Reproduction

Attempting to build the latest kt-kernel results in:

  /home/docshotgun/ktransformers/kt-kernel/ext_bindings.cpp:15:10: fatal error: cpptrace/cpptrace.hpp: No such file or directory
     15 | #include <cpptrace/cpptrace.hpp>
        |          ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.

A search of the codebase reveals only a single function warmup_cpptrace() in kt-kernel/ext_bindings.cpp that references cpptrace.

The commit description for 9544a8960d mentions a squashed commit with the description * revert CMakeLists.txt to main: remove debug flags and cpptrace dep, so perhaps it's not intended for cpptrace to be required for compilation?

Others

No response

Originally created by @DocShotgun on GitHub (Apr 22, 2026). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1939 ### Reminder - [x] I have read the above rules and searched the existing issues. ### System Info 9544a8960d4dcc3db6046fc7d2a963b48136f72e ### Reproduction Attempting to build the latest `kt-kernel` results in: ```text /home/docshotgun/ktransformers/kt-kernel/ext_bindings.cpp:15:10: fatal error: cpptrace/cpptrace.hpp: No such file or directory 15 | #include <cpptrace/cpptrace.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. ``` A search of the codebase reveals only a single function `warmup_cpptrace()` in `kt-kernel/ext_bindings.cpp` that references `cpptrace`. The commit description for 9544a8960d4dcc3db6046fc7d2a963b48136f72e mentions a squashed commit with the description `* revert CMakeLists.txt to main: remove debug flags and cpptrace dep`, so perhaps it's not intended for `cpptrace` to be required for compilation? ### Others _No response_
Author
Owner

@SchenbergZY commented on GitHub (Apr 23, 2026):

If you don't need LoRA, you can checkout commit before and install

<!-- gh-comment-id:4306160959 --> @SchenbergZY commented on GitHub (Apr 23, 2026): If you don't need LoRA, you can checkout commit before and install
Author
Owner

@DocShotgun commented on GitHub (Apr 23, 2026):

If you don't need LoRA, you can checkout commit before and install

Sure, but I was just pointing out a suspected oversight on the latest commit.

<!-- gh-comment-id:4306353399 --> @DocShotgun commented on GitHub (Apr 23, 2026): > If you don't need LoRA, you can checkout commit before and install Sure, but I was just pointing out a suspected oversight on the latest commit.
Author
Owner

@JimmyPeilinLi commented on GitHub (Apr 25, 2026):

Thanks for pointing this out. We later found the same leftover cpptrace path on our side as well.

The default kt-kernel build should not require cpptrace; this was fixed in commit 85308615b98bf9262f5e90341f51cb7e87a08a4d / #1945, where the cpptrace include and crash-handler code were guarded behind KTRANSFORMERS_ENABLE_CPPTRACE, and the dependency was made opt-in via CMake.

Please update to the latest main or any commit after 85308615 and rebuild. Thanks again for catching this.

<!-- gh-comment-id:4319575031 --> @JimmyPeilinLi commented on GitHub (Apr 25, 2026): Thanks for pointing this out. We later found the same leftover `cpptrace` path on our side as well. The default `kt-kernel` build should not require `cpptrace`; this was fixed in commit [`85308615b98bf9262f5e90341f51cb7e87a08a4d`](https://github.com/kvcache-ai/ktransformers/commit/85308615b98bf9262f5e90341f51cb7e87a08a4d) / #1945, where the `cpptrace` include and crash-handler code were guarded behind `KTRANSFORMERS_ENABLE_CPPTRACE`, and the dependency was made opt-in via CMake. Please update to the latest `main` or any commit after `85308615` and rebuild. Thanks again for catching this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#1203
No description provided.