Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84612

Qt provided Mingw 8.1.0: shape_annotation_impl.cpp:27:46: internal compiler error: in tsubst_default_argument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • None
    • Windows

    Description

      I am trying to compile the Qt library statically, but get an internal compiler error while it is compiling qtlocation/mapbox-gl-native.

      Might be a bug in gcc instead of Qt, but since I am using the mingw toolchain provided by your installer, I am reporting it here anyway.

       

      Using:

      • Mingw 8.1.0 32-bit  (provided by Qt installer)
      • Qt 5.15.0  (provided by Qt installer)
      • OpenSSL 1.1.1g (compiled as static library from source with Mingw 8.1.0 and installed with prefix c:\qt\tools\mingw810_32)
      • DirectX June 2010 SDK from Microsoft site

       

       

      Compilation commands used:

       

      set PATH=C:\Qt\Tools\mingw810_32\bin;%PATH%
      set OPENSSL_LIBS=-LC:\Qt\Tools\mingw810_32\lib -lssl -lcrypto -lcrypt32 -lgdi32 -lws2_32
      configure.bat -static -release -optimize-size -no-pch -prefix c:\qt\515-static -skip webengine -nomake tests -nomake examples -nomake tools -openssl-linked -I c:\qt\tools\mingw810_32\include -opensource -angle -combined-angle-lib
      mingw32-make
      

       

       

       

      Gives internal compiler error:

       

      mingw32-make[6]: Entering directory 'C:/Qt/5.15.0/Src/qtlocation/src/3rdparty/mapbox-gl-native'
      g++ -c -fno-keep-inline-dllexport -DNDEBUG -DQT_IMAGE_DECODERS -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2 -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden -fvisibility=hidden -D_WINDOWS -DNOGDI -DNOMINMAX -D_USE_MATH_DEFINES -DMBGL_VERSION_REV=\"qt-v1.5.0\" -Os -std=c++1y -w -fexceptions -mthreads -ffunction-sections -fdata-sections -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -DGL_APICALL= -DEGLAPI= -I. -Ideps\boost\1.65.1 -Ideps\boost\1.65.1\include -Ideps\earcut\0.12.4 -Ideps\earcut\0.12.4\include -Ideps\geojson\0.4.2 -Ideps\geojson\0.4.2\include -Ideps\geojsonvt\6.5.1 -Ideps\geojsonvt\6.5.1\include -Ideps\geometry\0.9.3 -Ideps\geometry\0.9.3\include -Ideps\kdbush\0.1.1-1 -Ideps\kdbush\0.1.1-1\include -Ideps\optional\f27e7908 -Ideps\optional\f27e7908\include -Ideps\polylabel\1.0.3 -Ideps\polylabel\1.0.3\include -Ideps\protozero\1.5.2 -Ideps\protozero\1.5.2\include -Ideps\rapidjson\1.1.0 -Ideps\rapidjson\1.1.0\include -Ideps\shelf-pack\2.1.1 -Ideps\shelf-pack\2.1.1\include -Ideps\supercluster\0.2.2 -Ideps\supercluster\0.2.2\include -Ideps\tao_tuple\28626e99 -Ideps\tao_tuple\28626e99\include -Ideps\unique_resource\cba309e -Ideps\unique_resource\cba309e\include -Ideps\variant\1.1.4 -Ideps\variant\1.1.4\include -Ideps\vector-tile\1.0.2 -Ideps\vector-tile\1.0.2\include -Ideps\wagyu\0.4.3 -Ideps\wagyu\0.4.3\include -Iinclude -Iplatform\default -Iplatform\qt -Iplatform\qt\include -Isrc -Ivendor\nunicode\include -IC:\Qt\5.15.0\Src\qtbase\include\QtNetwork\5.15.0 -IC:\Qt\5.15.0\Src\qtbase\include\QtNetwork\5.15.0\QtNetwork -IC:\Qt\5.15.0\Src\qtbase\include\QtGui\5.15.0 -IC:\Qt\5.15.0\Src\qtbase\include\QtGui\5.15.0\QtGui -IC:\Qt\5.15.0\Src\qtbase\include\QtSql\5.15.0 -IC:\Qt\5.15.0\Src\qtbase\include\QtSql\5.15.0\QtSql -IC:\Qt\5.15.0\Src\qtbase\include\QtCore\5.15.0 -IC:\Qt\5.15.0\Src\qtbase\include\QtCore\5.15.0\QtCore -IC:\Qt\5.15.0\Src\qtbase\include -IC:\Qt\5.15.0\Src\qtbase\include\QtNetwork -IC:\Qt\5.15.0\Src\qtbase\include\QtGui -IC:\Qt\5.15.0\Src\qtbase\include\QtANGLE -IC:\Qt\5.15.0\Src\qtbase\include\QtSql -IC:\Qt\5.15.0\Src\qtbase\include\QtCore -I.moc\release -Ic:\qt\tools\mingw810_32\include -IC:\Qt\5.15.0\Src\qtbase\mkspecs\win32-g++  -o .obj\release\src\mbgl\annotation\shape_annotation_impl.o src\mbgl\annotation\shape_annotation_impl.cpp
      src\mbgl\annotation\shape_annotation_impl.cpp: In instantiation of 'mbgl::ShapeAnnotationImpl::updateTileData(const mbgl::CanonicalTileID&, mbgl::AnnotationTileData&)::<lambda(auto:10&&)> [with auto:10 = const mapbox::geometry::line_string<double>&]':
      deps\variant\1.1.4\include/mapbox/variant.hpp:300:21:   required from 'static R mapbox::util::detail::dispatcher<F, V, R, T, Types ...>::apply_const(const V&, F&&) [with F = mbgl::ShapeAnnotationImpl::updateTileData(const mbgl::CanonicalTileID&, mbgl::AnnotationTileData&)::<lambda(auto:10&&)>; V = mapbox::util::variant<mapbox::geometry::line_string<double, std::vector>, mapbox::geometry::polygon<double, std::vector>, mapbox::geometry::multi_line_string<double, std::vector>, mapbox::geometry::multi_polygon<double, std::vector> >; R = mapbox::geometry::feature<double>; T = mapbox::geometry::line_string<double>; Types = {mapbox::geometry::polygon<double, std::vector>, mapbox::geometry::multi_line_string<double, std::vector>, mapbox::geometry::multi_polygon<double, std::vector>}]'
      deps\variant\1.1.4\include/mapbox/variant.hpp:850:66:   required from 'static decltype (mapbox::util::detail::dispatcher<F, V, R, Types ...>::apply_const(v, forward<F>(f))) mapbox::util::variant<Types>::visit(const V&, F&&) [with F = mbgl::ShapeAnnotationImpl::updateTileData(const mbgl::CanonicalTileID&, mbgl::AnnotationTileData&)::<lambda(auto:10&&)>; V = mapbox::util::variant<mapbox::geometry::line_string<double, std::vector>, mapbox::geometry::polygon<double, std::vector>, mapbox::geometry::multi_line_string<double, std::vector>, mapbox::geometry::multi_polygon<double, std::vector> >; R = mapbox::geometry::feature<double>; Types = {mapbox::geometry::line_string<double, std::vector>, mapbox::geometry::polygon<double, std::vector>, mapbox::geometry::multi_line_string<double, std::vector>, mapbox::geometry::multi_polygon<double, std::vector>}; decltype (mapbox::util::detail::dispatcher<F, V, R, Types ...>::apply_const(v, forward<F>(f))) = mapbox::geometry::feature<double>]'
      src\mbgl\annotation\shape_annotation_impl.cpp:28:10:   required from here
      src\mbgl\annotation\shape_annotation_impl.cpp:27:46: internal compiler error: in tsubst_default_argument, at cp/pt.c:12692
                   return Feature { std::move(geom) };
                                                    ^
      libbacktrace could not find executable to open
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See <https://sourceforge.net/projects/mingw-w64> for instructions.
      mingw32-make[6]: *** [Makefile.Release:18058: .obj/release/src/mbgl/annotation/shape_annotation_impl.o] Error 1
      mingw32-make[6]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation/src/3rdparty/mapbox-gl-native'
      mingw32-make[5]: *** [Makefile:45: release] Error 2
      mingw32-make[5]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation/src/3rdparty/mapbox-gl-native'
      mingw32-make[4]: *** [Makefile:206: sub-------3rdparty-mapbox-gl-native-make_first] Error 2
      mingw32-make[4]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation/src/plugins/geoservices'
      mingw32-make[3]: *** [Makefile:76: sub-geoservices-make_first] Error 2
      mingw32-make[3]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation/src/plugins'
      mingw32-make[2]: *** [Makefile:237: sub-plugins-make_first] Error 2
      mingw32-make[2]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation/src'
      mingw32-make[1]: *** [Makefile:52: sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'C:/Qt/5.15.0/Src/qtlocation'
      mingw32-make: *** [Makefile:818: module-qtlocation-make_first] Error 2
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paangele Paolo Angelelli
            max_nl max_nl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes