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

Build From Source Code Error in CentOS 7, Conan install grpc Error #544

Closed
zjx1230 opened this issue May 6, 2024 · 4 comments
Closed

Build From Source Code Error in CentOS 7, Conan install grpc Error #544

zjx1230 opened this issue May 6, 2024 · 4 comments
Labels

Comments

@zjx1230
Copy link

zjx1230 commented May 6, 2024

Hello Everyone! I want to build the knowhere from the source code in CentOS 7. I want to install the pyknowhere package. I've successfully built milvus but still can't get this package, so I started building knowhere, but failed. The following error message is displayed:

/opt/rh/devtoolset-11/root/usr/include/c++/11/string_view:259:24: note: source object allocated here

259 | return *(this->_M_str + this->_M_len - 1);

[ 89%] Linking CXX static library libgrpc.a

[ 89%] Built target grpc

gmake: *** [all] Error 2

grpc/1.50.1:

grpc/1.50.1: ERROR: Package '198612d328e261593a775e483d265939ae94688c' build failed

grpc/1.50.1: WARN: Build folder
/root/.conan/data/grpc/1.50.1///build/198612d328e261593a775e483d265939ae94688c/build/Release

ERROR: grpc/1.50.1: Error in build() method, line 211

cmake.build()

ConanException: Error 2 while executing cmake --build "/root/.conan/data/grpc/1.50.1///build/198612d328e261593a775e483d265939ae94688c/build/Release" '--' '-j80'

I followed the guide on github and reported an error when I executed this line of commands:

conan install .. --build=missing -o with_ut=True -s compiler.libcxx=libstdc++11 -s build_type=Release

OS: CentOS 7

@zjx1230
Copy link
Author

zjx1230 commented May 6, 2024

I change the command conan install .. --build=missing -o with_ut=True -s compiler.libcxx=libstdc++ -s build_type=Release, it is successful.

@zjx1230
Copy link
Author

zjx1230 commented May 6, 2024

But I will encounter the warning:

conanfile.py (knowhere/None): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior

Is there a problem with this?

@alexanderguzhva
Copy link
Collaborator

But I will encounter the warning:

conanfile.py (knowhere/None): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior

Is there a problem with this?

as far as I understand, it is just a default warning. Conan uses a default auto-generated profile if no profile is specified. Personally, I build knowhere with custom profiles.

Copy link
Contributor

github-actions bot commented Jun 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@github-actions github-actions bot added the stale label Jun 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants