OpenAtomFoundation / pika

Pika is a Redis-Compatible database developed by Qihoo's infrastructure team.
BSD 3-Clause "New" or "Revised" License
5.85k stars 1.19k forks source link

linking error while build pika #2738

Closed chienguo closed 3 months ago

chienguo commented 3 months ago

Is this a regression?

Yes

Description

Encountering a weird linking error while trying to build pika, as shown below.

Snipaste_2024-06-17_09-55-48

The internet said that it may caused by different components compiling by C++ versions not compatible. But we already specify the CXX standard and flags in CMakeLists.txt, and dependency libraries should inherit it. To overcome it, I have to explicitly pass those while adding external projects like this:

Snipaste_2024-06-17_09-54-42

Please provide a link to a minimal reproduction of the bug

git switch v3.5.4-rc1 --detach ./build.sh

Screenshots or videos

No response

Please provide the version you discovered this bug in (check about page for version information)

Version: v3.5.4-rc1
OS: Arch Linux, x86-64
compiler: clang 17

Anything else?

No response