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

clib2 doesn't work with C++ on 68k gcc 6.4.1 #8

Open
afalkenhahn opened this issue Apr 3, 2018 · 0 comments
Open

clib2 doesn't work with C++ on 68k gcc 6.4.1 #8

afalkenhahn opened this issue Apr 3, 2018 · 0 comments

Comments

@afalkenhahn
Copy link

Trying to compile this file

#include <map>

with 68k gcc and clib2, i.e.

m68k-amigaos-gcc -mcrt=clib2 test.cpp 

will make all hell break loose:

softwarefailure@mint:~ > m68k-amigaos-gcc -mcrt=clib2 test.cpp        
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:47:22: error: conflicting declaration 'typedef long unsigned int size_t'
 typedef _BSD_SIZE_T_ size_t;
                      ^~~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/time.h:47:0,
                 from /opt/amiga/m68k-amigaos/clib2/include/sys/types.h:51,
                 from /opt/amiga/m68k-amigaos/sys-include/stdlib.h:43,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/clib2/include/stddef.h:63:22: note: previous declaration as 'typedef unsigned int size_t'
 typedef unsigned int size_t;
                      ^~~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:71:2: error: 'quad_t' does not name a type
  quad_t quot;  /* quotient */
  ^~~~~~
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:72:2: error: 'quad_t' does not name a type
  quad_t rem;  /* remainder */
  ^~~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:192:11: error: 'quad_t' does not name a type
 __stdargs quad_t  qabs __P((quad_t));
           ^~~~~~
In file included from /opt/amiga/m68k-amigaos/sys-include/stdlib.h:88:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:193:24: error: 'quad_t' was not declared in this scope
 __stdargs qdiv_t  qdiv __P((quad_t, quad_t));
                        ^
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:193:24: error: 'quad_t' was not declared in this scope
 __stdargs qdiv_t  qdiv __P((quad_t, quad_t));
                        ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdlib:75:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:41,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:194:11: error: 'quad_t' does not name a type
 __stdargs quad_t  strtoq __P((const char *, char **, int));
           ^~~~~~
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:195:11: error: 'u_quad_t' does not name a type
 __stdargs u_quad_t strtouq __P((const char *, char **, int));
           ^~~~~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5475:20: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [3], int&)'
         "%d", __val); }
                    ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5475:20: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%d", __val); }
                    ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5481:20: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [3], unsigned int&)'
         "%u", __val); }
                    ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5481:20: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%u", __val); }
                    ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5486:21: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [4], long int&)'
         "%ld", __val); }
                     ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5486:21: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%ld", __val); }
                     ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5492:21: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [4], long unsigned int&)'
         "%lu", __val); }
                     ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5492:21: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%lu", __val); }
                     ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5498:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [5], long long int&)'
         "%lld", __val); }
                      ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5498:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%lld", __val); }
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5504:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), long unsigned int, const char [5], long long unsigned int&)'
         "%llu", __val); }
                      ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5504:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%llu", __val); }
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(float)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5512:20: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), const int&, const char [3], float&)'
         "%f", __val);
                    ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5512:20: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%f", __val);
                    ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(double)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5521:20: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), const int&, const char [3], double&)'
         "%f", __val);
                    ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5521:20: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%f", __val);
                    ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long double)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5530:21: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(char*, size_t, const char*, va_list), const int&, const char [4], long double&)'
         "%Lf", __val);
                     ^
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note: candidate: template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, void*), std::size_t, const _CharT*, ...)
     __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
     ^~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ext/string_conversions.h:89:5: note:   template argument deduction/substitution failed:
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:52:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/stdexcept:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/array:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/tuple:39,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/stl_map.h:63,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/map:61,
                 from test.cpp:1:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5530:21: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
         "%Lf", __val); 

Looks like clib2 clashes with system includes in many ways.

The maintainer of the 68k gcc 6.4.1 says that this should be fixed in clib2, not in gcc. See here for reference:
bebbo/amiga-gcc#18
bebbo/amiga-gcc#19

I don't know enough about gcc to tell whether this is a problem with clib2 or gcc. But it would be nice to see this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant