Opened 6 weeks ago

Last modified 6 weeks ago

#55219 assigned defect

ds9-7.5_1+aqua.darwin_17 -- error building tkbltVecMath.C on mac OS High Sierra

Reported by: rprr Owned by: lpsinger (Leo Singer)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: ds9

Description (last modified by mf2k (Frank Schima))

mac OS High Sierra 10.13.1

I tried to install ds9. Got the error

% sudo port install ds9
--->  Computing dependencies for ds9
--->  Building ds9
Error: Failed to build ds9: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ds9/ds9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port ds9 failed

So I looked in the log file.

Below is shown the first error that occurs when building the ds9 port. There are a number of other math.h related errors that followed this as well such as with asin, atan, ceil, cos, cosh, exp, floor, log, log10, sin, sinh, sqrt, tan, tanh, etc.

:info:build src/tkbltVecMath.C:1483:48: error: address of overloaded function 'acos' does not match required type 'void'
:info:build     {"acos",    (void*)ComponentFunc, (ClientData)::acos},
:info:build                                                   ^~~~~~
:info:build Installing ./src/tkbltVector.h
:info:build /usr/include/math.h:323:15: note: candidate function
:info:build extern double acos(double);
:info:build               ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:707:46: note: candidate function
:info:build inline _LIBCPP_INLINE_VISIBILITY float       acos(float __lcpp_x) _NOEXCEPT       {return ::acosf(__lcpp_x);}
:info:build                                              ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:708:46: note: candidate function
:info:build inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
:info:build                                              ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h:714:1: note: candidate template ignored: could not match 'typename std::enable_if<std::is_integral<_A1>::value, double>::type (_A1) throw()' against 'void'
:info:build acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}
:info:build ^

--- Stuff snipped --- Finally get

:info:build 15 errors generated.
:info:build make[1]: *** [src/tkbltVecMath.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build Installing ./src/tkbltDecls.h
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ds9/ds9/work/saods9/tkblt'
:info:build make: *** [tkblt] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ds9/ds9/work/saods9'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_ds9/ds9/work/saods9" && /usr/bin/make -w all JOBS=4 CC=/usr/bin/clang CXX=/usr/bin/clang++ X11INCLUDE=/opt/local/include X11LIB=/opt/local/lib XFT_LIBS="-lXft -lfontconfig" -o xpa -o funtools -o ast -o zvfs 
:info:build Exit code: 2
:error:build Failed to build ds9: command execution failed

Thanks for your help.

Change History (3)

comment:1 Changed 6 weeks ago by mf2k (Frank Schima)

  • Owner set to lpsinger
  • Port ds9 added; ds9-7.5_1+aqua.darwin_17 removed
  • Status changed from new to assigned

In the future, please Cc the port maintainers (port info --maintainers ds9), if any.

Last edited 6 weeks ago by mf2k (Frank Schima) (previous) (diff)

comment:2 Changed 6 weeks ago by mf2k (Frank Schima)

  • Description modified (diff)

comment:3 Changed 6 weeks ago by rprr

It looks like there is a newer version of the source code (7.6b8) that may be needed for macOS 10.13

http://ds9.si.edu/site/Beta.html

Note: See TracTickets for help on using tickets.