Compilation error in TiKV source code: error[E0425]: cannot find function `make_txn_error` in module `crate::storage::mvcc::txn`

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 编译TiKV源码报错error[E0425]: cannot find function make_txn_error in module crate::storage::mvcc::txn

| username: suci

[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path] After pulling the TiKV source code in the Linux subsystem and executing the make command, I encountered this error after resolving a series of errors and couldn’t find a solution.
[Encountered Issue: Phenomenon and Impact]
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]


The screenshot is as follows. Please take a look, teachers. It would be great if you could help!

| username: redgame | Original post link

Could you please provide the document and the compilation environment details?

| username: changpeng75 | Original post link

What are the versions of the operating system, source code, and rustc?

| username: dba远航 | Original post link

I suspect it is caused by the lack of appropriate components in the system.

| username: TiDBer_jYQINSnf | Original post link

I usually compile like this:
make build_dist_release