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 test error on UBUNTU22.04,version3.0.9 #204

Open
codeeeeeeeeeeeee opened this issue Jun 20, 2024 · 2 comments
Open

build test error on UBUNTU22.04,version3.0.9 #204

codeeeeeeeeeeeee opened this issue Jun 20, 2024 · 2 comments

Comments

@codeeeeeeeeeeeee
Copy link

[ 69%] Building CXX object src/test/CMakeFiles/lucene++-tester.dir/analysis/KeywordAnalyzerTest.cpp.o
[ 69%] Building CXX object src/test/CMakeFiles/lucene++-tester.dir/analysis/LengthFilterTest.cpp.o
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
cc1plus: warning: /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx.gch: created and used with different settings of %<-fpie%> [-Winvalid-pch]
In file included from /home/LucenePlusPlus/src/test/gtest/googletest/include/gtest/gtest_pred_impl.h:39,
from /usr/include/gtest/gtest.h:387,
from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.cxx:21,
from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx:4,
from :
/home/LucenePlusPlus/src/test/gtest/googletest/include/gtest/gtest.h:160:11: error: redefinition of ‘const int testing::kMaxStackTraceDepth’
160 | const int kMaxStackTraceDepth = 100;
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.cxx:21,
from /home/LucenePlusPlus/build/src/test/cotire/lucene++-tester_CXX_prefix.hxx:4,
from :

@codeeeeeeeeeeeee
Copy link
Author

happened in make time,i dont understand why,could someone tell me how to slove this problem,thx!

@codeeeeeeeeeeeee
Copy link
Author

i think i find the reason,uninstall the libgtest-dev can solve this problem....

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

1 participant