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

qmake in Qt 5.13.1 escapes arguments, this breaks the build with clang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.13.1
    • Build tools: qmake
    • None
    • macOS

    Description

      Qt 5.13.0, builds fine:

      /Applications/Xcode-9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -F /Users/travis/build/Mudlet/Mudlet/src/../3rdparty/cocoapods/Pods/Sparkle -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode-9.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@executable_path/../Frameworks -o Mudlet.app/Contents/MacOS/Mudlet irc.o irccommand.o ircconnection.o irccore.o ircfilter.o ircmessage.o ircmessage_p.o ircmessagecomposer.o ircmessagedecoder.o ircnetwork.o ircprotocol.o rdf_utils.o ircmessagedecoder_none.o ircbuffer.o ircbuffermodel.o ircchannel.o ircmodel.o ircuser.o ircusermodel.o irccommandparser.o irccommandqueue.o irccompleter.o irclagtimer.o ircpalette.o irctextformat.o irctoken.o ircutil.o commentcommand.o copycommand.o cutcommand.o debugcommand.o duplicatecommand.o findcommand.o movelinecommand.o newlinecommand.o pastecommand.o redocommand.o removecommand.o replaceselectioncommand.o selectioncommand.o tabcommand.o undocommand.o factorycommandmap.o factorykeymap.o edbee.o baseplistparser.o jsonparser.o keymapparser.o textdocumentserializer.o tmlanguageparser.o tmthemeparser.o grammartextlexer.o change.o abstractrangedchange.o linedatachange.o linedatalistchange.o mergablechangegroup.o selectionchange.o textchange.o textchangewithcaret.o chartextbuffer.o chartextdocument.o dynamicvariables.o textautocompleteprovider.o textbuffer.o textdocument.o textdocumentfilter.o textdocumentscopes.o texteditorcommandmap.o texteditorconfig.o texteditorkeymap.o textgrammar.o textlexer.o textlinedata.o textrange.o textsearcher.o textundostack.o texteditorcommand.o texteditorcontroller.o texteditorwidget.o cascadingqvariantmap.o lineending.o lineoffsetvector.o debug_allocs.o debug_new.o rangelineiterator.o rangesetlineiterator.o regexp.o simpleprofiler.o test.o textcodec.o textcodecdetector.o util.o texteditorautocompletecomponent.o texteditorcomponent.o texteditorrenderer.o textmargincomponent.o textcaretcache.o texteditorscrollarea.o textrenderer.o textselection.o texttheme.o QsLogDest.o QsLog.o QsLogDestConsole.o QsLogDestFile.o QsLogDestFunctor.o QsLogMessage.o QsLogLevel.o regcomp.o regenc.o regerror.o regexec.o regext.o reggnu.o regparse.o regposerr.o regposix.o regsyntax.o regtrav.o regversion.o st.o ascii.o big5.o cp949.o emacs_mule.o euc_jp.o euc_kr.o euc_tw.o gb18030.o gbk.o iso_8859_1.o iso_8859_10.o iso_8859_11.o iso_8859_13.o iso_8859_14.o iso_8859_15.o iso_8859_16.o iso_8859_2.o iso_8859_3.o iso_8859_4.o iso_8859_5.o iso_8859_6.o iso_8859_7.o iso_8859_8.o iso_8859_9.o koi8_r.o koi8_u.o shift_jis.o unicode.o us_ascii.o utf_16be.o utf_16le.o utf_32be.o utf_32le.o utf_8.o windows_1250.o windows_1251.o windows_1252.o windows_1253.o windows_1254.o windows_1257.o windows_31j.o keychain.o keychain_mac.o release.o semver.o update_dialog.o feed.o ActionUnit.o AliasUnit.o ctelnet.o discord.o dlgAboutDialog.o dlgActionMainArea.o dlgAliasMainArea.o dlgColorTrigger.o dlgComposer.o dlgConnectionProfiles.o dlgIRC.o dlgKeysMainArea.o dlgMapper.o dlgNotepad.o dlgPackageExporter.o dlgProfilePreferences.o dlgRoomExits.o dlgScriptsMainArea.o dlgSourceEditorArea.o dlgSystemMessageArea.o dlgTimersMainArea.o dlgTriggerEditor.o dlgTriggerPatternEdit.o dlgTriggersMainArea.o dlgVarsMainArea.o EAction.o exitstreewidget.o FontManager.o Host.o HostManager.o ircmessageformatter.o KeyUnit.o LuaInterface.o main.o mudlet.o ScriptUnit.o T2DMap.o TAction.o TAlias.o TArea.o TBuffer.o TCommandLine.o TConsole.o TDebug.o TDockWidget.o TEasyButtonBar.o TFlipButton.o TForkedProcess.o TimerUnit.o TKey.o TLabel.o TLuaInterpreter.o TMap.o TriggerUnit.o TRoom.o TRoomDB.o TScript.o TSplitter.o TSplitterHandle.o TTabBar.o TTextEdit.o TTimer.o TToolBar.o TTreeWidget.o TTrigger.o TVar.o VarUnit.o XMLexport.o XMLimport.o updater.o glwidget.o AutoUpdater.o SparkleAutoUpdater.o CocoaInitializer.o qrc_mudlet.o qrc_qm.o qrc_mudlet_fonts.o moc_edbee.o moc_chartextdocument.o moc_textbuffer.o moc_textdocument.o moc_textdocumentscopes.o moc_texteditorcommandmap.o moc_texteditorconfig.o moc_textlinedata.o moc_textrange.o moc_textsearcher.o moc_textundostack.o moc_texteditorcontroller.o moc_texteditorwidget.o moc_test.o moc_texteditorautocompletecomponent.o moc_texteditorcomponent.o moc_textmargincomponent.o moc_texteditorscrollarea.o moc_textrenderer.o moc_texttheme.o moc_QsLogDestFunctor.o moc_keychain_p.o moc_keychain.o moc_update_dialog.o moc_feed.o moc_ctelnet.o moc_discord.o moc_dlgAboutDialog.o moc_dlgActionMainArea.o moc_dlgAliasMainArea.o moc_dlgColorTrigger.o moc_dlgComposer.o moc_dlgConnectionProfiles.o moc_dlgIRC.o moc_dlgKeysMainArea.o moc_dlgMapper.o moc_dlgNotepad.o moc_dlgPackageExporter.o moc_dlgProfilePreferences.o moc_dlgRoomExits.o moc_dlgScriptsMainArea.o moc_dlgSourceEditorArea.o moc_dlgSystemMessageArea.o moc_dlgTimersMainArea.o moc_dlgTriggerEditor.o moc_dlgTriggerPatternEdit.o moc_dlgTriggersMainArea.o moc_dlgVarsMainArea.o moc_EAction.o moc_exitstreewidget.o moc_Host.o moc_mudlet.o moc_T2DMap.o moc_TCommandLine.o moc_TConsole.o moc_TEasyButtonBar.o moc_TForkedProcess.o moc_TLabel.o moc_TLuaInterpreter.o moc_TMap.o moc_TSplitter.o moc_TSplitterHandle.o moc_TTextEdit.o moc_TToolBar.o moc_TTreeWidget.o moc_XMLexport.o moc_updater.o moc_glwidget.o -F/usr/local/Cellar/qt/5.13.0/lib -lz -lzzip -framework Security -framework Foundation -framework AppKit -F/Users/travis/build/Mudlet/Mudlet/src/../3rdparty/cocoapods/Pods/Sparkle -framework Sparkle -L/usr/local/Cellar/hunspell/1.7.0_2/lib -lhunspell-1.7 -L/usr/local/lib -llua.5.1 -lm -L/usr/local/Cellar/yajl/2.1.0/lib -lyajl -L/usr/local/Cellar/pcre/8.43/lib -lpcre -L/usr/local/Cellar/libzip/1.5.2/lib -lzip -L/usr/local/Cellar/pugixml/1.9/lib/pugixml-1.9 -lpugixml /usr/local/Cellar/qt/5.13.0/lib/libQt5UiTools.a -framework QtOpenGL -framework QtWidgets -framework QtMultimedia -framework QtGamepad -framework QtGui -framework QtNetwork -framework QtConcurrent -framework QtTextToSpeech -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
      ld: warning: direct access in function 'QtPrivate::ValueTypeIsMetaType<QList<QWidget*>, true>::registerConverter(int)' from file '/usr/local/Cellar/qt/5.13.0/lib/libQt5UiTools.a(abstractformbuilder.o)' to global weak symbol 'QMetaTypeIdQtMetaTypePrivate::QSequentialIterableImpl::qt_metatype_id()::metatype_id' from file 'ircmessage.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
      

       
      Qt 5.13.1, fails:

      /Applications/Xcode-9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -F /Users/travis/build/Mudlet/Mudlet/src/../3rdparty/cocoapods/Pods/Sparkle -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode-9.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@executable_path/../Frameworks -o Mudlet.app/Contents/MacOS/Mudlet irc.o irccommand.o ircconnection.o irccore.o ircfilter.o ircmessage.o ircmessage_p.o ircmessagecomposer.o ircmessagedecoder.o ircnetwork.o ircprotocol.o rdf_utils.o ircmessagedecoder_none.o ircbuffer.o ircbuffermodel.o ircchannel.o ircmodel.o ircuser.o ircusermodel.o irccommandparser.o irccommandqueue.o irccompleter.o irclagtimer.o ircpalette.o irctextformat.o irctoken.o ircutil.o commentcommand.o copycommand.o cutcommand.o debugcommand.o duplicatecommand.o findcommand.o movelinecommand.o newlinecommand.o pastecommand.o redocommand.o removecommand.o replaceselectioncommand.o selectioncommand.o tabcommand.o undocommand.o factorycommandmap.o factorykeymap.o edbee.o baseplistparser.o jsonparser.o keymapparser.o textdocumentserializer.o tmlanguageparser.o tmthemeparser.o grammartextlexer.o change.o abstractrangedchange.o linedatachange.o linedatalistchange.o mergablechangegroup.o selectionchange.o textchange.o textchangewithcaret.o chartextbuffer.o chartextdocument.o dynamicvariables.o textautocompleteprovider.o textbuffer.o textdocument.o textdocumentfilter.o textdocumentscopes.o texteditorcommandmap.o texteditorconfig.o texteditorkeymap.o textgrammar.o textlexer.o textlinedata.o textrange.o textsearcher.o textundostack.o texteditorcommand.o texteditorcontroller.o texteditorwidget.o cascadingqvariantmap.o lineending.o lineoffsetvector.o debug_allocs.o debug_new.o rangelineiterator.o rangesetlineiterator.o regexp.o simpleprofiler.o test.o textcodec.o textcodecdetector.o util.o texteditorautocompletecomponent.o texteditorcomponent.o texteditorrenderer.o textmargincomponent.o textcaretcache.o texteditorscrollarea.o textrenderer.o textselection.o texttheme.o QsLogDest.o QsLog.o QsLogDestConsole.o QsLogDestFile.o QsLogDestFunctor.o QsLogMessage.o QsLogLevel.o regcomp.o regenc.o regerror.o regexec.o regext.o reggnu.o regparse.o regposerr.o regposix.o regsyntax.o regtrav.o regversion.o st.o ascii.o big5.o cp949.o emacs_mule.o euc_jp.o euc_kr.o euc_tw.o gb18030.o gbk.o iso_8859_1.o iso_8859_10.o iso_8859_11.o iso_8859_13.o iso_8859_14.o iso_8859_15.o iso_8859_16.o iso_8859_2.o iso_8859_3.o iso_8859_4.o iso_8859_5.o iso_8859_6.o iso_8859_7.o iso_8859_8.o iso_8859_9.o koi8_r.o koi8_u.o shift_jis.o unicode.o us_ascii.o utf_16be.o utf_16le.o utf_32be.o utf_32le.o utf_8.o windows_1250.o windows_1251.o windows_1252.o windows_1253.o windows_1254.o windows_1257.o windows_31j.o keychain.o keychain_mac.o release.o semver.o update_dialog.o feed.o ActionUnit.o AliasUnit.o ctelnet.o discord.o dlgAboutDialog.o dlgActionMainArea.o dlgAliasMainArea.o dlgColorTrigger.o dlgComposer.o dlgConnectionProfiles.o dlgIRC.o dlgKeysMainArea.o dlgMapper.o dlgNotepad.o dlgPackageExporter.o dlgProfilePreferences.o dlgRoomExits.o dlgScriptsMainArea.o dlgSourceEditorArea.o dlgSystemMessageArea.o dlgTimersMainArea.o dlgTriggerEditor.o dlgTriggerPatternEdit.o dlgTriggersMainArea.o dlgVarsMainArea.o EAction.o exitstreewidget.o FontManager.o Host.o HostManager.o ircmessageformatter.o KeyUnit.o LuaInterface.o main.o mudlet.o ScriptUnit.o T2DMap.o TAction.o TAlias.o TArea.o TBuffer.o TCommandLine.o TConsole.o TDebug.o TDockWidget.o TEasyButtonBar.o TFlipButton.o TForkedProcess.o TimerUnit.o TKey.o TLabel.o TLuaInterpreter.o TMap.o TriggerUnit.o TRoom.o TRoomDB.o TScript.o TSplitter.o TSplitterHandle.o TTabBar.o TTextEdit.o TTimer.o TToolBar.o TTreeWidget.o TTrigger.o TVar.o VarUnit.o XMLexport.o XMLimport.o updater.o glwidget.o AutoUpdater.o SparkleAutoUpdater.o CocoaInitializer.o qrc_mudlet.o qrc_qm.o qrc_mudlet_fonts.o moc_edbee.o moc_chartextdocument.o moc_textbuffer.o moc_textdocument.o moc_textdocumentscopes.o moc_texteditorcommandmap.o moc_texteditorconfig.o moc_textlinedata.o moc_textrange.o moc_textsearcher.o moc_textundostack.o moc_texteditorcontroller.o moc_texteditorwidget.o moc_test.o moc_texteditorautocompletecomponent.o moc_texteditorcomponent.o moc_textmargincomponent.o moc_texteditorscrollarea.o moc_textrenderer.o moc_texttheme.o moc_QsLogDestFunctor.o moc_keychain_p.o moc_keychain.o moc_update_dialog.o moc_feed.o moc_ctelnet.o moc_discord.o moc_dlgAboutDialog.o moc_dlgActionMainArea.o moc_dlgAliasMainArea.o moc_dlgColorTrigger.o moc_dlgComposer.o moc_dlgConnectionProfiles.o moc_dlgIRC.o moc_dlgKeysMainArea.o moc_dlgMapper.o moc_dlgNotepad.o moc_dlgPackageExporter.o moc_dlgProfilePreferences.o moc_dlgRoomExits.o moc_dlgScriptsMainArea.o moc_dlgSourceEditorArea.o moc_dlgSystemMessageArea.o moc_dlgTimersMainArea.o moc_dlgTriggerEditor.o moc_dlgTriggerPatternEdit.o moc_dlgTriggersMainArea.o moc_dlgVarsMainArea.o moc_EAction.o moc_exitstreewidget.o moc_Host.o moc_mudlet.o moc_T2DMap.o moc_TCommandLine.o moc_TConsole.o moc_TEasyButtonBar.o moc_TForkedProcess.o moc_TLabel.o moc_TLuaInterpreter.o moc_TMap.o moc_TSplitter.o moc_TSplitterHandle.o moc_TTextEdit.o moc_TToolBar.o moc_TTreeWidget.o moc_XMLexport.o moc_updater.o moc_glwidget.o -F/usr/local/Cellar/qt/5.13.1/lib -lz -lzzip -framework\ Security -framework\ Foundation -framework AppKit -F/Users/travis/build/Mudlet/Mudlet/src/../3rdparty/cocoapods/Pods/Sparkle -framework Sparkle -L/usr/local/Cellar/hunspell/1.7.0_2/lib -lhunspell-1.7 -L/usr/local/lib -llua.5.1 -lm -L/usr/local/Cellar/yajl/2.1.0/lib -lyajl -L/usr/local/Cellar/pcre/8.43/lib -lpcre -L/usr/local/Cellar/libzip/1.5.2/lib -lzip -L/usr/local/Cellar/pugixml/1.9/lib/pugixml-1.9 -lpugixml /usr/local/Cellar/qt/5.13.1/lib/libQt5UiTools.a -framework QtOpenGL -framework QtWidgets -framework QtMultimedia -framework QtGamepad -framework QtGui -framework QtNetwork -framework QtConcurrent -framework QtTextToSpeech -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
      clang: error: unknown argument: '-framework Security'
      clang: error: unknown argument: '-framework Foundation'
      

      Observe how components argument got changed to -framework\ Security -framework\ Foundation and it can no longer be found, this was due to the .pro file of https://github.com/frankosterfeld/qtkeychain/pull/149/files escaping the arguments.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            vadi Vadim Peretokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes