Failed to Start Self-Compiled TiKV Using TiUP

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

Original topic: tiup 启动自己编译的 tikv 失败

| username: szza

[Test Environment for TiDB]
[TiDB Version] v6.2
[Encountered Issue]
After compiling tikv-6.2 by myself, I used tiup to start it and encountered the following error:

[Reproduction Steps]
The startup command used:

tiup playground --kv.binpath ~/codespace/code/tikv/target/debug/tikv-server v6.2.0
| username: pingyu | Original post link

It should be unrelated to tiup. The compiled tikv-server encountered an illegal instruction when running. You can try executing ./tikv-server -V to see if it is the same error.

Have there been any code modifications? What is the gcc version?
Then, it is recommended to upgrade the rust toolchain to the latest version, and then try make clean build again.

| username: szza | Original post link

The code has not been modified, just cloned directly

$ ./tikv-server -V
TiKV
Release Version:   6.2.0
Edition:           Community
Git Commit Hash:   4f717716a515a8047d91f4cbeef219f41c20dc2c
Git Commit Branch: release-6.2
UTC Build Time:    2022-11-02 08:41:58
Rust Version:      rustc 1.62.0-nightly (7c4b47696 2022-04-30)
Enable Features:   pprof-fp jemalloc mem-profiling portable sse test-engine-kv-rocksdb test-engine-raft-raft-engine cloud-aws cloud-gcp cloud-azure
Profile:           debug

The gcc version is gcc-11

But using the TiKV provided by tiup can run, is it related to the gcc version?

| username: tidb狂热爱好者 | Original post link

Is it because the version number is incorrect? Should TiDB also be compiled once?

| username: szza | Original post link

Running TiKV and PD alone also doesn’t work.

| username: szza | Original post link

Switching gcc to version 7.x will solve the issue.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.