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

Compile error on static build OSX 10.10.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.1
    • 5.3.2, 5.4.0 RC, 5.5.0 RC
    • None
    • OSX 10.10.1, Clang 64, XCode 6.1.1(6A2008a)
    • macOS
    • 45e1372e1969d840d709cef0d1b64df897038b02

    Description

      Trying to compile static Qt from Src on OSX 10.10.1, clang 64, Xcode 6.1.1(6A2008a). Happens on Qt 5.3.2 and 5.4.0RC.

      ./configure -static -no-compile-examples
      make

      [...]
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -std=c+11 -stdlib=libc+ -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -fPIE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_WIDGETS_LIB -DQT_MACEXTRAS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/Users/sixbytes/Qt/5.4/Src/qtbase/mkspecs/macx-clang -I. -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtWidgets/5.4.0 -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtWidgets/5.4.0/QtWidgets -I/Users/sixbytes/Qt/5.4/Src/qtbase/include -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtWidgets -I../../../include -I../../../include/QtMacExtras -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtGui/5.4.0 -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtGui/5.4.0/QtGui -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtGui -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtCore/5.4.0 -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtCore/5.4.0/QtCore -I/Users/sixbytes/Qt/5.4/Src/qtbase/include/QtCore -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers -o .obj/embeddedqwindow_plugin_import.o embeddedqwindow_plugin_import.cpp
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -o embeddedqwindow.app/Contents/MacOS/embeddedqwindow .obj/main.o .obj/window.o .obj/embeddedqwindow_plugin_import.o -framework Cocoa -L/Users/sixbytes/Qt/5.4/Src/qtbase/lib -framework DiskArbitration -framework IOKit -framework ApplicationServices -framework CoreServices -framework CoreFoundation -framework Foundation -framework OpenGL -framework AGL -framework Carbon -L/Users/sixbytes/Qt/5.4/Src/qtmacextras/lib -lQt5MacExtras_debug -framework AppKit -L/Users/sixbytes/Qt/5.4/Src/qtbase/plugins/platforms -lqcocoa_debug -lcups -lQt5PlatformSupport_debug -lQt5PrintSupport_debug -lQt5Widgets_debug -L/Users/sixbytes/Qt/5.4/Src/qtbase/plugins/imageformats -lqico_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lQt5Core_debug -lz -lm
      duplicate symbol __Z17getEmbeddableViewP7QWindow in:
      .obj/main.o
      /Users/sixbytes/Qt/5.4/Src/qtbase/lib/libQt5Widgets_debug.a(qmacnativewidget_mac.o)
      ld: 1 duplicate symbol for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[4]: *** [embeddedqwindow.app/Contents/MacOS/embeddedqwindow] Error 1
      make[3]: *** [sub-embeddedqwindow-make_first] Error 2
      make[2]: *** [sub-macextras-make_first] Error 2
      make[1]: *** [sub-examples-make_first] Error 2
      make: *** [module-qtmacextras-make_first] Error 2

      Attachments

        For Gerrit Dashboard: QTBUG-43213
        # Subject Branch Project Status CR V

        Activity

          People

            liaqi Liang Qi
            sixbytes Michael
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes