Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Source compiling problems


Sempoinus1

Question

Version of Files 40k

Hey,

 

1. Description of the problem / Question :

I'm having kinda hard time with compiling source - I'm using v2 wolfman source (that's the name of tar) and it comes with Serenity2 sources. I tried 2 ways of compiling

FreeBSD 9 - which has problems because it's not supported anymore  and FreeBSD 12 which i'm using rn. 

 

I don't have output from FreeBSD 9 anymore, but I'll give you the one from FreeBSD 12

 

If anyone knows what to do please help, I would really appreciate it.

 

2. Error

gmake output FreeBSD 12

compile BattleArena.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/include/boost/detail/container_fwd.hpp:96,
                 from /usr/local/include/boost/container_hash/extensions.hpp:22,
                 from /usr/local/include/boost/container_hash/hash.hpp:760,
                 from /usr/local/include/boost/functional/hash.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bitset: In member function 'void std::bitset<_Nb>::_M_copy_from_ptr(const _CharT*, std::size_t, std::size_t, std::size_t, _CharT, _CharT)':
/usr/local/lib/gcc9/include/c++/bitset:1395:74: error: call of overloaded 'min(std::size_t&, std::size_t)' is ambiguous
 1395 |  const size_t __nbits = std::min(_Nb, std::min(__n, size_t(__len - __pos)));
      |                                                                          ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
  198 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = unsigned int]'
  100 |  template <typename T> T std::min(T a, T b)
      |                          ^~~
In file included from /usr/local/lib/gcc9/include/c++/streambuf:862,
                 from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/istream:38,
                 from /usr/local/lib/gcc9/include/c++/sstream:38,
                 from /usr/local/lib/gcc9/include/c++/complex:45,
                 from /usr/local/include/boost/detail/container_fwd.hpp:98,
                 from /usr/local/include/boost/container_hash/extensions.hpp:22,
                 from /usr/local/include/boost/container_hash/hash.hpp:760,
                 from /usr/local/include/boost/functional/hash.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(std::basic_streambuf<_CharT, _Traits>::char_type*, std::streamsize)':
/usr/local/lib/gcc9/include/c++/bits/streambuf.tcc:55:64: error: call of overloaded 'min(const streamsize&, const streamsize&)' is ambiguous
   55 |        const streamsize __len = std::min(__buf_len, __remaining);
      |                                                                ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
  198 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
  100 |  template <typename T> T std::min(T a, T b)
      |                          ^~~
In file included from /usr/local/lib/gcc9/include/c++/streambuf:862,
                 from /usr/local/lib/gcc9/include/c++/ios:43,
                 from /usr/local/lib/gcc9/include/c++/istream:38,
                 from /usr/local/lib/gcc9/include/c++/sstream:38,
                 from /usr/local/lib/gcc9/include/c++/complex:45,
                 from /usr/local/include/boost/detail/container_fwd.hpp:98,
                 from /usr/local/include/boost/container_hash/extensions.hpp:22,
                 from /usr/local/include/boost/container_hash/hash.hpp:760,
                 from /usr/local/include/boost/functional/hash.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':
/usr/local/lib/gcc9/include/c++/bits/streambuf.tcc:89:64: error: call of overloaded 'min(const streamsize&, const streamsize&)' is ambiguous
   89 |        const streamsize __len = std::min(__buf_len, __remaining);
      |                                                                ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
  198 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
  100 |  template <typename T> T std::min(T a, T b)
      |                          ^~~
In file included from /usr/local/lib/gcc9/include/c++/istream:991,
                 from /usr/local/lib/gcc9/include/c++/sstream:38,
                 from /usr/local/lib/gcc9/include/c++/complex:45,
                 from /usr/local/include/boost/detail/container_fwd.hpp:98,
                 from /usr/local/include/boost/container_hash/extensions.hpp:22,
                 from /usr/local/include/boost/container_hash/hash.hpp:760,
                 from /usr/local/include/boost/functional/hash.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc9/include/c++/bits/istream.tcc: In member function 'std::streamsize std::basic_istream<_CharT, _Traits>::readsome(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize)':
/usr/local/lib/gcc9/include/c++/bits/istream.tcc:699:60: error: call of overloaded 'min(const streamsize&, std::streamsize&)' is ambiguous
  699 |   _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n));
      |                                                            ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
  198 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
  100 |  template <typename T> T std::min(T a, T b)
      |                          ^~~
In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::max_load_factor(float)':
/usr/local/include/boost/unordered/detail/implementation.hpp:3090:55: error: call of overloaded 'max(float&, const float&)' is ambiguous
 3090 |           mlf_ = (std::max)(z, minimum_max_load_factor);
      |                                                       ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = float]'
  222 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = float]'
  105 |  template <typename T> T std::max(T a, T b)
      |                          ^~~
In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::reserve_for_insert(std::size_t)':
/usr/local/include/boost/unordered/detail/implementation.hpp:4546:71: error: call of overloaded 'max(std::size_t&, std::size_t)' is ambiguous
 4546 |             min_buckets_for_size((std::max)(size, size_ + (size_ >> 1)));
      |                                                                       ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
  222 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = unsigned int]'
  105 |  template <typename T> T std::max(T a, T b)
      |                          ^~~
In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                 from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                 from /usr/local/include/boost/unordered_map.hpp:17,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::rehash(std::size_t)':
/usr/local/include/boost/unordered/detail/implementation.hpp:4568:16: error: call of overloaded 'max(std::size_t&, std::size_t)' is ambiguous
 4568 |               1));
      |                ^
In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
  222 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from char_manager.h:8,
                 from BattleArena.cpp:5:
../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = unsigned int]'
  105 |  template <typename T> T std::max(T a, T b)
      |                          ^~~
gmake: *** [Makefile:131: OBJDIR/BattleArena.o] Error 1

 

        

Thanks, Sincerly,
Sempoinus

 

Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.