alibaba / alibaba/euler

make的时候出现错误

Open
#134 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.9k
Forks
553
PR merge metrics
No merged PRs in 30d

Description

错误信息:
/home/byli/euler/euler/client/graph_config.cc: In member function ‘bool euler::client::GraphConfig::Get(const string&, int*) const’:
/home/byli/euler/euler/client/graph_config.cc:75:34: warning: catching polymorphic type ‘class std::invalid_argument’ by value [-Wcatch-value=]
} catch (std::invalid_argument e) {
^
/home/byli/euler/third_party/grpc/third_party/boringssl/crypto/x509/x509_test.cc: In member function ‘virtual void X509Test_ZeroLengthsWithX509PARAM_Test::TestBody()’:
/home/byli/euler/third_party/grpc/third_party/boringssl/crypto/x509/x509_test.cc:712:10: error: declaration of ‘struct X509Test_ZeroLengthsWithX509PARAM_Test::TestBody()::Test’ shadows a previous local [-Werror=shadow]
struct Test {
^~~~
In file included from /home/byli/euler/third_party/grpc/third_party/boringssl/crypto/x509/x509_test.cc:19:
/home/byli/euler/third_party/grpc/third_party/boringssl/third_party/googletest/include/gtest/gtest.h:375:23: note: shadowed declaration is here
class GTEST_API_ Test {
^
/home/byli/euler/euler/client/local_graph.cc: In function ‘euler::client::IDWeightPairVec euler::client::{anonymous}::NeighborsBuilder(const std::vector >&, const std::vector&, int)’:
/home/byli/euler/euler/client/local_graph.cc:187:76: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class std::tuple’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
memcpy(neighbor_vec[i].data(), data, sizeof(data[0]) * neighbor_nums[i]);
^
In file included from /data/share/opt/include/c++/8.2.0/functional:54,
from /home/byli/euler/./euler/client/local_graph.h:21,
from /home/byli/euler/euler/client/local_graph.cc:16:
/data/share/opt/include/c++/8.2.0/tuple:556:11: note: ‘class std::tuple’ declared here
class tuple : public _Tuple_impl<0, _Elements...>
^~~~~
cc1plus: all warnings being treated as errors
third_party/grpc/third_party/boringssl/crypto/CMakeFiles/crypto_test.dir/build.make:634: recipe for target 'third_party/grpc/third_party/boringssl/crypto/CMakeFiles/crypto_test.dir/x509/x509_test.cc.o' failed
make[2]: *** [third_party/grpc/third_party/boringssl/crypto/CMakeFiles/crypto_test.dir/x509/x509_test.cc.o] Error 1
CMakeFiles/Makefile2:2512: recipe for target 'third_party/grpc/third_party/boringssl/crypto/CMakeFiles/crypto_test.dir/all' failed
make[1]: *** [third_party/grpc/third_party/boringssl/crypto/CMakeFiles/crypto_test.dir/all] Error 2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with the project’s make build and inspect the crypto_test target in the reported CMake output. Read third_party/grpc/third_party/boringssl/crypto/x509/x509_test.cc alongside euler/client/graph_config.cc and euler/client/local_graph.cc. Done means the reported build completes without these errors or warnings treated as errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.