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

cmake -B build error #186

Open
Lrrrr549 opened this issue Nov 10, 2023 · 6 comments
Open

cmake -B build error #186

Lrrrr549 opened this issue Nov 10, 2023 · 6 comments

Comments

@Lrrrr549
Copy link

CMake Error in third_party/sentencepiece/src/CMakeLists.txt: Target "sentencepiece-static" requires the language dialect "CXX17" (with compiler extensions), but CMake does not know the compile flags to use to enable it.
环境是Red Hat 9.3.1-2,cmake3 version 3.17.5,gcc (GCC) 9.3.1,g++ (GCC) 9.3.1
这是什么原因呢

@zzdxjtu
Copy link

zzdxjtu commented Nov 14, 2023

我也遇到这个问题了,请问解决了吗? @Lrrrr549

@Lrrrr549
Copy link
Author

我也遇到这个问题了,请问解决了吗? @Lrrrr549

并没有😮‍💨,最后选择安装Python库了

@catmeowjiao
Copy link

重新clone试试?

@catmeowjiao
Copy link

更新gcc和g++试试

@Destiny-Lu
Copy link

更新gcc和g++试试

实测有用,centos7 gcc 4.8 -> 8.3.1 build成功

@wangluoxiaozhazha
Copy link

wangluoxiaozhazha commented Mar 20, 2024

将gcc和g++版本升级后,把项目删了,重新拉取代码,再编译就可以了

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

5 participants