Opened 10 years ago
Closed 6 years ago
#44899 closed defect (fixed)
octave-image needs a compiler with c++0x support
Reported by: | someuser12 | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | octave-image |
Description
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!
Attachments (1)
Change History (4)
Changed 10 years ago by someuser12
Attachment: | need-cxx11.diff added |
---|
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
We don't have a syntax for expressing that a C++11 compiler is needed. Ports that require a C++11 compiler basically require OS X 10.9 or later at this point.
comment:2 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | MarcusCalhoun-Lopez added |
---|
comment:3 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think this ticket can safely be closed.
The octave PG now ensures that a C++11 compiler is used.
Patch to the portfile of octave-image