Skip to content

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

@duanjf2

Description

@duanjf2

[ 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 :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions