Bug 16174 - R 3.1.2 fails to build with ifort and icc
Summary: R 3.1.2 fails to build with ifort and icc
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Installation (show other bugs)
Version: R 3.1.2
Hardware: x86_64/x64/amd64 (64-bit) Linux-RHEL
: P5 normal
Assignee: R-core
Depends on:
Reported: 2015-01-28 18:00 UTC by Andrei Jirnyi
Modified: 2015-01-28 18:00 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Jirnyi 2015-01-28 18:00:05 UTC
When building R using the Intel compilers suite and MKL on RHEL 6.6, make fails with the following error:

making vecLibg95c.d from vecLibg95c.c
vecLibg95c.c(5): catastrophic error: cannot open source file "AvailabilityMacros.h"
  #include <AvailabilityMacros.h> /* for MAC_OS_X_VERSION_10_* -- present on 10.2+ (according to Apple) */

make[3]: *** [vecLibg95c.d] Error 4
make[3]: Leaving directory `(path-here)/R-3.1.2/src/modules/lapack'
make[2]: *** [make.lapack] Error 2
make[2]: Leaving directory `(path-here)/R-3.1.2/src/modules'
make[1]: *** [R] Error 1
make[1]: Leaving directory `(path-here)/R-3.1.2/src'
make: *** [R] Error 1

Looks like this can be fixed by wrapping the definition block starting at line 5 in src/modules/lapack/vecLibg95c.c with
#if defined(__APPLE__)