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

Building from sources fails on macOS with MimeTypeDatabaseOriginalSize error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.15
    • Build System
    • macOS 10.14
    • macOS

    Description

      Steps to reproduce:

      1. Download the online installer (installer sha: cfa998544d2c80b03dcbc278d2647d91d66d73b9) and install the binary and the sources
      2. Configure with:
       ./configure 
      -confirm-license -verbose -release -force-debug-info -nomake tests 
      -nomake examples -no-sql-mysql -plugin-sql-psql -plugin-sql-sqlite 
      -sysconfdir /Library/Preferences/Qt -I/usr/local/opt/openssl/include 
      -separate-debug-info -commercial -prefix /Users/qt/RTA/make_install

      3. build

      Expected result:

      Build succeeds

      Actual result:

      Build fails with:

       ['        
                           ^', "mimetypes/qmimeprovider.cpp:633:52: error: use
       of undeclared identifier 'MimeTypeDatabaseOriginalSize'", '    
      Q_STATIC_ASSERT_X(sizeof(mimetype_database) <= 
      MimeTypeDatabaseOriginalSize,', '                                       
                  ^', "mimetypes/qmimeprovider.cpp:635:23: error: use of 
      undeclared identifier 'MimeTypeDatabaseOriginalSize'", '    
      Q_STATIC_ASSERT_X(MimeTypeDatabaseOriginalSize <= 16*1024*1024,', '  
                          ^', "mimetypes/qmimeprovider.cpp:637:55: error: use 
      of undeclared identifier 'mimetype_database'", '    const char *data = 
      reinterpret_cast<const char *>(mimetype_database);', '            
                                                ^', 
      "mimetypes/qmimeprovider.cpp:638:22: error: use of undeclared identifier
       'MimeTypeDatabaseOriginalSize'", '    qsizetype size = 
      MimeTypeDatabaseOriginalSize;', '                     ^', 
      '/Applications/Xcode11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
       -c -include.pch/QtCore_x86_64.pch/objective-c++_x86_64 -pipe 
      -stdlib=libc++ -g -O3 -std=c++1y -fapplication-extension  -arch x86_64 
      -isysroot 
      /Applications/Xcode11.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
       -mmacosx-version-min=10.13 -fvisibility=hidden 
      -fvisibility-inlines-hidden -Wall -Wextra 
      -Winconsistent-missing-override -Wobjc-interface-ivars 
      -Wobjc-method-access -Wobjc-multiple-method-names 
      -Werror=unguarded-availability -Werror=unguarded-availability-new 
      -Werror=unsupported-availability-guard -fPIC -DQT_NO_LINKED_LIST 
      -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH 
      -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB 
      -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS 
      -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS 
      -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 
      -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -D_LARGEFILE64_SOURCE 
      -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DPCRE2_CODE_UNIT_WIDTH=16 -I. 
      -Iglobal -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 
      -I../3rdparty -I../3rdparty/double-conversion/include 
      -I../3rdparty/harfbuzz/src -I../3rdparty/forkfd 
      -I../3rdparty/tinycbor/src -I.rcc -I../../include -I../../include/QtCore
       -I../../include/QtCore/5.15.0 -I../../include/QtCore/5.15.0/QtCore 
      -I.moc -I.tracegen -I../3rdparty/pcre2/src 
      -I/usr/local/opt/openssl/include -I../../mkspecs/macx-clang -o 
      .obj/qprocess_darwin.o io/qprocess_darwin.mm', '6 errors generated.', 
      'make[2]: *** [.obj/qmimeprovider.o] Error 1', 'make[2]: *** Waiting for
       unfinished jobs....', 'make[1]: *** [sub-corelib-install_subtargets] 
      Error 2', 'make: *** [sub-src-install_subtargets] Error 2', '']

      Possibly caused by: https://codereview.qt-project.org/c/qt/qtbase/+/263548

      Attachments

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

        Activity

          People

            tosaraja Tony Sarajärvi
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes