Hubert Tong via llvm-dev
2021-May-17 00:08 UTC
[llvm-dev] Build warnings re: [llvm/llvm-project] Bump googletest to 1.10.0 (d4d80a2)
@benny.kra at gmail.com <benny.kra at googlemail.com> I am also seeing the warnings (mentioned below) out of GCC: ``` Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64le-linux-gnu/9/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: powerpc64le-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=powerpc64le-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-objc-gc=auto --enable-secureplt --with-cpu=power8 --enable-targets=powerpcle-linux --disable-multilib --enable-multiarch --disable-werror --with-long-double-128 --enable-offload-targets=nvptx-none=/build/gcc-9-xsOZPb/gcc-9-9.3.0/debian/tmp-nvptx/usr --without-cuda-driver --enable-checking=release --build=powerpc64le-linux-gnu --host=powerpc64le-linux-gnu --target=powerpc64le-linux-gnu Thread model: posix gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) ``` On Sat, May 15, 2021 at 9:11 AM Danila Malyutin <notifications at github.com> wrote:> Hm, I get errors compiling with GCC 6.2.0: > > ../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::LoopCallbacksTest_InstrumentedInvalidatingPasses_Test::TestBody()’: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:894:76: error: no matching function for call to ‘Invoke(void(llvm::Loop&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&))’ > > > > .WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateLoop)), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr) > > > > internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr, > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:894:76: note: candidate expects 2 arguments, 1 provided > > > > .WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateLoop)), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&); typename std::decay<_Tp>::type = void (*)(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)] > > > > typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) { > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::Loop&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&) {aka void(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)}’ to ‘void (&&)(llvm::Loop&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)’ > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::LoopCallbacksTest_InstrumentedInvalidatingLoopNestPasses_Test::TestBody()’: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:944:64: error: no matching function for call to ‘Invoke(void(llvm::LoopNest&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&))’ > > > > .WillOnce(DoAll(Invoke(ExtraPassHandle.invalidateLoopNest), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr) > > > > internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr, > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:944:64: note: candidate expects 2 arguments, 1 provided > > > > .WillOnce(DoAll(Invoke(ExtraPassHandle.invalidateLoopNest), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&); typename std::decay<_Tp>::type = void (*)(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)] > > > > typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) { > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::LoopNest&, llvm::LoopAnalysisManager&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&) {aka void(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)}’ to ‘void (&&)(llvm::LoopNest&, llvm::AnalysisManager<llvm::Loop, llvm::LoopStandardAnalysisResults&>&, llvm::LoopStandardAnalysisResults&, llvm::LPMUpdater&)’ > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp: In member function ‘virtual void {anonymous}::CGSCCCallbacksTest_InstrumentedInvalidatingPasses_Test::TestBody()’: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:1142:75: error: no matching function for call to ‘Invoke(void(llvm::LazyCallGraph::SCC&, llvm::CGSCCAnalysisManager&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&))’ > > > > .WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateSCC)), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: candidate: template<class Class, class MethodPtr> testing::internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke(Class*, MethodPtr) > > > > internal::InvokeMethodAction<Class, MethodPtr> Invoke(Class* obj_ptr, > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1101:48: note: template argument deduction/substitution failed: > > > > ../unittests/IR/PassBuilderCallbacksTest.cpp:1142:75: note: candidate expects 2 arguments, 1 provided > > > > .WillOnce(DoAll(WithArgs<0, 1, 2, 3>(Invoke(PassHandle.invalidateSCC)), > > > > ^ > > > > In file included from ../utils/unittest/googlemock/include/gmock/gmock.h:59:0, > > > > from ../include/llvm/Testing/Support/Error.h:16, > > > > from ../unittests/IR/PassBuilderCallbacksTest.cpp:9: > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: candidate: typename std::decay<_Tp>::type testing::Invoke(FunctionImpl&&) [with FunctionImpl = void(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&); typename std::decay<_Tp>::type = void (*)(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)] > > > > typename std::decay<FunctionImpl>::type Invoke(FunctionImpl&& function_impl) { > > > > ^~~~~~ > > > > ../utils/unittest/googlemock/include/gmock/gmock-actions.h:1094:41: note: no known conversion for argument 1 from ‘void(llvm::LazyCallGraph::SCC&, llvm::CGSCCAnalysisManager&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) {aka void(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)}’ to ‘void (&&)(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&)’ > > > And also some warnings like > > warning: ISO C++11 requires at least one argument for the "..." in a variadic macro > > TYPED_TEST_SUITE(RangeSetTest, IntTypes); > > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/llvm/llvm-project/commit/d4d80a2903c1d074008cac653cdb0b5fe39b8a00#commitcomment-50854812>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAU2TA2YPKBA57N4FCGTWHTTNZXI5ANCNFSM4454CZGA> > . >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210516/fbefd016/attachment.html>