[MacPorts] #57615: p5-wx uses libc++ when it shouldn't, resulting in fatal error: 'tr1/type_traits' file not found
MacPorts
noreply at macports.org
Fri Nov 16 10:13:14 UTC 2018
#57615: p5-wx uses libc++ when it shouldn't, resulting in fatal error:
'tr1/type_traits' file not found
------------------------+----------------------
Reporter: ryandesign | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: p5-wx
------------------------+----------------------
p5-wx fails to build on OS X 10.8 (and earlier I'm sure):
{{{
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/strvararg.h:30:18:
fatal error: 'tr1/type_traits' file not found
#include <tr1/type_traits>
^
}}}
This is because it's trying to use libc++:
{{{
/usr/bin/clang++ -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-stdlib=libc++ -UWX_PRECOMP -c -I. -I.
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include
/osx_cocoa-unicode-3.0
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0
-fno-common -DPERL_DARWIN -mmacosx-version-min=10.8 -pipe -Os -fno-strict-
aliasing -fstack-protector -I/opt/local/include -DPERL_USE_SAFE_PUTENV
-arch x86_64 -O3 -DVERSION=\"0.9932\" -DXS_VERSION=\"0.9932\"
"-I/opt/local/lib/perl5/5.26/darwin-thread-multi-2level/CORE"
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__ Event.c
}}}
It shouldn't be doing that; it should use `${configure.cxx_stdlib}`.
--
Ticket URL: <https://trac.macports.org/ticket/57615>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list