Opened 8 years ago
Closed 8 years ago
#52301 closed defect (fixed)
octave-4.0.3 fails to build with XCode 8 / OSX Sierra
Reported by: | dimkab | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | sierra | Cc: | roberthuston@…, skymoo (Adam Mercer), ATL-Flaneur (Andreas Yankopolus), MacPorts@…, Schamschula (Marius Schamschula), captainproton1971 (Captain Proton), adamb2903, rz10@… |
Port: | octave, octave-devel |
Description
Log attached. The first error seems to be
:info:build In file included from array/Array-ch.cc:29: :info:build In file included from ./array/Array.h:29: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cassert:21: :info:build In file included from /usr/include/assert.h:44: :info:build ../libgnu/stdlib.h:668:19: error: no member named 'mkostemp' in the global namespace
It seems to be the same as this homebrew issue
Attachments (1)
Change History (19)
Changed 8 years ago by dimkab
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Cc: | mcalhoun@… openmaintainer@… removed |
---|---|
Owner: | changed from macports-tickets@… to mcalhoun@… |
Port: | octave added; octave-image removed |
comment:4 Changed 8 years ago by ATL-Flaneur (Andreas Yankopolus)
Cc: | andreas@… added |
---|
I'm experiencing the same problem trying to install Octave on my Sierra system.
comment:5 follow-up: 6 Changed 8 years ago by MacPorts@…
I did not get this far. For me it won't even try to install because it wants qt4 which does not support sierra:
>sudo port uninstall octave >sudo port clean octave ---> Cleaning octave > >sudo port install octave ---> Computing dependencies for octave ---> Dependencies to be installed: qscintilla qt4-mac ---> Fetching distfiles for qt4-mac Error: qt4-mac does not currently build on OSX later than 10.11 'El Capitan'. Error: org.macports.fetch for port qt4-mac returned: unsupported platform Error: Failed to install qt4-mac Please see the log file for port qt4-mac for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/main.log Error: The following dependencies were not installed: qscintilla qt4-mac To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port octave failed >
comment:6 Changed 8 years ago by ATL-Flaneur (Andreas Yankopolus)
Replying to MacPorts@…:
I did not get this far. For me it won't even try to install because it wants qt4 which does not support sierra:
This just got fixed under #52208. Do a selfupdate, and qt4-mac will install just fine.
comment:9 Changed 8 years ago by captainproton1971 (Captain Proton)
Cc: | captainproton1971@… added |
---|
Cc Me!
comment:10 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | adam.bartley@… added |
---|---|
Keywords: | sierra added |
Port: | octave-devel added |
Has duplicate #52325.
comment:11 Changed 8 years ago by rz10@…
This appears to have been addressed by the fix in the referenced homebrew issue. Should be a simple fix, right?
comment:13 follow-up: 14 Changed 8 years ago by skymoo (Adam Mercer)
Should be something like:
diff --git a/math/octave/Portfile b/math/octave/Portfile index b0e43f3..379b0ae 100644 --- a/math/octave/Portfile +++ b/math/octave/Portfile @@ -82,6 +82,9 @@ configure.env-append MKDIR_P="/bin/mkdir -p" # avoid depends_build-append port:cctools configure.env-append RANLIB=/usr/bin/ranlib +# workaround for build failure with Xcode8 (#52301) +configure.env-append "ac_cv_func_mkostemp=no" + # main octave port lists as a depends_lib # configure.ac list it among the "[p]rograms used in Makefiles" depends_build-append port:gawk
Currently running a test build...
comment:14 follow-up: 15 Changed 8 years ago by Schamschula (Marius Schamschula)
Replying to ram@…:
Should be something like:
diff --git a/math/octave/Portfile b/math/octave/Portfile index b0e43f3..379b0ae 100644 --- a/math/octave/Portfile +++ b/math/octave/Portfile @@ -82,6 +82,9 @@ configure.env-append MKDIR_P="/bin/mkdir -p" # avoid depends_build-append port:cctools configure.env-append RANLIB=/usr/bin/ranlib +# workaround for build failure with Xcode8 (#52301) +configure.env-append "ac_cv_func_mkostemp=no" + # main octave port lists as a depends_lib # configure.ac list it among the "[p]rograms used in Makefiles" depends_build-append port:gawkCurrently running a test build...
I just successfully built octave 4.0.3 with a similar patch file using Xcode 8.0 under macOS Sierra.
comment:15 follow-up: 16 Changed 8 years ago by skymoo (Adam Mercer)
Replying to mps@…:
I just successfully built octave 4.0.3 with a similar patch file using Xcode 8.0 under macOS Sierra.
My build completed successfully as well. Now testing octave-devel
.
comment:16 follow-up: 17 Changed 8 years ago by Schamschula (Marius Schamschula)
Replying to ram@…:
Replying to mps@…:
I just successfully built octave 4.0.3 with a similar patch file using Xcode 8.0 under macOS Sierra.
My build completed successfully as well. Now testing
octave-devel
.
Be mindful that all versions of octave-devel are currently out of date (this should be a separate ticket). I have just built a local version of octave-devel-rc 4.2.0-rc2 with the same patch.
comment:17 Changed 8 years ago by skymoo (Adam Mercer)
Replying to mps@…:
Be mindful that all versions of octave-devel are currently out of date (this should be a separate ticket). I have just built a local version of octave-devel-rc 4.2.0-rc2 with the same patch.
Same here, I'll get this change pushed and updating octave-devel
to a more recent versions can be dealt with separately.
comment:18 Changed 8 years ago by skymoo (Adam Mercer)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please do not Cc openmaintainer@… because it is not a valid email address.