Skip to content

Build fails: grpcxx.cpp: error: no match for 'operator+' (operand types are 'std::basic_string_view<char>' and 'const char [3]') #58

@barracuda156

Description

@barracuda156

@uatuko Could you please take a look?

--->  Configuring grpcxx
Executing:  cd "/opt/local/var/macports/build/grpcxx-457b5473/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt12/cmake" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt12/cmake" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DGRPCXX_HERMETIC_BUILD=OFF -DGRPCXX_BUILD_EXAMPLES=OFF -DGRPCXX_BUILD_EXPERIMENTS=OFF -DGRPCXX_BUILD_TESTING=ON -DGRPCXX_USE_ASIO=ON -DBOOST_ROOT=/opt/local/libexec/boost/1.81 -DBOOSTROOT=/opt/local/libexec/boost/1.81 -DBOOST_INCLUDEDIR=/opt/local/libexec/boost/1.81/include -DBOOST_LIBRARYDIR=/opt/local/libexec/boost/1.81/lib -DBOOST_INCLUDE_DIR=/opt/local/libexec/boost/1.81/include -DBOOST_LIBRARY_DIR=/opt/local/libexec/boost/1.81/lib -DBOOST_LIB_DIR=/opt/local/libexec/boost/1.81/lib -DBoost_NO_SYSTEM_PATHS=ON -DBoost_INCLUDE_DIR=/opt/local/libexec/boost/1.81/include -DBoost_DIR=/opt/local/libexec/boost/1.81 -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2 
-- The CXX compiler identification is GNU 14.3.0
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/local/bin/g++-mp-14 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /opt/local/libexec/boost/1.81/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.81")
-- Found Boost 1.81.0 at /opt/local/libexec/boost/1.81/include
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libnghttp2>=1.64.0'
--   Found libnghttp2, version 1.68.0
-- Found Protobuf: /opt/local/lib/libprotobuf.dylib (found suitable version "6.31.1", minimum required is "3.15.0")
-- Found GTest: /opt/local/lib/cmake/GTest/GTestConfig.cmake (found suitable version "1.17.0", minimum required is "1.15.2")
-- Configuring done (4.1s)
-- Generating done (0.3s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BOOSTROOT
    BOOST_INCLUDEDIR
    BOOST_INCLUDE_DIR
    BOOST_LIBRARYDIR
    BOOST_LIBRARY_DIR
    BOOST_LIB_DIR
    CMAKE_C_COMPILER
    CMAKE_OBJCXX_COMPILER
    CMAKE_OBJC_COMPILER
    CMAKE_POLICY_DEFAULT_CMP0025
    CMAKE_POLICY_DEFAULT_CMP0060


-- Build files have been written to: /opt/local/var/macports/build/grpcxx-457b5473/work/build
--->  Building grpcxx
Executing:  cd "/opt/local/var/macports/build/grpcxx-457b5473/work/build" && /usr/bin/make -j2 -w all VERBOSE=ON 
make: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
/opt/local/bin/cmake -S/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2 -B/opt/local/var/macports/build/grpcxx-457b5473/work/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/grpcxx-457b5473/work/build/CMakeFiles /opt/local/var/macports/build/grpcxx-457b5473/work/build//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
/usr/bin/make  -f lib/grpcxx/CMakeFiles/grpcxx.dir/build.make lib/grpcxx/CMakeFiles/grpcxx.dir/depend
/usr/bin/make  -f src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/build.make src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2 /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx /opt/local/var/macports/build/grpcxx-457b5473/work/build /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx/CMakeFiles/grpcxx.dir/DependInfo.cmake "--color="
make[2]: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2 /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx /opt/local/var/macports/build/grpcxx-457b5473/work/build /opt/local/var/macports/build/grpcxx-457b5473/work/build/src/protoc-gen-grpcxx /opt/local/var/macports/build/grpcxx-457b5473/work/build/src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/DependInfo.cmake "--color="
make[2]: Leaving directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
/usr/bin/make  -f src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/build.make src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/build
make[2]: Leaving directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
/usr/bin/make  -f lib/grpcxx/CMakeFiles/grpcxx.dir/build.make lib/grpcxx/CMakeFiles/grpcxx.dir/build
make[2]: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
make[2]: Entering directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
[  6%] Building CXX object src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/grpcxx.cpp.o
[ 13%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/context.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/src/protoc-gen-grpcxx && /opt/local/bin/g++-mp-14 -DFMT_SHARED -DPLUGIN_NAME=\"protoc-gen-grpcxx\" -DPLUGIN_VERSION=\"0.6.2\" -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx -isystem /opt/local/include/libfmt12 -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/grpcxx.cpp.o -MF CMakeFiles/protoc-gen-grpcxx.dir/grpcxx.cpp.o.d -o CMakeFiles/protoc-gen-grpcxx.dir/grpcxx.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/context.cpp.o -MF CMakeFiles/grpcxx.dir/context.cpp.o.d -o CMakeFiles/grpcxx.dir/context.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/context.cpp
[ 20%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/message.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/message.cpp.o -MF CMakeFiles/grpcxx.dir/message.cpp.o.d -o CMakeFiles/grpcxx.dir/message.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/message.cpp
[ 26%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/request.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/request.cpp.o -MF CMakeFiles/grpcxx.dir/request.cpp.o.d -o CMakeFiles/grpcxx.dir/request.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/request.cpp
[ 33%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/server_base.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/server_base.cpp.o -MF CMakeFiles/grpcxx.dir/server_base.cpp.o.d -o CMakeFiles/grpcxx.dir/server_base.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/server_base.cpp
[ 40%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/asio/conn.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/asio/conn.cpp.o -MF CMakeFiles/grpcxx.dir/asio/conn.cpp.o.d -o CMakeFiles/grpcxx.dir/asio/conn.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/asio/conn.cpp
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp: In lambda function:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:83: error: no match for 'operator+' (operand types are 'std::basic_string_view<char>' and 'const char [3]')
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
      |                                                              |                      |
      |                                                              |                      const char [3]
      |                                                              std::basic_string_view<char>
In file included from /opt/local/include/gcc14/c++/string:48,
                 from /opt/local/include/google/protobuf/compiler/code_generator.h:19,
                 from /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.h:3,
                 from /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:1:
/opt/local/include/gcc14/c++/bits/stl_iterator.h:627:5: note: candidate: 'template<class _Iterator> constexpr std::reverse_iterator<_IteratorL> std::operator+(typename reverse_iterator<_IteratorL>::difference_type, const reverse_iterator<_IteratorL>&)'
  627 |     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/stl_iterator.h:627:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'const std::reverse_iterator<_IteratorL>' and 'const char [3]'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/stl_iterator.h:1798:5: note: candidate: 'template<class _Iterator> constexpr std::move_iterator<_IteratorL> std::operator+(typename move_iterator<_IteratorL>::difference_type, const move_iterator<_IteratorL>&) requires requires{{std::operator+::__x->base() + std::operator+::__n} -> decltype(auto) [requires std::same_as<<placeholder>, _Iterator>];}'
 1798 |     operator+(typename move_iterator<_Iterator>::difference_type __n,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/stl_iterator.h:1798:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'const char [3]'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
In file included from /opt/local/include/gcc14/c++/string:54:
/opt/local/include/gcc14/c++/bits/basic_string.h:3598:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const basic_string<_CharT, _Traits, _Alloc>&, const basic_string<_CharT, _Traits, _Alloc>&)'
 3598 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3598:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3616:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const basic_string<_CharT, _Traits, _Alloc>&)'
 3616 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3616:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'const _CharT*' and 'std::basic_string_view<char>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3635:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const basic_string<_CharT, _Traits, _Alloc>&)'
 3635 |     operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs)
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3635:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'const char [3]'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3652:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)'
 3652 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3652:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3670:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const basic_string<_CharT, _Traits, _Alloc>&, _CharT)'
 3670 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3670:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3682:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(basic_string<_CharT, _Traits, _Alloc>&&, const basic_string<_CharT, _Traits, _Alloc>&)'
 3682 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3682:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3689:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const basic_string<_CharT, _Traits, _Alloc>&, basic_string<_CharT, _Traits, _Alloc>&&)'
 3689 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3689:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3696:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(basic_string<_CharT, _Traits, _Alloc>&&, basic_string<_CharT, _Traits, _Alloc>&&)'
 3696 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3696:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3719:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, basic_string<_CharT, _Traits, _Alloc>&&)'
 3719 |     operator+(const _CharT* __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3719:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'const _CharT*' and 'std::basic_string_view<char>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3726:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, basic_string<_CharT, _Traits, _Alloc>&&)'
 3726 |     operator+(_CharT __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3726:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'const char [3]'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3733:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(basic_string<_CharT, _Traits, _Alloc>&&, const _CharT*)'
 3733 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3733:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3740:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr std::basic_string<_CharT, _Traits, _Alloc> std::operator+(basic_string<_CharT, _Traits, _Alloc>&&, _CharT)'
 3740 |     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
      |     ^~~~~~~~
/opt/local/include/gcc14/c++/bits/basic_string.h:3740:5: note:   template argument deduction/substitution failed:
/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/src/protoc-gen-grpcxx/grpcxx.cpp:71:85: note:   'std::basic_string_view<char>' is not derived from 'std::basic_string<_CharT, _Traits, _Alloc>'
   71 |                                         result += name.substr(start, end - start) + "::";
      |                                                                                     ^~~~
make[2]: *** [src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/grpcxx.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
make[1]: *** [src/protoc-gen-grpcxx/CMakeFiles/protoc-gen-grpcxx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 46%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/asio/server.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/asio/server.cpp.o -MF CMakeFiles/grpcxx.dir/asio/server.cpp.o.d -o CMakeFiles/grpcxx.dir/asio/server.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/asio/server.cpp
[ 53%] Building CXX object lib/grpcxx/CMakeFiles/grpcxx.dir/h2/session.cpp.o
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/g++-mp-14 -DASIO_NS=::boost::asio -DBOOST_ASIO_NO_DEPRECATED -DBOOST_ASIO_STANDALONE -DGRPCXX_USE_ASIO -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/.. -I/opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx -I/opt/local/libexec/boost/1.81/include -isystem /opt/local/include -pipe -I/opt/local/libexec/boost/1.81/include -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/boost/1.81/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -MD -MT lib/grpcxx/CMakeFiles/grpcxx.dir/h2/session.cpp.o -MF CMakeFiles/grpcxx.dir/h2/session.cpp.o.d -o CMakeFiles/grpcxx.dir/h2/session.cpp.o -c /opt/local/var/macports/build/grpcxx-457b5473/work/grpcxx-0.6.2/lib/grpcxx/h2/session.cpp
[ 60%] Linking CXX static library libgrpcxx.a
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/cmake -P CMakeFiles/grpcxx.dir/cmake_clean_target.cmake
cd /opt/local/var/macports/build/grpcxx-457b5473/work/build/lib/grpcxx && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/grpcxx.dir/link.txt --verbose=ON
/opt/local/bin/ar qc libgrpcxx.a CMakeFiles/grpcxx.dir/context.cpp.o CMakeFiles/grpcxx.dir/message.cpp.o CMakeFiles/grpcxx.dir/request.cpp.o CMakeFiles/grpcxx.dir/server_base.cpp.o CMakeFiles/grpcxx.dir/asio/conn.cpp.o CMakeFiles/grpcxx.dir/asio/server.cpp.o CMakeFiles/grpcxx.dir/h2/session.cpp.o
/opt/local/bin/ranlib libgrpcxx.a
make[2]: Leaving directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
[ 60%] Built target grpcxx
make[1]: Leaving directory `/opt/local/var/macports/build/grpcxx-457b5473/work/build'
make: *** [all] Error 2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions