[MacPorts] #57555: newsboat @2.13: cc1plus: error: unrecognized command line option "-std=c++11"

MacPorts noreply at macports.org
Sat Nov 10 17:51:44 UTC 2018


#57555: newsboat @2.13: cc1plus: error: unrecognized command line option
"-std=c++11"
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  Raimondi
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  newsboat
------------------------+----------------------
 newsboat fails to build on Mac OS X 10.6:

 {{{
 DEBUG: Executing org.macports.destroot (newsboat)
 DEBUG: Environment:
 CC_PRINT_OPTIONS='YES'
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/.CC_PRINT_OPTIONS'
 CPATH='/opt/local/include'
 LIBRARY_PATH='/opt/local/lib'
 MACOSX_DEPLOYMENT_TARGET='10.6'
 Executing:  cd
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13"
 && /usr/bin/make -w install prefix=/opt/local
 DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13"
 && /usr/bin/make -w install prefix=/opt/local
 DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot
 make: Entering directory
 `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/newsboat-2.13'
 mkdir -p
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
 install newsboat
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
 mkdir -p
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
 install -m 644 doc/newsboat.1
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
 || true
 mkdir -p
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
 install podboat
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/bin
 mkdir -p
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
 install -m 644 doc/podboat.1
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/man/man1
 || true
 mkdir -p
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/doc/newsboat
 install -m 644 doc/xhtml/*
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_newsboat/newsboat/work/destroot/opt/local/share/doc/newsboat
 || true
 g++ -std=c++11 -O2 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Wall -Wextra
 -Wunreachable-code -DLOCALEDIR=\"/opt/local/share/locale\"
 -I/opt/local/include/libxml2 -I/opt/local/include/json-c
 -D_DARWIN_C_SOURCE -DHAVE_OPENSSL=1  -o doc/gen-example-config doc/gen-
 example-config.cpp
 cc1plus: error: unrecognized command line option "-std=c++11"
 make: *** [doc/gen-example-config] Error 1
 }}}

 The port requires C++11, and although the portfile includes the cxx11 1.1
 portgroup, the build system does something unusual: It tries to build (or
 rebuild) something in the destroot phase. If the build system can be fixed
 to do all its building in the build phase, that would be good. Otherwise,
 the flags that are being passed to the build phase need to be passed to
 the destroot phase as well.

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


More information about the macports-tickets mailing list