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

-separate-debug-info not supported (broken) on Apple platforms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.0 Beta1
    • Fix Version/s: 5.6.1
    • Component/s: Build System
    • Labels:
      None
    • Commits:
      ab599a39313c22fd14cc5466cea5c61bbcdbba8e

      Description

      Error:
      When specifying "-separate-debug-info" on OS X builds, configure fails due to the missing variable QMAKE_OBJCOPY.
      Unfortunately, one cannot easily set this variable to "QMAKE_OBJCOPY = objcopy" like for the Linux builds as objcopy is not available on OS X.
      There are workarounds available which use a ported version of the Unix/Linux objcopy on OS X.
      However, I am not an OS X expert and others certainly know how to fix this properly.

      Output log:
      ./configure -v \
      -platform macx-clang \
      -opensource \
      -confirm-license \
      -dont-process \
      -shared \
      -debug-and-release \
      -strip \
      -force-debug-info \
      -separate-debug-info \
      -no-framework \
      -nomake examples \
      -nomake tests \
      -no-rpath \
      -no-icu \
      -qt-sql-sqlite \
      -system-zlib \
      -qt-libpng \
      -qt-libjpeg \
      -opengl \
      -no-cups \
      -no-sql-db2 \
      -no-sql-ibase \
      -no-sql-mysql \
      -no-sql-oci \
      -no-sql-odbc \
      -no-sql-psql \
      -no-sql-sqlite2 \
      -no-sql-tds \
      -no-libudev \
      -no-c++11

      This is the Qt Open Source Edition.

      You are licensed to use this software under the terms of
      the Lesser GNU General Public License (LGPL) versions 2.1.
      You are also licensed to use this software under the terms of
      the GNU General Public License (GPL) versions 3.

      You have already accepted the terms of the Open Source license.

      Precompiled-headers support enabled.
      Separate debug info check skipped, QMAKE_OBJCOPY is unset.
      Separate debug info support disabled.
      ERROR: -separate-debug-info was requested but this binutils does not support it.
      Re-run configure with -v for more information
      make[1]: *** [configure] Error 1
      make: *** [QtBase] Error 2

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
                Reporter:
                wbremer Wolfgang Bremer
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes