gagolews / genieclust

Genie: Fast and Robust Hierarchical Clustering with Noise Point Detection - in Python and R
https://genieclust.gagolewski.com
Other
58 stars 10 forks source link

solaris compile errors #66

Closed gagolews closed 3 years ago

gagolews commented 3 years ago

* installing to library ‘/home/ripley/R/Lib32’
* installing *source* package ‘genieclust’ ...
** package ‘genieclust’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
/opt/csw/bin/g++ -std=gnu++11 -I"/home/ripley/R/gcc/include" -DNDEBUG  -I'/home/ripley/R/Lib32/Rcpp/include' -I/opt/csw/include -I/usr/local/include -fopenmp -DGENIECLUST_R -fPIC  -O2  -c RcppExports.cpp -o RcppExports.o
/opt/csw/bin/g++ -std=gnu++11 -I"/home/ripley/R/gcc/include" -DNDEBUG  -I'/home/ripley/R/Lib32/Rcpp/include' -I/opt/csw/include -I/usr/local/include -fopenmp -DGENIECLUST_R -fPIC  -O2  -c r_compare_partitions.cpp -o r_compare_partitions.o
In file included from r_compare_partitions.cpp:16:0:
c_compare_partitions.h: In function ‘CComparePartitionsInfoResult Ccompare_partitions_info(const T*, ssize_t, ssize_t)’:
c_compare_partitions.h:296:42: error: call of overloaded ‘log(ssize_t&)’ is ambiguous
                 e_mi += nij*(fac1+log(nij))*exp(fac3);
                                          ^
In file included from /usr/include/math.h:15:0,
                 from /opt/csw/include/c++/5.2.0/cmath:44,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp/platform/compiler.h:100,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp/r/headers.h:67,
                 from /home/ripley/R/Lib32/Rcpp/include/RcppCommon.h:29,
                 from /home/ripley/R/Lib32/Rcpp/include/Rcpp.h:27,
                 from c_common.h:55,
                 from c_compare_partitions.h:43,
                 from r_compare_partitions.cpp:16:
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/iso/math_iso.h:200:21: note: candidate: long double std::log(long double)
  inline long double log(long double __X) { return __logl(__X); }
                     ^
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/iso/math_iso.h:168:15: note: candidate: float std::log(float)
  inline float log(float __X) { return __logf(__X); }
               ^
/opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/iso/math_iso.h:68:15: note: candidate: double std::log(double)
 extern double log __P((double));
               ^
In file included from /usr/include/ctype.h:18:0,
                 from /usr/include/iso/wchar_iso.h:35,
                 from /opt/csw/lib/gcc/i386-pc-solaris2.10/5.2.0/include-fixed/wchar.h:22,
                 from /opt/csw/include/c++/5.2.0/cwchar:44,
                 from /opt/csw/include/c++/5.2.0/bits/postypes.h:40,
                 from /opt/csw/include/c++/5.2.0/bits/char_traits.h:40,
                 from /opt/csw/include/c++/5.2.0/string:40,
                 from /opt/csw/include/c++/5.2.0/stdexcept:39,
                 from c_common.h:31,
                 from c_compare_partitions.h:43,
                 from r_compare_partitions.cpp:16:
r_compare_partitions.cpp: In function ‘std::vector<int> __get_contingency_matrix(Rcpp::RObject, Rcpp::RObject, ssize_t*, ssize_t*)’:
r_compare_partitions.cpp:43:23: error: expected unqualified-id before numeric constant
         IntegerMatrix _C(x);
                       ^
r_compare_partitions.cpp:44:18: error: request for member ‘nrow’ in ‘32’, which is of non-class type ‘int’
         *xc = _C.nrow();
                  ^
r_compare_partitions.cpp:45:18: error: request for member ‘ncol’ in ‘32’, which is of non-class type ‘int’
         *yc = _C.ncol();
                  ^
r_compare_partitions.cpp:50:33: error: expression cannot be used as a function
                 C[k++] = _C(i, j); // Fortran -> C-style
                                 ^
*** Error code 1
make: Fatal error: Command failed for target `r_compare_partitions.o'
Current working directory /tmp/RtmpvuaOyQ/R.INSTALL54c5654a2c0f/genieclust/src
ERROR: compilation failed for package ‘genieclust’
* removing ‘/home/ripley/R/Lib32/genieclust’

real       15.2
user       13.3
sys         1.3