Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: error: gdal.h not found in given locations. #408

Closed
darlene003 opened this issue Nov 19, 2021 · 9 comments
Closed

configure: error: gdal.h not found in given locations. #408

darlene003 opened this issue Nov 19, 2021 · 9 comments

Comments

@darlene003
Copy link

Hi, I'm trying to install terra because it's a dependency for something else I am trying to install. I keep getting this error:
configure: error: gdal.h not found in given locations.

I have tried installing via:
install.packages("terra", repos="https://cran.r-project.org")
remotes::install_github("rspatial/terra")

I've also tried with the --with-gdal-config option but keep getting the same error.

Here is the full installation output:

remotes::install_github("rspatial/terra")
Downloading GitHub repo rspatial/terra@master
? checking for file ?/tmp/RtmpX3V4ee/remotes13c7c6aa7bcd1/rspatial-terra-7d62e19/DESCRIPTION? ...
? preparing ?terra?:
? checking DESCRIPTION meta-information ...
? cleaning src
? running ?cleanup?
? checking for LF line-endings in source and make files and shell scripts (483ms)
? checking for empty or unneeded directories
? building ?terra_1.4-21.tar.gz?
Warning: invalid uid value replaced by that for user 'nobody'

Installing package into ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5?
(as ?lib? is unspecified)

  • installing source package ?terra? ...
    configure: CC: gcc
    configure: CXX: g++ -std=gnu++11
    checking for gdal-config... /cm/shared/apps/gdal/gcc/2.4.1/bin/gdal-config
    checking gdal-config usability... yes
    configure: GDAL: 2.4.1
    checking GDAL version >= 2.0.1... yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking gdal.h usability... no
    checking gdal.h presence... no
    checking for gdal.h... no
    configure: error: gdal.h not found in given locations.
    ERROR: configuration failed for package ?terra?
  • removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/terra?
    Error in i.p(...) :
    (converted from warning) installation of package ?/tmp/RtmpX3V4ee/file13c7c237b428a/terra_1.4-21.tar.gz? had non-zero exit status

And my R session info:
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server 7.6 (Maipo)

Matrix products: default
BLAS/LAPACK: /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/mkl/lib/intel64_lin/libmkl_gf_lp64.so

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] usethis_1.4.0 devtools_2.0.1

loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 rstudioapi_0.8 magrittr_2.0.1 pkgload_1.0.1 R6_2.5.1 rlang_0.4.12
[7] tools_3.5.1 pkgbuild_1.0.2 sessioninfo_1.1.0 cli_3.1.0 withr_2.4.2 remotes_2.0.1
[13] yaml_2.2.0 assertthat_0.2.0 digest_0.6.28 rprojroot_1.3-2 crayon_1.4.2 processx_3.2.0
[19] callr_3.0.0 base64enc_0.1-3 fs_1.2.6 ps_1.2.0 curl_3.2 testthat_2.0.1
[25] memoise_1.1.0 glue_1.5.0 compiler_3.5.1 desc_1.2.0 backports_1.1.2 prettyunits_1.0.2

And here are the modules I have loaded:
gcc/6.1.0
slurm/16.05.8
texlive/2014
hdf5_18/1.8.11
java/oracle/jdk1.8.0_65
intel/compiler/64/2017/current
intel/16.0.2
mpfr/3.1.2
intel/mkl/64/2017/current
CGAL/4.1
libxml2/2.9.4
geos/gcc/3.7.2
R/3.5.1-gccmkl
proj/gcc/6.0.0
rstudio-desktop/1.1.456
sqlite3/3.36.0
gdal/gcc/2.4.1

Thank you!

@rhijmans
Copy link
Member

I can see that your system has GDAL (configure: GDAL: 2.4.1) but that gdal.h cannot be found.

I suspect that you either have multiple version of GDAL or a bad one. Do these links provide help?

https://github.com/r-spatial/sf#multiple-gdal-geos-andor-proj-versions-on-your-system
r-spatial/sf#1236
r-spatial/sf#1158

Also, can you try to install sf ---- that has the same system dependencies. If you can install sf but not terra then it would be clear that the problem would be at my end.

@rhijmans
Copy link
Member

There is also a work-around. I assume that you need terra because raster depends on it. You can instead install the last version of raster that did not depend on terra:

https://cran.r-project.org/src/contrib/Archive/raster/raster_3.4-13.tar.gz

That won't affect anything at all as long as you do not actually need terra.

@darlene003
Copy link
Author

darlene003 commented Nov 19, 2021

I don't have another version running to my knowledge. I've looked at all those issues but can't seem to find something that works.

I tried installing the last version of raster and got this result:
Warning in install.packages :
package ?https://cran.r-project.org/src/contrib/Archive/raster/raster_3.4-13.tar.gz? is not available (for R version 3.5.1)

For the package I actually need (which depends on raster and thus terra) I have to use R (>= 3.4.0 & < 3.6.0)

I tried installing sf and here is the result. Any other thoughts on things to try? Thank you for your help!

 install.packages("sf")
Installing package into ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5?
(as ?lib? is unspecified)
also installing the dependencies ?cpp11?, ?wk?, ?classInt?, ?s2?, ?units?

trying URL 'https://cran.rstudio.com/src/contrib/cpp11_0.4.1.tar.gz'
Content type 'application/x-gzip' length 317650 bytes (310 KB)
==================================================
downloaded 310 KB

trying URL 'https://cran.rstudio.com/src/contrib/wk_0.5.0.tar.gz'
Content type 'application/x-gzip' length 138686 bytes (135 KB)
==================================================
downloaded 135 KB

trying URL 'https://cran.rstudio.com/src/contrib/classInt_0.4-3.tar.gz'
Content type 'application/x-gzip' length 403884 bytes (394 KB)
==================================================
downloaded 394 KB

trying URL 'https://cran.rstudio.com/src/contrib/s2_1.0.7.tar.gz'
Content type 'application/x-gzip' length 2235408 bytes (2.1 MB)
==================================================
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/src/contrib/units_0.7-2.tar.gz'
Content type 'application/x-gzip' length 855840 bytes (835 KB)
==================================================
downloaded 835 KB

trying URL 'https://cran.rstudio.com/src/contrib/sf_1.0-4.tar.gz'
Content type 'application/x-gzip' length 3526535 bytes (3.4 MB)
==================================================
downloaded 3.4 MB

* installing *source* package ?cpp11? ...
** package ?cpp11? successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (cpp11)
* installing *source* package ?classInt? ...
** package ?classInt? successfully unpacked and MD5 sums checked
** libs
gfortran   -fpic  -fopenmp -O3 -march=sandybridge  -c fish1.f -o fish1.o
gcc -I"/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include" -DNDEBUG   -I/usr/local/include   -fpic  -fopenmp -O3 -march=sandybridge  -c init.c -o init.o
gcc -shared -L/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/lib -L/usr/local/lib64 -o classInt.so fish1.o init.o -lgfortran -lm -lgomp -lquadmath -lpthread -L/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/lib -lR
installing to /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/classInt/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (classInt)
* installing *source* package ?units? ...
** package ?units? successfully unpacked and MD5 sums checked
configure: units: 0.7-2
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for error_at_line... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for XML_ParserCreate in -lexpat... yes
checking udunits2.h usability... yes
checking udunits2.h presence... yes
checking for udunits2.h... yes
checking for ut_read_xml in -ludunits2... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
g++  -I"/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include" -DNDEBUG -DUDUNITS2_DIR=0   -I/usr/local/include -I"/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I/usr/local/include   -fpic  -fopenmp -O3 -march=sandybridge  -c RcppExports.cpp -o RcppExports.o
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:53:3: error: #error "This Intel <complex> is for use only with the Intel C++ compilers!"
 # error "This Intel <complex> is for use only with the Intel C++ compilers!"
   ^~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In member function ?std::complex<float>& std::complex<float>::operator=(const std::complex<_Tp>&) [with _Tp = double]?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:69:24: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         _M_value = __z._M_value;
                        ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In member function ?std::complex<double>& std::complex<double>::operator=(const std::complex<_Tp>&) [with _Tp = float]?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:77:24: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         _M_value = __z._M_value;
                        ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:115:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:115:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:120:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:120:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:125:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:125:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:130:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:130:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:134:21: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return -__x._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator==(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:141:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:141:36: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator!=(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:146:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:146:36: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ???std::complex<float> std::conj(const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:150:21: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return ~__z._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:159:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:164:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x + __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:169:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:174:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x - __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:179:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:184:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x * __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:189:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:194:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x / __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:232:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:232:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:237:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:237:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:242:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:242:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:247:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:247:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:251:21: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return -__x._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator==(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:256:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:256:36: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator!=(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:261:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:261:36: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::conj(const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:265:21: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return ~__z._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:275:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:280:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x + __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:285:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:290:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x - __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:295:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:300:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x * __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:305:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:310:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x / __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ?units?
* removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/units?
Warning in install.packages :
  installation of package ?units? had non-zero exit status
* installing *source* package ?wk? ...
** package ?wk? successfully unpacked and MD5 sums checked
** libs
gcc -I"/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include" -DNDEBUG -I../inst/include/ -I"/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/cpp11/include" -I/usr/local/include   -fpic  -fopenmp -O3 -march=sandybridge  -c bbox-handler.c -o bbox-handler.o
In file included from /cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include/R.h:58:0,
                 from bbox-handler.c:2:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/math.h:108:3: error: #error "This Intel <math.h> is for use with only the Intel compilers!"
 # error "This Intel <math.h> is for use with only the Intel compilers!"
   ^~~~~
make: *** [bbox-handler.o] Error 1
ERROR: compilation failed for package ?wk?
* removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/wk?
Warning in install.packages :
  installation of package ?wk? had non-zero exit status
ERROR: dependency ?wk? is not available for package ?s2?
* removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/s2?
Warning in install.packages :
  installation of package ?s2? had non-zero exit status
ERROR: dependencies ?s2?, ?units? are not available for package ?sf?
* removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/sf?
Warning in install.packages :
  installation of package ?sf? had non-zero exit status

The downloaded source packages are in
	?/tmp/RtmpX3V4ee/downloaded_packages?

@rhijmans
Copy link
Member

rhijmans commented Nov 19, 2021

You cannot do

url <- "https://cran.r-project.org/src/contrib/Archive/raster/raster_3.4-13.tar.gz"
install.packages (url)

you need to first download the file. For example

download.file(url, basename(url),  mode="wb")
install.packages(basename(url), repos=NULL, type="source")
#file.remove(basename(url))

@darlene003
Copy link
Author

Ok thank you for the correction. I installed it as you say and I got virtually the same long output as when I installed sf above (all the statements that end in "M_value". The last part was a little different:
make: *** [RasterModule.o] Error 1
ERROR: compilation failed for package ?raster?

  • removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/raster?
    Warning in install.packages :
    installation of package ?raster_3.4-13.tar.gz? had non-zero exit status

@rhijmans
Copy link
Member

Can you please run it one more time (so that dependencies are already dealt with), and show the entire output?

@darlene003
Copy link
Author

darlene003 commented Nov 19, 2021

I got the same output:

> install.packages(basename("https://cran.r-project.org/src/contrib/Archive/raster/raster_3.4-13.tar.gz"), repos=NULL, type="source")
Installing package into ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5?
(as ?lib? is unspecified)
* installing *source* package ?raster? ...
** package ?raster? successfully unpacked and MD5 sums checked
** libs
g++ -std=gnu++11 -I"/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include" -DNDEBUG  -I"/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I/usr/local/include   -fpic  -fopenmp -O3 -march=sandybridge -c RasterModule.cpp -o RasterModule.o
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:53:3: error: #error "This Intel <complex> is for use only with the Intel C++ compilers!"
 # error "This Intel <complex> is for use only with the Intel C++ compilers!"
   ^~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In member function ?std::complex<float>& std::complex<float>::operator=(const std::complex<_Tp>&) [with _Tp = double]?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:69:24: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         _M_value = __z._M_value;
                        ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In member function ?std::complex<double>& std::complex<double>::operator=(const std::complex<_Tp>&) [with _Tp = float]?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:77:24: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         _M_value = __z._M_value;
                        ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:115:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:115:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:120:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:120:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:125:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:125:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:130:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:130:35: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:134:21: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return -__x._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator==(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:141:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:141:36: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator!=(const std::complex<float>&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:146:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:146:36: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::conj(const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:150:21: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return ~__z._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:159:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value + __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator+(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:164:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x + __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:169:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value - __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator-(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:174:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x - __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:179:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value * __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator*(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:184:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x * __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const std::complex<float>&, const float&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:189:20: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x._M_value / __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<float> std::operator/(const float&, const std::complex<float>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:194:26: error: ?std::complex<float>::_ComplexT std::complex<float>::_M_value? is private within this context
         return __x / __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1194:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:232:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:232:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:237:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:237:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:242:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:242:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:247:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:247:35: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y._M_value;
                                   ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:251:21: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return -__x._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator==(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:256:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:256:36: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value == __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?bool std::operator!=(const std::complex<double>&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:261:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:261:36: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value != __y._M_value;
                                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::conj(const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:265:21: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return ~__z._M_value;
                     ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:275:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value + __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator+(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:280:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x + __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:285:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value - __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator-(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:290:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x - __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:295:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value * __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator*(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:300:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x * __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const std::complex<double>&, const double&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:305:20: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x._M_value / __y;
                    ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex: In function ?std::complex<double> std::operator/(const double&, const std::complex<double>&)?:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:310:26: error: ?std::complex<double>::_ComplexT std::complex<double>::_M_value? is private within this context
         return __x / __y._M_value;
                          ^~~~~~~~
In file included from /cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:30:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/local/apps/gcc/6.1.0/include/c++/6.1.0/complex:1344:17: note: declared private here
       _ComplexT _M_value;
                 ^~~~~~~~
make: *** [RasterModule.o] Error 1
ERROR: compilation failed for package ?raster?
* removing ?/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/raster?
Warning in install.packages :
  installation of package ?raster_3.4-13.tar.gz? had non-zero exit status

@rhijmans
Copy link
Member

This is the first error

g++ -std=gnu++11 -I"/cm/shared/apps/R/gcc/3.5.1_20181025/lib64/R/include" -DNDEBUG  -I"/home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I/usr/local/include   -fpic  -fopenmp -O3 -march=sandybridge -c RasterModule.cpp -o RasterModule.o
In file included from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:65:0,
                 from /home2/s207424/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
                 from RasterModule.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2017.6.256/linux/compiler/include/complex:53:3: error: 
#error "This Intel <complex> is for use only with the Intel C++ compilers!"
   ^~~~~

This message:

error "This Intel <complex> is for use only with the Intel C++ compilers!"

would seem to be because the gcc compiler is used. But I do not know why intel header files are included and if using icc would fix this (see here ) ---- I am not sure how you would do that either. I am out of my depth here. Perhaps stackoverflow can help

@rhijmans
Copy link
Member

rhijmans commented Dec 2, 2021

Closing for lack of updates. I hope you were able to fix this.

@rhijmans rhijmans closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants