> On Nov 6, 2016, at 22:33, Daniel Gruen <dgr...@stanford.edu> wrote: > > Hi, > > I'm trying to install the ccfits package with fink, but the build fails at > the following command. This is after upgrading my system to Sierra, and both > fink and xcode are of the latest version. > > Any ideas what could be the cause? > > Cheers, > Daniel > > > > > g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -I/sw/include -I/sw/include -g -O2 > -Wall -ansi -MT ColumnCreator.lo -MD -MP -MF .deps/ColumnCreator.Tpo -c > ColumnCreator.cxx -fno-common -DPIC -o .libs/ColumnCreator.o > ColumnCreator.cxx:326:41: warning: '&&' within '||' [-Wlogical-op-parentheses] > if (!scalePresent || scalePresent && tscale == 1) > ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ > ColumnCreator.cxx:326:41: note: place parentheses around the '&&' expression > to silence this warning > if (!scalePresent || scalePresent && tscale == 1) > ^ > ( ) > In file included from ColumnCreator.cxx:10: > In file included from ./Column.h:16: > In file included from ./Table.h:13: > In file included from ./ExtHDU.h:15: > In file included from ./HDU.h:21: > In file included from ./NewKeyword.h:13: > In file included from ./KeywordCreator.h:13: > In file included from ./KeyData.h:22: > In file included from ./FITSUtil.h:18: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/valarray:2743:32: > error: no viable conversion > from 'value_type' (aka 'std::__1::complex<float>') to 'result_type' > (aka 'bool') > ::new (__r.__end_) result_type(__expr_[__i]); > ^ ~~~~~~~~~~~~ > ./ColumnVectorData.h:268:44: note: in instantiation of member function > > 'std::__1::__val_expr<std::__1::_BinaryOp<std::__1::equal_to<std::__1::complex<float> > >, std::__1::valarray<std::__1::complex<float> >, > std::__1::valarray<std::__1::complex<float> > > >::operator valarray' > requested here > std::valarray<bool> test = (m_data[i] == that.m_data[i]); > ^ > ./ColumnVectorData.h:56:9: note: in instantiation of member function > 'CCfits::ColumnVectorData<std::__1::complex<float> >::compare' requested here > ColumnVectorData (int columnIndex, const string &columnName, > ValueType type, const string &format, const string &unit, Table* p, int r... > ^ > ColumnCreator.cxx:259:25: note: in instantiation of member function > 'CCfits::ColumnVectorData<std::__1::complex<float> >::ColumnVectorData' > requested > here > m_column = new ColumnVectorData<complex<float> >(number, > name, > ^ > In file included from ColumnCreator.cxx:10: > In file included from ./Column.h:16: > In file included from ./Table.h:13: > In file included from ./ExtHDU.h:15: > In file included from ./HDU.h:21: > In file included from ./NewKeyword.h:13: > In file included from ./KeywordCreator.h:13: > In file included from ./KeyData.h:22: > In file included from ./FITSUtil.h:18: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/valarray:2743:32: > error: no viable conversion > from 'value_type' (aka 'std::__1::complex<double>') to 'result_type' > (aka 'bool') > ::new (__r.__end_) result_type(__expr_[__i]); > ^ ~~~~~~~~~~~~ > ./ColumnVectorData.h:268:44: note: in instantiation of member function > > 'std::__1::__val_expr<std::__1::_BinaryOp<std::__1::equal_to<std::__1::complex<double> > >, std::__1::valarray<std::__1::complex<double> >, > std::__1::valarray<std::__1::complex<double> > > >::operator valarray' > requested here > std::valarray<bool> test = (m_data[i] == that.m_data[i]); > ^ > ./ColumnVectorData.h:56:9: note: in instantiation of member function > 'CCfits::ColumnVectorData<std::__1::complex<double> >::compare' requested here > ColumnVectorData (int columnIndex, const string &columnName, > ValueType type, const string &format, const string &unit, Table* p, int r... > ^ > ColumnCreator.cxx:275:25: note: in instantiation of member function > 'CCfits::ColumnVectorData<std::__1::complex<double> >::ColumnVectorData' > requested > here > m_column = new ColumnVectorData<complex<double> >(number, > name, > ^ > 1 warning and 2 errors generated. > make[2]: *** [ColumnCreator.lo] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > ### execution of /tmp/fink.BjjH1 failed, exit code 2 > ### execution of /tmp/fink.UaWUW failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-ccfits-2.4-2 > (Reading database ... 4591 files and directories currently installed.) > Removing fink-buildlock-ccfits-2.4-2 ... > Failed: phase compiling: ccfits-2.4-2 failed > > ... > > Package manager version: 0.41.0 > Distribution version: selfupdate-rsync Sun Nov 6 21:25:27 2016, 10.12, x86_64 > Trees: local/main stable/main > Xcode.app: 8.1 > Xcode command-line tools: 8.1.0.0.1.1476494586 > Max. Fink build jobs: 1
(Please don’t crosspost. It just scatters the message thread all over the place, and that’s why we specifically ask folks not to do that in the post-error text.) The error may be due to clang being more strict in Xcode 8 than when the package was last updated. There’s a newer version on the upstream developer’s website, so we might want to look into that. -- Alexander Hansen, Ph.D. Fink User Liaison ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users