[MacPorts] #55219: ds9-7.5_1+aqua.darwin_17 -- error building tkbltVecMath.C on mac OS High Sierra
MacPorts
noreply at macports.org
Thu Nov 2 18:51:29 UTC 2017
#55219: ds9-7.5_1+aqua.darwin_17 -- error building tkbltVecMath.C on mac OS High
Sierra
--------------------+--------------------------------------
Reporter: rprr | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: | Port: ds9-7.5_1+aqua.darwin_17
--------------------+--------------------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/55219>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list