[MacPorts] #41321: kdelibs4: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)

MacPorts noreply at macports.org
Sun Dec 1 04:58:59 PST 2013


#41321: kdelibs4: invalid deployment target for -stdlib=libc++ (requires OS X 10.7
or later)
------------------------------------+-----------------------
  Reporter:  ryandesign@…           |      Owner:  nicos@…
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.2.1
Resolution:                         |   Keywords:  mavericks
      Port:  kdelibs4, kdepimlibs4  |
------------------------------------+-----------------------

Comment (by nicos@…):

 Right, I did not check the enclosing conditions...
 However, performing the test that FindKDE4Internal.cmake does works for
 me, which is to try to compile a file defined as:
 {{{
 #include <QtCore/QtGlobal>
 int main() {
 #ifndef QT_VISIBILITY_AVAILABLE
 #error QT_VISIBILITY_AVAILABLE is not available
 #endif
 }
 }}}
 and then running
 {{{
 clang -I/opt/local/include test.c
 }}}

 I noticed that QT_VISIBILITY_AVAILABLE is still defined on OS X because it
 is declared in qconfig.h (full path
 /opt/local/Library/Frameworks/QtCore.framework/Versions/4/Headers/qconfig.h)
 on my system. This is consistent also with the build log of qt4-mac, where
 the flags are indeed used during compilation:
 {{{
 /usr/bin/clang++ -c -pipe -Os -Xarch_i386 -mmacosx-version-min=10.9
 -Xarch_x86_64 -mmacosx-version-min=10.9 -O2 -fvisibility=hidden
 -fvisibility-inlines-hidden ...
 }}}

 I also tested the +universal variant, as it is what you have if I am not
 mistaken, and these flags are also defined in the case of +universal (see
 just above), and I could build kdelibs4+universal.
 This means that I still have some issues understanding in which case this
 error occurs, as I only encountered it randomly quite some time ago on
 10.8 before this report. For what I could see, the 10.9 build bot also
 seems to compile the basic kde ports without errors, for example:
 {{{
 Building kdelibs4 (497 of 17941)...success
 Building kde4-baseapps (1987 of 17941)...success
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41321#comment:6>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list