[Rd] Problem installing MCMCpack on SPARC Solaris 10

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Feb 10 08:08:10 CET 2011


There are lots of problems with MCMCpack's C++: the only way (short of 
a major rewrite) that you will get it to compile on Solaris is to use 
g++ (and even that needs corrections).

The maintainers seem deaf to reports of the issues.

And please note what the posting guide says about where to send 
questions about non-R programming issues.

On Wed, 9 Feb 2011, Zhang,Jun wrote:

> Hi list,
>    I tried to install MCMCpack to R-2.12.0, got the following error,
> R CMD INSTALL MCMCpack_1.0-9.tar.gz
> ..........
> CC -m64 -library=stlport4 -I/apps/sparcv9/R-2.12.0/lib/R/include -DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0 -DHAVE_TRUNC -DHAVE_IEEEFP_H   -I/opt/csw/include    -KPIC  -g -c MCMCSVDreg.cc<http://MCMCSVDreg.cc> -o MCMCSVDreg.o
> "error.h", line 598: Error: The function "abort" must have a prototype.
> "distributions.h", line 550: Error: The function "trunc" must have a prototype.
> "distributions.h", line 550: Error: log1p is not a member of file level.
> "distributions.h", line 566: Error: The function "trunc" must have a prototype.
> "distributions.h", line 566: Error: log1p is not a member of file level.
> "distributions.h", line 2177: Error: sqrt is not a member of file level.
> 6 Error(s) detected.
> make: *** [MCMCSVDreg.o] Error 2
> ERROR: compilation failed for package 'MCMCpack'
> * removing '/apps/sparcv9/R-2.12.0/lib/R/library/MCMCpack'
>
> root at dqssun4 local# which cc
> /opt/solstudio12.2/bin/cc
> root at dqssun4 local# which R
> /apps/sparcv9/R-2.12.0/bin/R
>
> The configure script for the successful R installation is the following,
> CC="cc -xc99 -m64 -xarch=sparcvis2"
> CPPFLAGS="-I/opt/csw/include"
> CFLAGS="-xcode=abs64 -xlibmieee -xtarget=ultra3 -xarch=sparcvis2"
> F77=f95
> CXX="CC -m64 -library=stlport4"
> FC=$F77
> FFLAGS="-m64 -xarch=sparcvis2"
> FCFLAGS=$FFLAGS
> LDFLAGS="-L/opt/csw/lib/sparcv9 -L/opt/solstudio12.2/prod/lib/v9"
> export CC CPPFLAGS CFLAGS F77 FFLAGS CXX CXXFLAGS FC FCFLAGS LDFLAGS
> ./configure --prefix=/apps/sparcv9/R-2.12.0 --with-tcl-config=/opt/csw/lib/tclCo
> nfig.sh<http://nfig.sh> --with-tk-config=/opt/csw/lib/tkConfig.sh --disable-nls
>
> Jun Zhang
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list