[MacPorts] #41588: Boost.Regex with GCC broken on Mavericks?

MacPorts noreply at macports.org
Tue Dec 3 13:42:54 PST 2013


#41588: Boost.Regex with GCC broken on Mavericks?
------------------------------+--------------------------------
  Reporter:  akim.demaille@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  closed
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.2.1
Resolution:  invalid          |   Keywords:  mavericks
      Port:  boost            |
------------------------------+--------------------------------

Comment (by ryandesign@…):

 Replying to [comment:10 akim.demaille@…]:
 > - clang is not an option, where from Xcode or from MacPorts, because its
 system's library does not support C++11
 > {{{
 > $ c++ -std=c++11 -ggdb -Wall foo.cc -lboost_filesystem-mt
 -lboost_system-mt -L/opt/local/lib -I/opt/local/include
 > foo.cc:7:17: error: no member named 'make_shared' in namespace 'std'
 >   auto p = std::make_shared<boost::filesystem::path>("abc");
 >            ~~~~~^
 > foo.cc:7:52: error: expected '(' for function-style cast or type
 construction
 >   auto p = std::make_shared<boost::filesystem::path>("abc");
 >                             ~~~~~~~~~~~~~~~~~~~~~~~^
 > 2 errors generated.
 > }}}

 This works fine for me.

 {{{
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.9
 BuildVersion:   13A603
 $ c++ -v
 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
 Target: x86_64-apple-darwin13.0.0
 Thread model: posix
 $ c++ -std=c++11 -ggdb -Wall foo.cc -lboost_filesystem-mt -lboost_system-
 mt -L/opt/local/lib -I/opt/local/include
 $ ./a.out
 0
 "/private/tmp/abc"
 }}}

 > {{{
 > $ c++ -std=c++11 -stdlib=libc++ -ggdb -Wall foo.cc -lboost_filesystem-mt
 -lboost_system-mt -L/opt/local/lib -I/opt/local/include
 > $ ./a.out
 > zsh: segmentation fault  ./a.out
 > }}}

 As does this, which it should, since all you've added is
 "`-stdlib=libc++`" which is the default on Mavericks anyway.

 This makes me think your `c++` is not Apple LLVM version 5.0.

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


More information about the macports-tickets mailing list