Skip to content

Make main a module #19

@rdong8

Description

@rdong8

Current blocker (branch main-module):

[1/19] Scanning /workspaces/cpp_project/src/mathematics.cppm for CXX dependencies
[2/19] Scanning /usr/include/c++/15/bits/std.compat.cc for CXX dependencies
[3/19] Generating API documentation for docs
[4/19] Scanning /workspaces/cpp_project/tests/mathematics.cppm for CXX dependencies
[5/19] Scanning /usr/include/c++/15/bits/std.cc for CXX dependencies
[6/19] Generating CXX dyndep file CMakeFiles/__cmake_cxx23.dir/Release/CXX.dd
[7/19] Generating CXX dyndep file src/CMakeFiles/mathematics.dir/Release/CXX.dd
[8/19] Generating CXX dyndep file tests/CMakeFiles/test_math.dir/Release/CXX.dd
[9/19] Scanning /workspaces/cpp_project/src/main.cppm for CXX dependencies
[10/19] Generating CXX dyndep file src/CMakeFiles/cpp_project.dir/Release/CXX.dd
[11/19] Building CXX object CMakeFiles/__cmake_cxx23.dir/Release/usr/include/c++/15/bits/std.cc.o
[12/19] Building CXX object CMakeFiles/__cmake_cxx23.dir/Release/usr/include/c++/15/bits/std.compat.cc.o
[13/19] Building CXX object src/CMakeFiles/mathematics.dir/Release/mathematics.cppm.o
[14/19] Linking CXX static library Release/lib__cmake_cxx23.a
[15/19] Linking CXX static library src/Release/libmathematics.a
[16/19] Building CXX object tests/CMakeFiles/test_math.dir/Release/mathematics.cppm.o
[17/19] Linking CXX executable tests/Release/test_math
[18/19] Building CXX object src/CMakeFiles/cpp_project.dir/Release/main.cppm.o
FAILED: [code=1] src/CMakeFiles/cpp_project.dir/Release/main.cppm.o src/CMakeFiles/cpp_project.dir/Release/main.pcm 
/usr/sbin/clang++ -DSPDLOG_COMPILED_LIB -DSPDLOG_USE_STD_FORMAT -DCMAKE_INTDIR=\"Release\" -isystem /home/dev/.conan2/p/b/boost040476e249284/p/include -isystem /home/dev/.conan2/p/b/spdloebba44751b032/p/include -m64 -stdlib=libstdc++ -O3 -DNDEBUG -std=c++23 -fcolor-diagnostics -D_FORTIFY_SOURCE=1 -O3 -march=native -Wall -Wcast-align -Wconversion -Wdouble-promotion -Werror -Wextra -Wformat=2 -Wimplicit-fallthrough -Wnon-virtual-dtor -Wnull-dereference -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wshadow -Wsign-conversion -Wunused -fsanitize=safe-stack -MD -MT src/CMakeFiles/cpp_project.dir/Release/main.cppm.o -MF src/CMakeFiles/cpp_project.dir/Release/main.cppm.o.d @src/CMakeFiles/cpp_project.dir/Release/main.cppm.o.modmap -o src/CMakeFiles/cpp_project.dir/Release/main.cppm.o -c /workspaces/cpp_project/src/main.cppm
/workspaces/cpp_project/src/main.cppm:102:6: error: declaration of 'co_main' in module main follows declaration in the global module
  102 | auto co_main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) -> boost::cobalt::main
      |      ^
/home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/main.hpp:26:6: note: previous declaration is here
   26 | auto co_main(int argc, char * argv[]) -> boost::cobalt::main;
      |      ^
/workspaces/cpp_project/src/main.cppm:102:6: error: 'get_return_object' is a private member of 'boost::cobalt::detail::main_promise'
  102 | auto co_main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) -> boost::cobalt::main
      |      ^
/home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/detail/main.hpp:149:27: note: declared private here
  149 |     ::boost::cobalt::main get_return_object()
      |                           ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr_base.h:1783:15: error: cannot befriend target of using declaration
 1783 |         friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept;
      |                      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:175:31: note: in instantiation of template class 'std::__shared_ptr<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>>' requested here
  175 |     class shared_ptr : public __shared_ptr<_Tp>
      |                               ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/details/synchronous_factory.h:16:21: note: in instantiation of template class 'std::shared_ptr<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>>' requested here
   16 |         auto sink = std::make_shared<Sink>(std::forward<SinkArgs>(args)...);
      |                     ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/sinks/basic_file_sink.h:58:30: note: in instantiation of function template specialization 'spdlog::synchronous_factory::create<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>, const std::__cxx11::basic_string<char> &, bool &, const spdlog::file_event_handlers &>' requested here
   58 |     return Factory::template create<sinks::basic_file_sink_st>(logger_name, filename, truncate,
      |                              ^
/workspaces/cpp_project/src/main.cppm:22:31: note: in instantiation of function template specialization 'spdlog::basic_logger_st<spdlog::synchronous_factory>' requested here
   22 |     auto const logger{spdlog::basic_logger_st("logger", "log.txt", true)};
      |                               ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:79:5: note: target of using declaration
   79 |     get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept
      |     ^
/usr/include/c++/15/bits/std.cc:1938:14: note: using declaration
 1938 |   using std::get_deleter;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr_base.h:1786:15: error: cannot befriend target of using declaration
 1786 |         friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept;
      |                      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:94:5: note: target of using declaration
   94 |     get_deleter(const shared_ptr<_Tp>& __p) noexcept
      |     ^
/usr/include/c++/15/bits/std.cc:1938:14: note: using declaration
 1938 |   using std::get_deleter;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:468:2: error: cannot befriend target of using declaration
  468 |         allocate_shared(const _Alloc&, _Args&&...);
      |         ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/details/synchronous_factory.h:16:21: note: in instantiation of template class 'std::shared_ptr<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>>' requested here
   16 |         auto sink = std::make_shared<Sink>(std::forward<SinkArgs>(args)...);
      |                     ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/sinks/basic_file_sink.h:58:30: note: in instantiation of function template specialization 'spdlog::synchronous_factory::create<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>, const std::__cxx11::basic_string<char> &, bool &, const spdlog::file_event_handlers &>' requested here
   58 |     return Factory::template create<sinks::basic_file_sink_st>(logger_name, filename, truncate,
      |                              ^
/workspaces/cpp_project/src/main.cppm:22:31: note: in instantiation of function template specialization 'spdlog::basic_logger_st<spdlog::synchronous_factory>' requested here
   22 |     auto const logger{spdlog::basic_logger_st("logger", "log.txt", true)};
      |                               ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:988:5: note: target of using declaration
  988 |     allocate_shared(const _Alloc& __a, _Args&&... __args)
      |     ^
/usr/include/c++/15/bits/std.cc:1927:14: note: using declaration
 1927 |   using std::allocate_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:472:2: error: cannot befriend target of using declaration
  472 |         make_shared(_Args&&...);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1003:5: note: target of using declaration
 1003 |     make_shared(_Args&&... __args)
      |     ^
/usr/include/c++/15/bits/std.cc:1932:14: note: using declaration
 1932 |   using std::make_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:484:2: error: cannot befriend target of using declaration
  484 |         allocate_shared(const _Alloc&, size_t);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1028:5: note: target of using declaration
 1028 |     allocate_shared(const _Alloc& __a, size_t __n)
      |     ^
/usr/include/c++/15/bits/std.cc:1927:14: note: using declaration
 1927 |   using std::allocate_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:488:2: error: cannot befriend target of using declaration
  488 |         make_shared(size_t);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1035:5: note: target of using declaration
 1035 |     make_shared(size_t __n)
      |     ^
/usr/include/c++/15/bits/std.cc:1932:14: note: using declaration
 1932 |   using std::make_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:492:2: error: cannot befriend target of using declaration
  492 |         allocate_shared(const _Alloc&, size_t, const remove_extent_t<_Yp>&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1042:5: note: target of using declaration
 1042 |     allocate_shared(const _Alloc& __a, size_t __n,
      |     ^
/usr/include/c++/15/bits/std.cc:1927:14: note: using declaration
 1927 |   using std::allocate_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:496:2: error: cannot befriend target of using declaration
  496 |         make_shared(size_t, const remove_extent_t<_Yp>&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1051:5: note: target of using declaration
 1051 |     make_shared(size_t __n, const remove_extent_t<_Tp>& __u)
      |     ^
/usr/include/c++/15/bits/std.cc:1932:14: note: using declaration
 1932 |   using std::make_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:500:2: error: cannot befriend target of using declaration
  500 |         allocate_shared(const _Alloc&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1071:5: note: target of using declaration
 1071 |     allocate_shared(const _Alloc& __a)
      |     ^
/usr/include/c++/15/bits/std.cc:1927:14: note: using declaration
 1927 |   using std::allocate_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:504:2: error: cannot befriend target of using declaration
  504 |         make_shared();
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1078:5: note: target of using declaration
 1078 |     make_shared()
      |     ^
/usr/include/c++/15/bits/std.cc:1932:14: note: using declaration
 1932 |   using std::make_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:508:2: error: cannot befriend target of using declaration
  508 |         allocate_shared(const _Alloc&, const remove_extent_t<_Yp>&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1085:5: note: target of using declaration
 1085 |     allocate_shared(const _Alloc& __a, const remove_extent_t<_Tp>& __u)
      |     ^
/usr/include/c++/15/bits/std.cc:1927:14: note: using declaration
 1927 |   using std::allocate_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:512:2: error: cannot befriend target of using declaration
  512 |         make_shared(const remove_extent_t<_Yp>&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1093:5: note: target of using declaration
 1093 |     make_shared(const remove_extent_t<_Tp>& __u)
      |     ^
/usr/include/c++/15/bits/std.cc:1932:14: note: using declaration
 1932 |   using std::make_shared;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:517:2: error: cannot befriend target of using declaration
  517 |         allocate_shared_for_overwrite(const _Alloc&);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1102:5: note: target of using declaration
 1102 |     allocate_shared_for_overwrite(const _Alloc& __a)
      |     ^
/usr/include/c++/15/bits/std.cc:1928:14: note: using declaration
 1928 |   using std::allocate_shared_for_overwrite;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:521:2: error: cannot befriend target of using declaration
  521 |         make_shared_for_overwrite();
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1119:5: note: target of using declaration
 1119 |     make_shared_for_overwrite()
      |     ^
/usr/include/c++/15/bits/std.cc:1933:14: note: using declaration
 1933 |   using std::make_shared_for_overwrite;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:525:2: error: cannot befriend target of using declaration
  525 |         allocate_shared_for_overwrite(const _Alloc&, size_t);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1133:5: note: target of using declaration
 1133 |     allocate_shared_for_overwrite(const _Alloc& __a, size_t __n)
      |     ^
/usr/include/c++/15/bits/std.cc:1928:14: note: using declaration
 1928 |   using std::allocate_shared_for_overwrite;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:529:2: error: cannot befriend target of using declaration
  529 |         make_shared_for_overwrite(size_t);
      |         ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1141:5: note: target of using declaration
 1141 |     make_shared_for_overwrite(size_t __n)
      |     ^
/usr/include/c++/15/bits/std.cc:1933:14: note: using declaration
 1933 |   using std::make_shared_for_overwrite;
      |              ^
In file included from /workspaces/cpp_project/src/main.cppm:3:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/channel.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/this_thread.hpp:11:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/cobalt/config.hpp:26:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/any_io_executor.hpp:22:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/execution/any_executor.hpp:24:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/executor_function.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/handler_alloc_helpers.hpp:19:
In file included from /home/dev/.conan2/p/b/boost040476e249284/p/include/boost/asio/detail/memory.hpp:21:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:82:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:1007:14: error: calling a private constructor of class 'std::shared_ptr<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>>'
 1007 |       return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
      |              ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/details/synchronous_factory.h:16:26: note: in instantiation of function template specialization 'std::make_shared<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>, const std::__cxx11::basic_string<char> &, bool &, const spdlog::file_event_handlers &>' requested here
   16 |         auto sink = std::make_shared<Sink>(std::forward<SinkArgs>(args)...);
      |                          ^
/home/dev/.conan2/p/b/spdloebba44751b032/p/include/spdlog/sinks/basic_file_sink.h:58:30: note: in instantiation of function template specialization 'spdlog::synchronous_factory::create<spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>, const std::__cxx11::basic_string<char> &, bool &, const spdlog::file_event_handlers &>' requested here
   58 |     return Factory::template create<sinks::basic_file_sink_st>(logger_name, filename, truncate,
      |                              ^
/workspaces/cpp_project/src/main.cppm:22:31: note: in instantiation of function template specialization 'spdlog::basic_logger_st<spdlog::synchronous_factory>' requested here
   22 |     auto const logger{spdlog::basic_logger_st("logger", "log.txt", true)};
      |                               ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/shared_ptr.h:462:2: note: declared private here
  462 |         shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
      |         ^
19 errors generated.
ninja: build stopped: subcommand failed.

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