seastar icon indicating copy to clipboard operation
seastar copied to clipboard

*** [CMakeFiles/yaml-cpp.dir/src/convert.cpp.o] Error 1

Open aubi1kenobi opened this issue 5 years ago • 2 comments

Hi,

Still trying to build Seastar from source on CentOS 7. After pointing Seastar cooking.sh to gcc 8 instead of 10, got alot less warnings and messages on the screen. Cooking complained quite a bit about DPDK, but continued, until:

_FAILED: _cooking/ingredient/yaml-cpp/stamp/ingredient_yaml-cpp-build In file included from /usr/local/include/boost/mpl/next.hpp:17, from /home/aubs/car/slotts/Dev/Gcc/seastarA/build/cooking/ingredient/yaml-cpp/src/src/convert.cpp:3:

/usr/local/include/boost/mpl/next_prior.hpp:29:8: note: ‘boost::mpl::next’ struct next ^~~~ gmake[2]: *** [CMakeFiles/yaml-cpp.dir/src/convert.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/yaml-cpp.dir/all] Error 2 gmake: *** [all] Error 2

... [100%] Linking CXX shared library libcryptopp.so [100%] Built target cryptopp-shared ninja: build stopped: subcommand failed.

Thank you

aubi1kenobi avatar Oct 07 '20 16:10 aubi1kenobi

Attempts to cook cryptopp and yaml-cpp failed for me as well on Fedora 34

yaml-cpp

FAILED: _cooking/ingredient/yaml-cpp/stamp/ingredient_yaml-cpp-build
cd /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/build && /usr/bin/cmake --build /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/build && /usr/bin/                                                        cmake -E touch /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/stamp/ingredient_yaml-cpp-build
[  1%] Building CXX object CMakeFiles/yaml-cpp.dir/src/binary.cpp.o
[  3%] Building CXX object CMakeFiles/yaml-cpp.dir/src/convert.cpp.o
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/iterator.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/impl.h:11,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/convert.h:17,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h: In member function ‘void YAML::detail::iterator_base<V>::increment()’:
/home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:48:54: error: ‘next’ is not a member of ‘boost’
   48 |   void increment() { this->base_reference() = boost::next(this->base()); }
      |                                                      ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:48:54: note: suggested alternatives:
In file included from /usr/include/c++/11/bits/stl_algobase.h:66,
                 from /usr/include/c++/11/algorithm:61,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:1:
/usr/include/c++/11/bits/stl_iterator_base_funcs.h:213:5: note:   ‘std::next’
  213 |     next(_InputIterator __x, typename
      |     ^~~~
In file included from /usr/include/boost/mpl/next.hpp:17,
                 from /usr/include/boost/mpl/bind.hpp:25,
                 from /usr/include/boost/mpl/lambda.hpp:18,
                 from /usr/include/boost/mpl/apply.hpp:25,
                 from /usr/include/boost/iterator/iterator_facade.hpp:36,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/node_iterator.h:12,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:12,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/iterator.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/impl.h:11,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/convert.h:17,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:3:
/usr/include/boost/mpl/next_prior.hpp:29:8: note:   ‘boost::mpl::next’
   29 | struct next
      |        ^~~~
gmake[2]: *** [CMakeFiles/yaml-cpp.dir/build.make:90: CMakeFiles/yaml-cpp.dir/src/convert.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:215: CMakeFiles/yaml-cpp.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

cryptopp

[24/33] cd /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/build && /usr/bin/cmake --build /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/build && /usr/bin/cmake -E touch /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/stamp/ingredient_cryptopp-build
FAILED: _cooking/ingredient/cryptopp/stamp/ingredient_cryptopp-build
cd /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/build && /usr/bin/cmake --build /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/build && /usr/bin/cmake -E touch /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/stamp/ingredient_cryptopp-build
[  0%] Building CXX object CMakeFiles/cryptopp-object.dir/cryptlib.cpp.o
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/filters.h:22,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.cpp:20:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h: In destructor ‘virtual CryptoPP::AlgorithmParametersBase::~AlgorithmParametersBase()’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:27: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.cpp:18:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/filters.h:22,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.cpp:20:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:45: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                      ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.cpp:18:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
[  1%] Building CXX object CMakeFiles/cryptopp-object.dir/cpu.cpp.o
[  2%] Building CXX object CMakeFiles/cryptopp-object.dir/integer.cpp.o
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/nbtheory.h:11,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.cpp:21:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h: In destructor ‘virtual CryptoPP::AlgorithmParametersBase::~AlgorithmParametersBase()’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:27: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.h:15,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.cpp:18:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/nbtheory.h:11,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.cpp:21:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:45: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                      ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.h:15,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/integer.cpp:18:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
[  3%] Building CXX object CMakeFiles/cryptopp-object.dir/3way.cpp.o
[  4%] Building CXX object CMakeFiles/cryptopp-object.dir/adler32.cpp.o
[  4%] Building CXX object CMakeFiles/cryptopp-object.dir/algebra.cpp.o
[  5%] Building CXX object CMakeFiles/cryptopp-object.dir/algparam.cpp.o
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.cpp:7:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h: In destructor ‘virtual CryptoPP::AlgorithmParametersBase::~AlgorithmParametersBase()’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:27: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:12,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.cpp:7:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.cpp:7:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:45: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                      ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:12,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.cpp:7:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
[  6%] Building CXX object CMakeFiles/cryptopp-object.dir/arc4.cpp.o
[  7%] Building CXX object CMakeFiles/cryptopp-object.dir/asn.cpp.o
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/filters.h:22,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h: In destructor ‘virtual CryptoPP::AlgorithmParametersBase::~AlgorithmParametersBase()’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:27: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                           ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/filters.h:22,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/algparam.h:404:45: warning: ‘bool std::uncaught_exception()’ is deprecated [-Wdeprecated-declarations]
  404 |                 if (!std::uncaught_exception())
      |                      ~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/ext/concurrence.h:34,
                 from /usr/include/c++/11/bits/shared_ptr_base.h:62,
                 from /usr/include/c++/11/bits/shared_ptr.h:53,
                 from /usr/include/c++/11/memory:77,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:10,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/exception:106:8: note: declared here
  106 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
      |        ^~~~~~~~~~~~~~~~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘size_t CryptoPP::DERLengthEncode(CryptoPP::BufferedTransformation&, CryptoPP::lword)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:22:24: error: reference to ‘byte’ is ambiguous
   22 |                 bt.Put(byte(length));
      |                        ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:27:24: error: reference to ‘byte’ is ambiguous
   27 |                 bt.Put(byte(BytePrecision(length) | 0x80));
      |                        ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:31:32: error: reference to ‘byte’ is ambiguous
   31 |                         bt.Put(byte(length >> (j-1)*8));
      |                                ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘bool CryptoPP::BERLengthDecode(CryptoPP::BufferedTransformation&, CryptoPP::lword&, bool&)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:40:9: error: reference to ‘byte’ is ambiguous
   40 |         byte b;
      |         ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:42:21: error: ‘b’ was not declared in this scope; did you mean ‘bt’?
   42 |         if (!bt.Get(b))
      |                     ^
      |                     bt
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:45:15: error: ‘b’ was not declared in this scope; did you mean ‘bt’?
   45 |         if (!(b & 0x80))
      |               ^
      |               bt
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘void CryptoPP::BERDecodeNull(CryptoPP::BufferedTransformation&)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:95:9: error: reference to ‘byte’ is ambiguous
   95 |         byte b;
      |         ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:96:21: error: ‘b’ was not declared in this scope
   96 |         if (!in.Get(b) || b != TAG_NULL)
      |                     ^
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: At global scope:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:104:63: error: reference to ‘byte’ is ambiguous
  104 | size_t DEREncodeOctetString(BufferedTransformation &bt, const byte *str, size_t strLen)
      |                                                               ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘size_t CryptoPP::DEREncodeOctetString(CryptoPP::BufferedTransformation&, const int*, size_t)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:108:16: error: invalid conversion from ‘const int*’ to ‘byte’ {aka ‘unsigned char’} [-fpermissive]
  108 |         bt.Put(str, strLen);
      |                ^~~
      |                |
      |                const int*
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:1385:33: note:   initializing argument 1 of ‘size_t CryptoPP::BufferedTransformation::Put(byte, bool)’
 1385 |                 size_t Put(byte inByte, bool blocking=true)
      |                            ~~~~~^~~~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘size_t CryptoPP::BERDecodeOctetString(CryptoPP::BufferedTransformation&, CryptoPP::SecByteBlock&)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:119:9: error: reference to ‘byte’ is ambiguous
  119 |         byte b;
      |         ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:120:21: error: ‘b’ was not declared in this scope; did you mean ‘bt’?
  120 |         if (!bt.Get(b) || b != OCTET_STRING)
      |                     ^
      |                     bt
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘size_t CryptoPP::BERDecodeOctetString(CryptoPP::BufferedTransformation&, CryptoPP::BufferedTransformation&)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:135:9: error: reference to ‘byte’ is ambiguous
  135 |         byte b;
      |         ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:136:21: error: ‘b’ was not declared in this scope; did you mean ‘bt’?
  136 |         if (!bt.Get(b) || b != OCTET_STRING)
      |                     ^
      |                     bt
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: At global scope:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:147:80: error: reference to ‘byte’ is ambiguous
  147 | size_t DEREncodeTextString(BufferedTransformation &bt, const std::string &str, byte asnTag)
      |                                                                                ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/stdcpp.h:48,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/cryptlib.h:87,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.h:9,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:8:
/usr/include/c++/11/cstddef:69:14: note: candidates are: ‘enum class std::byte’
   69 |   enum class byte : unsigned char {};
      |              ^~~~
In file included from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/pch.h:13,
                 from /home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:3:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/config.h:230:23: note:                 ‘typedef unsigned char byte’
  230 | typedef unsigned char byte;             // put in global namespace to avoid ambiguity with other byte typedefs
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:147:80: error: ‘byte’ has not been declared
  147 | size_t DEREncodeTextString(BufferedTransformation &bt, const std::string &str, byte asnTag)
      |                                                                                ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: In function ‘size_t CryptoPP::DEREncodeTextString(CryptoPP::BufferedTransformation&, const string&, int)’:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:151:23: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  151 |         bt.Put((const byte *)str.data(), str.size());
      |                       ^~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:151:17: error: expected primary-expression before ‘const’
  151 |         bt.Put((const byte *)str.data(), str.size());
      |                 ^~~~~
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:151:17: error: expected ‘)’ before ‘const’
  151 |         bt.Put((const byte *)str.data(), str.size());
      |                ~^~~~~
      |                 )
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp: At global scope:
/home/fedora/seastar/build/release/_cooking/ingredient/cryptopp/src/asn.cpp:155:74: error: reference to ‘byte’ is ambiguous

talawahtech avatar Jan 08 '22 01:01 talawahtech

Me too. Could solve this problem by upgrade yaml-cpp? Yaml-cpp introduced boost dependency in version 0.5 and removed it in version 0.6

FAILED: _cooking/ingredient/yaml-cpp/stamp/ingredient_yaml-cpp-build 
cd /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/build && /usr/bin/cmake --build /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/build && /usr/bin/cmake -E touch /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/stamp/ingredient_yaml-cpp-build
Consolidate compiler generated dependencies of target yaml-cpp
[  1%] Building CXX object CMakeFiles/yaml-cpp.dir/src/convert.cpp.o
In file included from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/iterator.h:13,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/impl.h:11,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/convert.h:17,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:3:
/data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h: In member function ‘void YAML::detail::iterator_base<V>::increment()’:
/data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:48:54: error: ‘next’ is not a member of ‘boost’
   void increment() { this->base_reference() = boost::next(this->base()); }
                                                      ^~~~
/data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:48:54: note: suggested alternatives:
In file included from /usr/include/c++/8/bits/stl_algobase.h:66,
                 from /usr/include/c++/8/algorithm:61,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:1:
/usr/include/c++/8/bits/stl_iterator_base_funcs.h:213:5: note:   ‘std::next’
     next(_InputIterator __x, typename
     ^~~~
In file included from /data/code/seastar/seastar/build/_cooking/installed/include/boost/mpl/next.hpp:17,
                 from /data/code/seastar/seastar/build/_cooking/installed/include/boost/mpl/bind.hpp:25,
                 from /data/code/seastar/seastar/build/_cooking/installed/include/boost/mpl/lambda.hpp:18,
                 from /data/code/seastar/seastar/build/_cooking/installed/include/boost/mpl/apply.hpp:25,
                 from /data/code/seastar/seastar/build/_cooking/installed/include/boost/iterator/iterator_facade.hpp:36,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/node_iterator.h:12,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/detail/iterator.h:12,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/iterator.h:13,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/impl.h:11,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/include/yaml-cpp/node/convert.h:17,
                 from /data/code/seastar/seastar/build/_cooking/ingredient/yaml-cpp/src/src/convert.cpp:3:
/data/code/seastar/seastar/build/_cooking/installed/include/boost/mpl/next_prior.hpp:29:8: note:   ‘boost::mpl::next’
 struct next
        ^~~~

xiaowangzhixiao avatar Jul 12 '22 06:07 xiaowangzhixiao

the yaml-cpp issue should have been fixed by d309365d4016255d1c6e70511e523a1e593ef526. the cryptopp one should have been fixed by 9bc8f21949cf3f8d44ff8b5d1a212687ae91975a.

so this issue should be closed.

tchaikov avatar Dec 27 '22 06:12 tchaikov

Closing as fixed.

avikivity avatar Dec 28 '22 09:12 avikivity