Re: [Rd] [PATCH] Add fpicflags for Intel(R) Fortran Compiler (PR#8344)

From: <ripley_at_stats.ox.ac.uk>
Date: Tue 22 Nov 2005 - 16:31:44 GMT

  1. The documented way to specify this is to set FPICFLAGS in config.site: see the example in R-admin for the PG compilers. When you tried that, what went wrong?
  2. It seems strange to specify this for the Fortran compiler and not the C or C++ compiler.
  3. You have suggested the change to a section for all OSes. Do you know for sure that all compilers called 'ifort' on all OSes need the -fPIC flag? Or is it really just for Linux (and AFAICS, just x86_64 Linux, as i386 Linux seems to work with icc/ifort without it).

On Tue, 22 Nov 2005 kugelfang@gentoo.org wrote:

> Full_Name: Danny van Dyk
> Version: R-2.2.0
> OS: Gentoo/AMD64
> Submission from: (NULL) (83.129.50.65)
>
>
> I have successfully compiled R-2.2.0 using ifc-9.0.026 on my x86_64 box.
> The only (minor) change that hade to be made was adding fpicflags="-fPIC" to
> configure.ac in case F77 matches either "ifc" (old name) or "ifort" (new name).
>
> Please apply following patch:
>
> dvandyk@phi trunk $ svn diff
> Index: configure.ac
> ===================================================================
> --- configure.ac (revision 36420)
> +++ configure.ac (working copy)
> @@ -942,7 +942,7 @@
> rm -f Imakefile Makefile
> fi
>
> -## Step 2. GNU compilers.
> +## Step 2. GNU and Intel compilers.
> if test "${GCC}" = yes; then
> cpicflags="-fPIC"
> shlib_ldflags="-shared"
> @@ -954,6 +954,11 @@
> cxxpicflags="-fPIC"
> shlib_cxxldflags="-shared"
> fi
> +case "${F77}" in
> + ifc|ifort)
> + fpicflags="-fPIC"
> + ;;
> +esac
>
> ## Step 3. Individual platform overrides.
> case "${host_os}" in
> ===================================================================
>
> Danny
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley@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-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed Nov 23 03:37:36 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT