Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 38 build issue #748

Open
zamazan4ik opened this issue May 31, 2023 · 3 comments
Open

Fedora 38 build issue #748

zamazan4ik opened this issue May 31, 2023 · 3 comments

Comments

@zamazan4ik
Copy link

zamazan4ik commented May 31, 2023

Hi.

I am trying to build the latest TiKV master branch (e159200cb2458c3744ffbab9bbf284e71f03b866) on Fedora 38 but get the following errors on build RocksDB component when I run make release: https://pastebin.com/TEitt25v (sorry for the errors in Russian).

The default GCC in Fedora 38 is GCC 13.1.1. I suggest at least removing -Werror flag from the build scripts to avoid such errors in the future.

@tabokie
Copy link
Member

tabokie commented Jun 1, 2023

I see there're many real errors aside from warnings being converted to errors. We don't currently have gcc-11 CI so the testing is quite lacking. You are welcome to fix those issues in https://github.com/tikv/rocksdb.

@JmPotato
Copy link
Member

JmPotato commented Aug 7, 2023

I also encountered the same compile problem on the latest Arch Linux with gcc-13. After some investigation and attempts, it turned out the fastest way to solve this is to install and use the old version gcc like gcc-9 to compile like:

CC=gcc-9 make

Just adding -Werror flag won't fix the build since there are a lot of other incompatible problems with the newer compiler. Hope this would help you.

@dveeden
Copy link

dveeden commented Nov 7, 2023

facebook/rocksdb@fb9a025 will fix some of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants