[MacPorts] #44899: octave-image needs a compiler with c++0x support
MacPorts
noreply at macports.org
Sun Sep 7 09:14:53 PDT 2014
#44899: octave-image needs a compiler with c++0x support
---------------------------+--------------------------------
Reporter: macosx12345@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Keywords: | Port: octave-image
---------------------------+--------------------------------
Build of octave-image under Mac OS 10.6 with Xcode 3.2.6 fails because the
default compiler (`/usr/bin/c++` == `i686-apple-darwin10-g++-4.2.1`)
doesn't support the `--std=cxx0` option.
Error message:
{{{
---> Configuring octave-image
mkdir
(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/.tmp/oct-CC0QoM)
untar
(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/.tmp/image.tar.gz,
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/.tmp/oct-CC0QoM)
checking whether the C++ compiler works... no
configure: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/.tmp/oct-
CC0QoM/image/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
pkg: error running the configure script for image.
error: called from 'configure_make' in file
/opt/local/share/octave/3.8.1/m/pkg/private/configure_make.m near line 72,
column 9
error: called from:
error: /opt/local/share/octave/3.8.1/m/pkg/private/install.m at line
199, column 5
error: /opt/local/share/octave/3.8.1/m/pkg/private/build.m at line 50,
column 3
error: /opt/local/share/octave/3.8.1/m/pkg/pkg.m at line 516, column 7
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/image" &&
/opt/local/bin/octave -q -f --eval 'pkg build -verbose -nodeps
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/image
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_math_octave-image/octave-image/work/.tmp/image.tar.gz'
}}}
Attached is a very crude patch which selects `gcc-mp-4.8` under Mac OS
10.6 (what about earlier?). It would probably be better to just specify
that a c++ compiler with c++11 support is needed, but I don't know how to
express it. If anybody can help... Thanks!
--
Ticket URL: <https://trac.macports.org/ticket/44899>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list