Re: [R] compiling 2.6.2 using icc

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 13 Feb 2008 06:59:20 +0000 (GMT)

It's working for other users of icc. Check what CC is set to in etc/Makeconf, and if it is not 'icc -c99', reset it.

On Wed, 13 Feb 2008, Denham Robert wrote:

> I am having trouble compiling R-2.6.2 on suse linux x86_64 using the
> intel compiler. I read section C.2.1 Intel compilers in the R
> Installation and Administration manual, and put
>
> CC=icc
> CFLAGS="-g -O3 -wd188 -ip"
> F77=ifort
> FFLAGS="-g -O3"
> ICC_LIBS=/opt/intel/cce/10.1.012/lib
> IFC_LIBS=/opt/intel/fce/10.1.012/lib/
> LDFLAGS="-L$ICC_LIBS -L$IFC_LIBS -L/usr/lib64"
> CXX=icpc
> CXXFLAGS="-g -O3"
> FC=ifort
> FCFLAGS="-g -O3 -mp"
>
> in my config.site. Everything seems to compile alright, up until making
> the recommended package MASS. The output below shows that it is using
> gcc rather than icc when compiling the package, and the CFLAGS wd188 and
> ip . How do I get it to use icc for both building R and building the
> packages?
>
>
> Robert
>
> ......
> make[2]: Entering directory
> `/opt/freewaresrc/R/R-2.6.2/src/library/Recommended'
> begin installing recommended package VR
> * Installing *source* package 'MASS' ...
> ** libs
> make[3]: Entering directory `/tmp/R.INSTALL.Z28650/VR/MASS/src'
> gcc -I/opt/freewaresrc/R/R-2.6.2/include
> -I/opt/freewaresrc/R/R-2.6.2/include -I/usr/local/include -mp -fpic
> -g -O3 -wd188 -ip -c lqs.c -o lqs.o
> gcc: unrecognized option '-wd188'
> cc1: error: unrecognized command line option "-ip"
> cc1: error: unrecognized command line option "-mp"
> make[3]: *** [lqs.o] Error 1
> make[3]: Leaving directory `/tmp/R.INSTALL.Z28650/VR/MASS/src'
> ERROR: compilation failed for package 'MASS'
> ** Removing '/opt/freewaresrc/R/R-2.6.2/library/MASS'
> ** Removing '/opt/freewaresrc/R/R-2.6.2/library/class'
> ** Removing '/opt/freewaresrc/R/R-2.6.2/library/nnet'
> ** Removing '/opt/freewaresrc/R/R-2.6.2/library/spatial'

> make[2]: *** [VR.ts] Error 1
> make[2]: Leaving directory
> `/opt/freewaresrc/R/R-2.6.2/src/library/Recommended'
> make[1]: *** [recommended-packages] Error 2
> make[1]: Leaving directory
> `/opt/freewaresrc/R/R-2.6.2/src/library/Recommended'
> make: *** [stamp-recommended] Error 2
>
> ************************************************************************
> The information in this email together with any attachments is
> intended only for the person or entity to which it is addressed
> and may contain confidential and/or privileged material.
> Any form of review, disclosure, modification, distribution
> and/or publication of this email message is prohibited, unless
> as a necessary part of Departmental business.
> If you have received this message in error, you are asked to
> inform the sender as quickly as possible and delete this message
> and any copies of this message from your computer and/or your
> computer system network.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 13 Feb 2008 - 07:15:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Feb 2008 - 05:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive