Skip to content

Draft: community/mingw-w64-gcc: use -fpermissive

mio requested to merge mio/aports:mingw-w64-gcc into master

Use -fpermissive for now to allow the source to compile due to multple instances of template errors.

/home/buildozer/aports/community/mingw-w64-gcc/src/gcc-14.2.0/libstdc++-v3/src/c++98/bitmap_allocator.cc:51:23: error: ISO C++17
↪does not allow dynamic exception specifications
   51 |   _M_get(size_t __sz) throw(std::bad_alloc)
      |                       ^~~~~
make[5]: *** [Makefile:658: bitmap_allocator.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
/home/buildozer/aports/community/mingw-w64-gcc/src/gcc-14.2.0/libstdc++-v3/src/c++98/ios_locale.cc:59:12: error: template-id
↪'operator bool<>' for 'std::basic_ios<char>::operator void*() const' does not match any template declaration
   59 |   template basic_ios<char>::operator void*() const;
      |            ^~~~~~~~~~~~~~~

[...]

/home/buildozer/aports/community/mingw-w64-gcc/src/gcc-14.2.0/libstdc++-v3/src/c++98/misc-inst.cc:79:3: error: template-id
↪'replace<>' for 'std::wstring& std::__cxx11::basic_string<wchar_t>::replace(iterator, iterator, const_iterator, const_iterator)'
↪does not match any template declaration
   79 |   wstring::replace(iterator, iterator, const_iterator, const_iterator);
      |   ^~~~~~~

--

Draft status:

  • Could not downgrade errors using -Wno-error=template-id-cdtor -fpermissive flags.
  • Build issue only for c++. When only --enable-languages=c,lto are enabled, the build runs successfully.
Edited by mio

Merge request reports

Loading