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

Missing wide char support for C++ #19

Closed
softwarefailure opened this Issue Apr 3, 2018 · 55 comments

Comments

Projects
None yet
2 participants
@softwarefailure
Copy link

softwarefailure commented Apr 3, 2018

I need some basic wide char functions in my C++11 project. The wide char functions that Sebastian has recently added to clib2 are already sufficient for my purposes. But I'm unable to use them with m68k-amigaos-gcc because C++ is only supported for libnix.

Thus, to give us basic wide char support one of the following things should be implemented:

  1. Make it possible to use clib2 with C++ (probably easiest?)

or

  1. Add some basic wide char functions to libnix (on MorphOS libnix has some wide char functions so maybe those could be used?)

Thanks!

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Apr 3, 2018

both are tasks for the lib maintainers...

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Apr 3, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Apr 3, 2018

no idea - here is a mixture of headers used...
... maybe it gets resolved once ixemul is building

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Apr 5, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented May 13, 2018

updated clib2 and added newlib2 - both with wchar support

@bebbo bebbo closed this May 13, 2018

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented May 13, 2018

Unfortunately, I get lots of errors trying to compile a C++11 project with m68k-amigaos-gcc. On MorphOS and AmigaOS 4 the same project compiles just fine. Any ideas? Here is the build log:

m68k-amigaos-gcc -c -mcrt=clib2 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall -std=c++11 -fpermissive -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/fpdfsdk/cba_annotiterator.o fpdfsdk/cba_annotiterator.cpp
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/postypes.h:40:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/char_traits.h:40,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:40,
                 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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:164:11: error: '::vfwscanf' has not been declared
   using ::vfwscanf;
           ^~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:170:11: error: '::vswscanf' has not been declared
   using ::vswscanf;
           ^~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:174:11: error: '::vwscanf' has not been declared
   using ::vwscanf;
           ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:191:11: error: '::wcstof' has not been declared
   using ::wcstof;
           ^~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:248:11: error: '::wcstold' has not been declared
   using ::wcstold;
           ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:264:22: error: '__gnu_cxx::wcstold' has not been declared
   using ::__gnu_cxx::wcstold;
                      ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:280:14: error: 'std::wcstof' has not been declared
   using std::wcstof;
              ^~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:283:14: error: 'std::vfwscanf' has not been declared
   using std::vfwscanf;
              ^~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:286:14: error: 'std::vswscanf' has not been declared
   using std::vswscanf;
              ^~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:289:14: error: 'std::vwscanf' has not been declared
   using std::vwscanf;
              ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:293:14: error: 'std::wcstold' has not been declared
   using std::wcstold;
              ^~~~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/char_traits.h:420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:40,
                 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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdint:78:11: error: 'uint_least32_t' is already declared in this scope
   using ::uint_least32_t;
           ^~~~~~~~~~~~~~
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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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);
                     ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'float std::__cxx11::stof(const wstring&, std::size_t*)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5563:31: error: 'wcstof' is not a member of 'std'
   { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
                               ^~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'long double std::__cxx11::stold(const wstring&, std::size_t*)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5571:31: error: 'wcstold' is not a member of 'std'
   { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
                               ^~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5578:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [3], int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5578:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%d", __val); }
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5584:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [3], unsigned int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5584:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%u", __val); }
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5589:23: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [4], long int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5589:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%ld", __val); }
                       ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5595:23: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [4], long unsigned int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5595:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%lu", __val); }
                       ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long long int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5601:24: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [5], long long int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5601:24: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%lld", __val); }
                        ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long long unsigned int)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5607:24: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), long unsigned int, const wchar_t [5], long long unsigned int&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5607:24: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%llu", __val); }
                        ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(float)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5615:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), const int&, const wchar_t [3], float&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5615:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%f", __val);
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(double)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5624:22: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), const int&, const wchar_t [3], double&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5624:22: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%f", __val);
                      ^
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h: In function 'std::__cxx11::wstring std::__cxx11::to_wstring(long double)':
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5633:23: error: no matching function for call to '__to_xstring(int (__attribute__((__stkparm__)) *)(wchar_t*, size_t, const wchar_t*, va_list), const int&, const wchar_t [4], long double&)'
          L"%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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_string.h:5633:23: note:   mismatched types 'std::size_t {aka long unsigned int}' and 'size_t {aka unsigned int}'
          L"%Lf", __val);
                       ^
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h: At global scope:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:79:39: error: conflicting declaration 'typedef struct div_t div_t'
 typedef struct { int quot; int rem; } div_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:39:3: note: previous declaration as 'typedef struct div_t div_t'
 } div_t;
   ^~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:80:41: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
 typedef struct { long quot; long rem; } ldiv_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:45:3: note: previous declaration as 'typedef struct ldiv_t ldiv_t'
 } ldiv_t;
   ^~~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:445:51: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
 typedef struct { long long quot; long long rem; } lldiv_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:52:3: note: previous declaration as 'typedef struct lldiv_t lldiv_t'
 } lldiv_t;
   ^~~~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/system_error:39:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/ios_base.h:46,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ios:42,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ostream:38,
                 from ./third_party/base/numerics/safe_conversions.h:11,
                 from ./core/fxcrt/fx_system.h:121,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:52:25: error: 'EBADMSG' was not declared in this scope
       bad_message =     EBADMSG,
                         ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:90:21: error: 'ENOLINK' was not declared in this scope
       no_link =     ENOLINK,
                     ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:96:33: error: 'ENODATA' was not declared in this scope
       no_message_available =    ENODATA,
                                 ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:104:32: error: 'ENOSR' was not declared in this scope
       no_stream_resources =    ENOSR,
                                ^~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:115:26: error: 'ENOSTR' was not declared in this scope
       not_a_stream =     ENOSTR,
                          ^~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:122:27: error: 'ENOTSUP' was not declared in this scope
       not_supported =     ENOTSUP,
                           ^~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:126:31: error: 'ECANCELED' was not declared in this scope
       operation_canceled =    ECANCELED,
                               ^~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:135:24: error: 'EOWNERDEAD' was not declared in this scope
       owner_dead =     EOWNERDEAD,
                        ^~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:141:28: error: 'EPROTO' was not declared in this scope
       protocol_error =     EPROTO,
                            ^~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:151:34: error: 'ENOTRECOVERABLE' was not declared in this scope
       state_not_recoverable =    ENOTRECOVERABLE,
                                  ^~~~~~~~~~~~~~~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/error_constants.h:155:28: error: 'ETIME' was not declared in this scope
       stream_timeout =     ETIME,
                            ^~~~~
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/locale_facets.h:41:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/basic_ios.h:37,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ios:44,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/ostream:38,
                 from ./third_party/base/numerics/safe_conversions.h:11,
                 from ./core/fxcrt/fx_system.h:121,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:44:35: error: '_U' was not declared in this scope
     static const mask upper     = _U;
                                   ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:45:32: error: '_L' was not declared in this scope
     static const mask lower  = _L;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:46:32: error: '_U' was not declared in this scope
     static const mask alpha  = _U | _L;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:46:37: error: '_L' was not declared in this scope
     static const mask alpha  = _U | _L;
                                     ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:47:32: error: '_N' was not declared in this scope
     static const mask digit  = _N;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:48:33: error: '_X' was not declared in this scope
     static const mask xdigit  = _X | _N;
                                 ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:48:38: error: '_N' was not declared in this scope
     static const mask xdigit  = _X | _N;
                                      ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:49:32: error: '_S' was not declared in this scope
     static const mask space  = _S;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:50:32: error: '_P' was not declared in this scope
     static const mask print  = _P | _U | _L | _N | _B;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:50:37: error: '_U' was not declared in this scope
     static const mask print  = _P | _U | _L | _N | _B;
                                     ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:50:42: error: '_L' was not declared in this scope
     static const mask print  = _P | _U | _L | _N | _B;
                                          ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:50:47: error: '_N' was not declared in this scope
     static const mask print  = _P | _U | _L | _N | _B;
                                               ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:50:52: error: '_B' was not declared in this scope
     static const mask print  = _P | _U | _L | _N | _B;
                                                    ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:51:32: error: '_P' was not declared in this scope
     static const mask graph  = _P | _U | _L | _N;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:51:37: error: '_U' was not declared in this scope
     static const mask graph  = _P | _U | _L | _N;
                                     ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:51:42: error: '_L' was not declared in this scope
     static const mask graph  = _P | _U | _L | _N;
                                          ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:51:47: error: '_N' was not declared in this scope
     static const mask graph  = _P | _U | _L | _N;
                                               ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:52:32: error: '_C' was not declared in this scope
     static const mask cntrl  = _C;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:53:32: error: '_P' was not declared in this scope
     static const mask punct  = _P;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:54:32: error: '_U' was not declared in this scope
     static const mask alnum  = _U | _L | _N;
                                ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:54:37: error: '_L' was not declared in this scope
     static const mask alnum  = _U | _L | _N;
                                     ^~
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/m68k-amigaos/bits/ctype_base.h:54:42: error: '_N' was not declared in this scope
     static const mask alnum  = _U | _L | _N;
                                          ^~
In file included from ./third_party/base/allocator/partition_allocator/page_allocator.h:10:0,
                 from ./third_party/base/allocator/partition_allocator/partition_alloc.h:65,
                 from ./core/fxcrt/fx_memory.h:31,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstddef:56:11: error: '::max_align_t' has not been declared
   using ::max_align_t;
           ^~~~~~~~~~~
In file included from ./core/fxcrt/cfx_bytestring.h:16:0,
                 from ./core/fxcrt/fx_string.h:10,
                 from ./core/fpdfdoc/cpdf_annot.h:15,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
./core/fxcrt/cfx_string_c_template.h:221:36: warning: 'operator new' takes type 'size_t' ('long unsigned int') as first parameter [-fpermissive]
   void* operator new(size_t) throw() { return nullptr; }
                                    ^
make: *** [mktool/os3gcc6/fpdfsdk/cba_annotiterator.o] Fehler 1 
@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented May 15, 2018

I modified the include order, maybe it helps here, if not: please share the info how to reproduce.

EDIT: never mind - hello-iostream.cpp does produce these errors.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented May 15, 2018

Btw, how can I reopen this issue then? I don't see where this is possible.

@bebbo bebbo reopened this May 15, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented May 16, 2018

please retest

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented May 16, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented May 16, 2018

Safest

make update -j
make clean -j
make clean-prefix
make all -j6

But I guess

make update -j
make clean-clib2
make all -j6

Should be ok too. The clib2 Makefile does not recognize changes properly. Other modules do better.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented May 17, 2018

Well, saying

make update -j

results in an endless loop of the following messages:

"pull" ist nicht möglich, weil Sie nicht zusammengeführte Dateien haben.
Bitte korrigieren Sie dies im Arbeitsverzeichnis und benutzen Sie dann 
'git add/rm <Datei>' um die Auflösung entsprechend zu markieren, oder
benutzen Sie 'git commit -a'.
trying depth=0
U       configure
U       configure.ac
U       gcc/DATESTAMP
U       gcc/config/m68k/m68kamigaos.h
U       gcc/incpath.c
U       libgcc/unwind-dw2.c
U       libgcc/unwind.inc
"pull" ist nicht möglich, weil Sie nicht zusammengeführte Dateien haben.
Bitte korrigieren Sie dies im Arbeitsverzeichnis und benutzen Sie dann 
'git add/rm <Datei>' um die Auflösung entsprechend zu markieren, oder
benutzen Sie 'git commit -a'.
trying depth=0
U       configure
U       configure.ac
U       gcc/DATESTAMP
U       gcc/config/m68k/m68kamigaos.h
U       gcc/incpath.c
U       libgcc/unwind-dw2.c
U       libgcc/unwind.inc
"pull" ist nicht möglich, weil Sie nicht zusammengeführte Dateien haben.
Bitte korrigieren Sie dies im Arbeitsverzeichnis und benutzen Sie dann 
'git add/rm <Datei>' um die Auflösung entsprechend zu markieren, oder
benutzen Sie 'git commit -a'.
trying depth=0

I guess I have to delete the build folder and start from scratch...

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented May 17, 2018

try to update manually:

pushd projects/gcc
git pull --depth 10
popd

increase the depth as needed.

it seems that the loop which should increase the depth does not work.

=> are you using the cygwin bash shell?

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented May 17, 2018

=> are you using the cygwin bash shell?

No, I'm on Linux Mint. Deleting the build directory and building from scratch again gave me a working compiler now and there are only a few errors left, so we're getting there hopefully. Here's what I'm getting with the latest version:

m68k-amigaos-gcc -c -mcrt=clib2 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall  -std=c++11 -fpermissive -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/fpdfsdk/cba_annotiterator.o fpdfsdk/cba_annotiterator.cpp
In file included from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/char_traits.h:420:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:40,
                 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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstdint:78:11: error: 'uint_least32_t' is already declared in this scope
   using ::uint_least32_t;
           ^~~~~~~~~~~~~~
In file included from /opt/amiga/m68k-amigaos/sys-include/sys/errno.h:11:0,
                 from /opt/amiga/m68k-amigaos/sys-include/errno.h:9,
                 from /opt/amiga/m68k-amigaos/clib2/include/errno.h:56,
                 from /opt/amiga/m68k-amigaos/sys-include/stdlib.h:17,
                 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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/sys/reent.h:295:26: error: conflicting declaration 'typedef struct __sFILE __FILE'
 typedef struct __sFILE   __FILE;
                          ^~~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/wchar.h:55:0,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cwchar:44,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/postypes.h:40,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/bits/char_traits.h:40,
                 from /opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/string:40,
                 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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdio.h:128:16: note: previous declaration as 'struct __FILE'
 typedef struct __FILE
                ^~~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:79:39: error: conflicting declaration 'typedef struct div_t div_t'
 typedef struct { int quot; int rem; } div_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:39:3: note: previous declaration as 'typedef struct div_t div_t'
 } div_t;
   ^~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:80:41: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
 typedef struct { long quot; long rem; } ldiv_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:45:3: note: previous declaration as 'typedef struct ldiv_t ldiv_t'
 } ldiv_t;
   ^~~~~~
In file included from /opt/amiga/m68k-amigaos/clib2/include/math.h:53:0,
                 from ./core/fxcrt/fx_system.h:11,
                 from ./core/fxcrt/fx_memory.h:10,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/clib2/include/stdlib.h:445:51: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
 typedef struct { long long quot; long long rem; } lldiv_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 ./core/fpdfdoc/cpdf_annot.h:10,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/m68k-amigaos/sys-include/stdlib.h:52:3: note: previous declaration as 'typedef struct lldiv_t lldiv_t'
 } lldiv_t;
   ^~~~~~~
In file included from ./third_party/base/allocator/partition_allocator/page_allocator.h:10:0,
                 from ./third_party/base/allocator/partition_allocator/partition_alloc.h:65,
                 from ./core/fxcrt/fx_memory.h:31,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstddef:56:11: error: '::max_align_t' has not been declared
   using ::max_align_t;
           ^~~~~~~~~~~
make: *** [mktool/os3gcc6/fpdfsdk/cba_annotiterator.o] Fehler 1 
@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 2, 2018

please retest.

note: at least clean the clib2 folder inside your prefix folder, safest is to run make clean clean-prefix. If your own headers and libs are in the toplevel include/lib folders they are safe.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

Looks like we're getting there. Only one error left in the latest version, namely:

m68k-amigaos-gcc -c -mcrt=clib2 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall  -std=c++11 -fpermissive -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/fpdfsdk/cba_annotiterator.o fpdfsdk/cba_annotiterator.cpp
In file included from ./third_party/base/allocator/partition_allocator/page_allocator.h:10:0,
                 from ./third_party/base/allocator/partition_allocator/partition_alloc.h:65,
                 from ./core/fxcrt/fx_memory.h:31,
                 from ./core/fxcrt/cfx_maybe_owned.h:12,
                 from ./core/fpdfdoc/cpdf_annot.h:13,
                 from ./fpdfsdk/cba_annotiterator.h:12,
                 from fpdfsdk/cba_annotiterator.cpp:7:
/opt/amiga/lib/gcc/m68k-amigaos/6.4.1b/include/c++/cstddef:56:11: error: '::max_align_t' has not been declared
   using ::max_align_t;
           ^~~~~~~~~~~
make: *** [mktool/os3gcc6/fpdfsdk/cba_annotiterator.o] Fehler 1
 
@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

added max_align_t to stdint.h.

make newlib should do it.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

first make update sorry

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

Hmm, when I say "make newlib" it says "make: Nothing to do for target newlib". Also note that I'm using clib2.

The general problem is: libstdc++ is compiled for ONE library. Before adding newlib, it was compiled using libnix. Now it's compiled using newlib. And the challenge is to adapt libnix and clib2 to conform with its layouts to be compatible. Thus libnix and clib2 are partially using newlib headers, libnix only provides some own headers, clib2 a lot...
... in the end it will work^^

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

Ok, but now I get this:

m68k-amigaos-gcc -c -mcrt=clib2 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall  -std=c++11 -fpermissive -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/fpdfsdk/cfx_systemhandler.o fpdfsdk/cfx_systemhandler.cpp
In file included from ./fpdfsdk/cpdfsdk_formfillenvironment.h:21:0,
                 from fpdfsdk/cfx_systemhandler.cpp:17:
./public/fpdf_formfill.h:325:42: error: conflicting declaration 'typedef void (* TimerCallback)(int)'
 typedef void (*TimerCallback)(int idEvent);
                                          ^
In file included from fpdfsdk/cfx_systemhandler.cpp:7:0:
./fpdfsdk/cfx_systemhandler.h:15:48: note: previous declaration as 'using TimerCallback = void (*)(int32_t)'
 using TimerCallback = void (*)(int32_t idEvent);
                                                ^
In file included from ./fpdfsdk/cpdfsdk_widget.h:18:0,
                 from fpdfsdk/cfx_systemhandler.cpp:19:
./core/fxge/cfx_color.h: In constructor 'CFX_Color::CFX_Color(FX_COLORREF)':
./core/fxge/cfx_color.h:15:62: error: call of overloaded 'CFX_Color(uint8_t, uint8_t, uint8_t)' is ambiguous
       : CFX_Color(FXARGB_R(ref), FXARGB_G(ref), FXARGB_B(ref)) {}
                                                              ^
./core/fxge/cfx_color.h:28:3: note: candidate: CFX_Color::CFX_Color(int32_t, int32_t, int32_t)
   CFX_Color(int32_t r, int32_t g, int32_t b)
   ^~~~~~~~~
./core/fxge/cfx_color.h:17:3: note: candidate: CFX_Color::CFX_Color(int32_t, float, float, float, float)
   CFX_Color(int32_t type = COLORTYPE_TRANSPARENT,
   ^~~~~~~~~
make: *** [mktool/os3gcc6/fpdfsdk/cfx_systemhandler.o] Fehler 1 

I could probably fix this in the code I'm trying to compile, i.e. by changing int to int32_t and maybe adding a cast to int32_t for the second error (ambiguous constructor call) but I'm not sure if that is the right way to go because the code in question compiles flawlessly on AmigaOS 4, MorphOS, Linux, Mac OS, Android and Windows so I'm not sure if I should fix the code or whether there is still something wrong in amiga-gcc? What do you think?

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

Which gcc version are used with the other platforms?
IMHO gcc 6.4 should provide identical messages on different plattforms .

You could also provide the git url of this project plus Amiga-Gcc build instructions. Then I'm able to check more.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

On AmigaOS 4 and MorphOS I'm using gcc 5. On Linux it's gcc 4.8. Mac OS and Android uses clang and Windows Visual C++. Unfortunately, the project is not on Github but I can send you a tar if you want to check it out...

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

I created an example:

struct X {
  X(int);
  X(int x = 0, float);
};

X foo() {
  char c = 1;
  return X(c);
}

And gcc 6.4 complains as m68k-amigaos-gcc 6.4.

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

gcc 7.3 is complaining too

=> I would fix it in the code - somehow.

Create an enum ColorType for COLORTYPE_TRANSPARENT and so then change the 2nd ct to

CFX_Color(ColorType type = COLORTYPE_TRANSPARENT,

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

IMHO this issue is resolved.

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

I've tested with linux gcc 6.4 and 7.3 and both do complain.

I won't fix this.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

FWIW, I've also tested it on gcc 7.3 now and it compiles just fine so it must be a problem that is specific to amiga-gcc and not to gcc...

@bebbo bebbo added the wontfix label Jun 3, 2018

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

Well, you tested your little demo source but not my full blown project :) As I said, compiles fine on gcc 7.3 and gcc 6.3 for Linux and errors out on amiga-gcc 6.4...

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

maybe a future merge with upstream will fix this.

Since I did not touch the c++ parser, I won't act here.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

IMHO it is rather related to some messed up includes. Just take a look at the first error: It seems to be confused when int32_t is used synonymous with int. Maybe there's a wrong definition of int32_t. This would also explain the second error where it seems to have problems matching the constructor to the constructor using int32_t.

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

please attach the preprocess file (use -E instead of -c) - also mail me the mentioned archive.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

You've got mail.

@bebbo bebbo removed the wontfix label Jun 3, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

got it and there is progress until it's hitting clib2's dirent structure ^^

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

core/fxcrt/fx_stream.cpp143:

- #ifdef HW_AMIGAOS4
+ #if defined(HW_AMIGAOS4) || defined(__AMIGA__)

next:
third_party/base/allocator/partition_allocator/page_allocator.cc:29:22: fatal error: sys/mman.h: No such file or directory

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

all changes are live - good luck

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

Thanks, we're almost there I guess. Just extend the defined(HW_AMIGAOS4) to include HW_AMIGAOS3 as well in page_allocator.cc and opj_clock.c to make it continue compiling until this happens:

m68k-amigaos-gcc -c -mcrt=clib2 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall   -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/third_party/libopenjpeg20/t1.o third_party/libopenjpeg20/t1.c
third_party/libopenjpeg20/t1.c: In function 'opj_t1_dec_sigpass_mqc_generic_novsc':
third_party/libopenjpeg20/t1.c:672:1: error: unrecognizable insn:
 }
 ^
(insn 3631 484 485 (set (mem:SI (plus:SI (reg/v/f:SI 8 a0 [orig:171 north ] [171])
                (const_int 4294967288 [0xfffffff8])) [2 MEM[(opj_flag_t *)north_480 + 4294967292B]+0 S4 A16])
        (ior:SI (mem:SI (plus:SI (reg/v/f:SI 8 a0 [orig:171 north ] [171])
                    (const_int 4294967288 [0xfffffff8])) [2 MEM[(opj_flag_t *)north_480 + 4294967292B]+0 S4 A16])
            (const_int 131072 [0x20000]))) -1
     (nil))
third_party/libopenjpeg20/t1.c:672:1: internal compiler error: in extract_insn, at recog.c:2293
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [mktool/os3gcc6/third_party/libopenjpeg20/t1.o] Fehler 1 

I guess this needs your attention one more time...

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

I pushed the gcc fix to the build system, if tests are passed, the change is live in ~15 mins.

make finishes now:

...
m68k-amigaos-ar: creating mktool/os3gcc6/libpdfz.a
@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 3, 2018

Hmm, I made a fresh rebuild but it still shows the error shown above. Maybe the change isn't live yet... I'll try again tomorrow :)

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 3, 2018

gcc version 6.4.1b 20180603-213430 (GCC)

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 4, 2018

Alright, I had an older version but now I'm on the latest one and it compiles through. On linking, however, I now get the following error:

m68k-amigaos-gcc  -m68020 -mcrt=clib2 -o mktool/os3gcc6/polybios.ext mktool/os3gcc6/main.o -L../pdfium/mktool/os3gcc6 -lpdffreetype -lcms -lopenjpeg -lagg -lpdfium -lfdrm -lfpdfdoc -lfpdfapi -lfpdftext -lfxcodec -lfxcrt -lfxge -lpwl -lformfiller -ljavascript -lpdfiumbase -lstdc++ -lpdffreetype -lfdrm -lfpdfdoc -lpwl -lagg -lcms -lopenjpeg -lpdfjpeg -lpdfz -lc -lm -lstdc++ -lc -lstdc++
../pdfium/mktool/os3gcc6/libpdfiumbase.a(partition_alloc.o)(.text+0x1ea):partition_alloc.o: undefined reference to `__atomic_exchange_4'
../pdfium/mktool/os3gcc6/libpdfiumbase.a(partition_alloc.o)(.text+0x1be4):partition_alloc.o: undefined reference to `__atomic_exchange_4'
../pdfium/mktool/os3gcc6/libpdfiumbase.a(partition_alloc.o)(.text+0x334):partition_alloc.o: undefined reference to `__atomic_exchange_4'
../pdfium/mktool/os3gcc6/libpdfiumbase.a(partition_alloc.o)(.text+0x2104):partition_alloc.o: undefined reference to `__atomic_exchange_4'
../pdfium/mktool/os3gcc6/libpdfiumbase.a(spin_lock.o)(.text+0x22): undefined reference to `__atomic_exchange_4'
../pdfium/mktool/os3gcc6/libpdfiumbase.a(address_space_randomization.o)(.text+0x44):address_space_randomization.o: more undefined references to `__atomic_exchange_4' follow
collect2: error: ld returned 1 exit status

Google says that this error means that I should link against -latomic but this library apparently doesn't exist for 68k. Any idea how to fix this?

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 4, 2018

the provided makefile does not link^^ do I need an update?

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 4, 2018

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 4, 2018

I've found a new error. Enabling 68020 + 68881 results in this error:

m68k-amigaos-gcc -c -mcrt=clib2 -m68020 -m68881 -DHW_AMIGA -DHW_AMIGAOS3 -DNDEBUG -Wall  -std=c++11 -fpermissive -O  -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_LIBJPEG -DOPJ_STATIC -DDEFINE_PS_TABLES -DMEMORY_TOOL_REPLACES_ALLOCATOR -DOPJ_BIG_ENDIAN -DARCH_CPU_BIG_ENDIAN  -I. -Ithird_party/freetype-2.8/include -Ithird_party/jpeg-8d/include -Ithird_party/zlib-1.2.7/include -o mktool/os3gcc6/core/fxcrt/fx_coordinates.o core/fxcrt/fx_coordinates.cpp
core/fxcrt/fx_coordinates.cpp: In constructor 'CFX_FloatRect::CFX_FloatRect(const FX_RECT&)':
core/fxcrt/fx_coordinates.cpp:54:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions. 
@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 5, 2018

please test gcc version 6.4.1b 20180605-075457 (GCC)

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 5, 2018

Thanks, that fixes it.

The resulting executable basically works but for some PDF pages the whole program terminates with the following error printed to the console: "Abnormal program termination". Do you know what could be causing this?

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 7, 2018

This is printed by __print_termination_message which is called from

  • abort()
  • raise(SIG_INT)
  • raise(...) with unhandled signals
  • assert(0)

set a debugger breakpoint on __print_termination and check the stack for function addresses to identify the caller.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 8, 2018

set a debugger breakpoint on __print_termination and check the stack for function addresses to identify the caller

How can I do that? Isn't that only possible with gdb which we don't have for OS3 68k?

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 8, 2018

I'm using DBug from O.M.A. but barfly should work too.

@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 8, 2018

I don't have O.M.A. but I could try Barfly. Do I have to compile with -g -gstabs then and leave out stripping or how does that work?

@bebbo

This comment has been minimized.

Copy link
Owner

bebbo commented Jun 8, 2018

  1. never strip if you wanna debug
  2. barfly can read the info created by -g, dbug can't.
@softwarefailure

This comment has been minimized.

Copy link
Author

softwarefailure commented Jun 9, 2018

Ok, I've tried to link with -g and leave out stripping. The executable is now 16 MB instead of 5 MB so this looks good. Then I did the following:

  1. Start BDebug
  2. Click "Debug File" and select the 16 MB executable
  3. Choose "Run Task" from the "Step/Trace" menu

However, when I now start the host program that communicates with the program started through BDebug, the system locks up completely. Any idea what could be causing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.