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

When building a static universal library on an Intel Mac machine the precompiled header does not get compiled correctly for PPC.

    XMLWordPrintable

Details

    • macOS

    Description

      When building a static universal library on an Intel Mac machine the precompiled header does not get compiled correctly for PPC.

      Reproducible with the following pro file:
      TEMPLATE = lib

      CONFIG += warn_on \
      exceptions \
      rtti \
      precompile_header \
      staticlib \
      create_prl \
      build_all \
      debug_and_release
      CONFIG += x86 ppc

      QT += gui

      win32:CONFIG+=console

      TARGET =
      DEPENDPATH += .
      INCLUDEPATH += .

      1. Input
        SOURCES += main.cpp
        HEADERS += header.h

      PRECOMPILED_HEADER += header.h
      DEFINES += USING_PCH

      Error message:
      make -f Makefile.Release all
      g++ -pipe -Os -arch ppc -arch i386 -fPIC -Wall -W -DUSING_PCH -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/Users/jberg/depot/qt-4.4/mkspecs/macx-g++ -I. -I/Users/jberg/depot/qt-4.4/lib/QtCore.framework/Versions/4/Headers -I/Users/jberg/depot/qt-4.4/include/QtCore -I/Users/jberg/depot/qt-4.4/include/QtCore -I/Users/jberg/depot/qt-4.4/lib/QtGui.framework/Versions/4/Headers -I/Users/jberg/depot/qt-4.4/include/QtGui -I/Users/jberg/depot/qt-4.4/include/QtGui -I/Users/jberg/depot/qt-4.4/include -I. -Irelease -I. -F/Users/jberg/depot/qt-4.4/lib -x c+-header -c header.h -o release/bene.gch/c+
      lipo: can't figure out the architecture type of: /var/folders/uf/uf2p4BLCEg88YCHuyY5kC++++TQ/Tmp//ccAtTOgi.out
      make[1]: *** [release/bene.gch/c++] Error 1
      make: *** [release-all] Error 2

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes