[MacPorts] #54599: g++ rejects flag "-stdlib"

MacPorts noreply at macports.org
Sun Aug 13 03:00:33 UTC 2017


#54599: g++ rejects flag "-stdlib"
------------------------+-----------------
 Reporter:  mouse07410  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:
------------------------+-----------------
 MacOS Sierra 10.12.6, Xcode-8.3.3, current Macports, Macports-installed
 GCC/G++:

 {{{
 $ g++ -v
 Using built-in specs.
 COLLECT_GCC=g++
 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin16/6.4.0
 /lto-wrapper
 Target: x86_64-apple-darwin16
 Configured with:
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc6/gcc6/work/gcc-6.4.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin16 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc6
 --includedir=/opt/local/include/gcc6 --infodir=/opt/local/share/info
 --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-6 --with-
 local-prefix=/opt/local --with-system-zlib --disable-nls --program-
 suffix=-mp-6 --with-gxx-include-dir=/opt/local/include/gcc6/c++/ --with-
 gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
 isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
 --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
 as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
 ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
 --disable-tls --with-pkgversion='MacPorts gcc6 6.4.0_0'
 Thread model: posix
 gcc version 6.4.0 (MacPorts gcc6 6.4.0_0)
 $ g++ -std=c++11 -stdlib=libc++ -o tfd -I/opt/local/include tf.cpp
 -L/opt/local/lib -lecm -lgmpxx -lgmp -lc++
 g++: error: unrecognized command line option '-stdlib=libc++'
 $
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54599>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list