Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues: macOS #6

Closed
neoblizz opened this issue Sep 2, 2022 · 2 comments
Closed

Build issues: macOS #6

neoblizz opened this issue Sep 2, 2022 · 2 comments
Labels
bug Something isn't working build Build related issues

Comments

@neoblizz
Copy link
Member

neoblizz commented Sep 2, 2022

Installation Process

Install CMake: https://cmake.org/download/
Link cmake for terminal:

sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install

Download and install conan:

brew install conan

Then build:

mkdir build && cd build
cmake ..

Output

In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
/Users/neoblizz/graph-v2/test/csv_routes.hpp:14:34: warning: unknown warning group '-Wuseless-cast', ignored [-Wunknown-warning-option]
#  pragma GCC diagnostic ignored "-Wuseless-cast"
                                 ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:20:
/Users/neoblizz/graph-v2/csv-parser/single_include/csv.hpp:8225:32: warning: implicit conversion increases floating-point precision: 'float' to 'std::vector<long double>::value_type' (aka 'long double') [-Wdouble-promotion]
                mins.push_back(NAN);
                     ~~~~~~~~~ ^~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/math.h:60:28: note: expanded from macro 'NAN'
#   define    NAN          __builtin_nanf("0x7fc00000")
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:20:
/Users/neoblizz/graph-v2/csv-parser/single_include/csv.hpp:8226:33: warning: implicit conversion increases floating-point precision: 'float' to 'std::vector<long double>::value_type' (aka 'long double') [-Wdouble-promotion]
                maxes.push_back(NAN);
                      ~~~~~~~~~ ^~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/math.h:60:28: note: expanded from macro 'NAN'
#   define    NAN          __builtin_nanf("0x7fc00000")
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:92:26: error: no template named 'range_value_t' in namespace 'std::ranges'
using vertex_t = ranges::range_value_t<vertex_range_t<G>>;
                 ~~~~~~~~^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:94:36: error: no template named 'range_reference_t' in namespace 'std::ranges'
using vertex_reference_t = ranges::range_reference_t<vertex_range_t<G>>;
                           ~~~~~~~~^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:136:49: error: no template named 'random_access_range' in namespace 'std::ranges'; did you mean 'random_access_iterator'?
requires tag_invoke::_has_find_vertex_adl<G> || ranges::random_access_range<vertex_range_t<G>>
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:136:49: error: no template named 'random_access_iterator' in namespace 'std::ranges'; did you mean simply 'random_access_iterator'?
requires tag_invoke::_has_find_vertex_adl<G> || ranges::random_access_range<vertex_range_t<G>>
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:140:22: error: no template named 'random_access_range' in namespace 'std::ranges'; did you mean 'random_access_iterator'?
  else if constexpr (ranges::random_access_range<vertex_range_t<G>>)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:140:22: error: no template named 'random_access_iterator' in namespace 'std::ranges'; did you mean simply 'random_access_iterator'?
  else if constexpr (ranges::random_access_range<vertex_range_t<G>>)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:141:45: error: no template named 'range_difference_t' in namespace 'std::ranges'; did you mean 'iter_difference_t'?
    return begin(vertices(g)) + static_cast<ranges::range_difference_t<vertex_range_t<G>>>(uid);
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                            iter_difference_t
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/incrementable_traits.h:67:1: note: 'iter_difference_t' declared here
using iter_difference_t = typename conditional_t<__is_primary_template<iterator_traits<remove_cvref_t<_Ip> > >::value,
^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:158:51: error: no template named 'vertex_reference_t'; did you mean 'iter_reference_t'?
  concept _has_edges_vtxref_adl = requires(G&& g, vertex_reference_t<G> u) {
                                                  ^~~~~~~~~~~~~~~~~~
                                                  iter_reference_t
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:45:1: note: 'iter_reference_t' declared here
using iter_reference_t = decltype(*declval<_Tp&>());
^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:170:19: error: no template named 'vertex_reference_t'; did you mean 'iter_reference_t'?
auto edges(G&& g, vertex_reference_t<G> u) -> decltype(tag_invoke::edges(g, u)) {
                  ^~~~~~~~~~~~~~~~~~
                  iter_reference_t
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/iterator_traits.h:45:1: note: 'iter_reference_t' declared here
using iter_reference_t = decltype(*declval<_Tp&>());
^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:182:68: error: use of undeclared identifier 'vertex_reference_t'
using vertex_edge_range_t = decltype(edges(declval<G&&>(), declval<vertex_reference_t<G>>()));
                                                                   ^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:184:51: error: use of undeclared identifier 'vertex_edge_range_t'
using vertex_edge_iterator_t = ranges::iterator_t<vertex_edge_range_t<G>>;
                                                  ^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:186:24: error: no template named 'range_value_t' in namespace 'std::ranges'
using edge_t = ranges::range_value_t<vertex_edge_range_t<G>>;
               ~~~~~~~~^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:186:38: error: use of undeclared identifier 'vertex_edge_range_t'
using edge_t = ranges::range_value_t<vertex_edge_range_t<G>>;
                                     ^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:188:34: error: no template named 'range_reference_t' in namespace 'std::ranges'
using edge_reference_t = ranges::range_reference_t<vertex_edge_range_t<G>>;
                         ~~~~~~~~^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:188:52: error: use of undeclared identifier 'vertex_edge_range_t'
using edge_reference_t = ranges::range_reference_t<vertex_edge_range_t<G>>;
                                                   ^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:198:23: error: no template named 'edge_reference_t'
auto target_id(G&& g, edge_reference_t<const G> uv) -> decltype(tag_invoke::target_id(g, uv)) {
                      ^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:213:53: error: no template named 'range_reference_t' in namespace 'std::ranges'
  concept _has_target_adl = requires(G&& g, ranges::range_reference_t<ER> uv) {
                                            ~~~~~~~~^
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:218:28: error: no template named 'random_access_range' in namespace 'std::ranges'; did you mean 'random_access_iterator'?
concept _can_eval_target = ranges::random_access_range<vertex_range_t<G>> && requires(G&& g, ranges::range_reference_t<ER> uv) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                           random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
In file included from /Users/neoblizz/graph-v2/test/examples.cpp:2:
In file included from /Users/neoblizz/graph-v2/test/csv_routes.hpp:28:
In file included from /Users/neoblizz/graph-v2/include/graph/graph.hpp:7:
/Users/neoblizz/graph-v2/include/graph/detail/graph_cpo.hpp:218:28: error: no template named 'random_access_iterator' in namespace 'std::ranges'; did you mean simply 'random_access_iterator'?
concept _can_eval_target = ranges::random_access_range<vertex_range_t<G>> && requires(G&& g, ranges::range_reference_t<ER> uv) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                           random_access_iterator
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__iterator/concepts.h:155:9: note: 'random_access_iterator' declared here
concept random_access_iterator =
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
make[2]: *** [test/CMakeFiles/tests.dir/examples.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/tests.dir/all] Error 2
make: *** [all] Error 2
@neoblizz neoblizz added the bug Something isn't working label Sep 2, 2022
@neoblizz
Copy link
Member Author

neoblizz commented Sep 4, 2022

Swapping to gcc-12 solved this issue, but now I ran into a new one; conan-io/conan-center-index#4097

boost/1.78.0: WARN: Boost component 'fiber' is missing libraries. Try building boost with '-o boost:without_fiber'. (Option is not guaranteed to exist)
ERROR: boost/1.78.0: Error in package_info() method, line 1668
	raise ConanException(f"These libraries were expected to be built, but were not built: {non_built}")
	ConanException: These libraries were expected to be built, but were not built: {'boost_fiber'}
CMake Error at build/conan.cmake:651 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/Conan.cmake:33 (conan_cmake_install)
  CMakeLists.txt:82 (run_conan)

@neoblizz neoblizz added the build Build related issues label Sep 6, 2022
@neoblizz
Copy link
Member Author

1cacc25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Build related issues
Projects
None yet
Development

No branches or pull requests

1 participant