Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

When compiling MCMCirtKdHet.cc, for MCMCpack 1.3-7, receive "internal error: 04010002_1517" error message

Ben_F_
Beginner
159 Views

Hello,

When trying to compile MCMCirtKdHet.cc, for MCMCpack 1.3-7, for R 3.4.0 (compiled via the instructions at https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux), the following error messages appear:

/usr/include/c++/4.8.5/bits/stl_function.h(462) (col. 16): internal error: 04010002_1517

compilation aborted for MCMCirtKdHet.cc (code 4)

The build line is:

icpc -I/usr/local/R/3.4.0-intel17.0.4/lib64/R/include -DNDEBUG -DSCYTHE_COMPILE_DIRECT -DSCYTHE_DEBUG=0 -DSCYTHE_RPACK -DHAVE_TRUNC  -DHAVE_TRUNC   -I/usr/local/include   -fpic  -g -O2  -wd308 -c MCMCirtKdHet.cc -o MCMCirtKdHet.o

By replacing "icpc" with "gcc", and removing "-wd308", it compiles without issue.

If I only remove "-wd308", I receive this error:

In file included from ide.h(93),
                 from distributions.h(98),
                 from MCMCirtKdHet.cc(37):
/opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/include/complex(310): error #308: member "std::complex<double>::_M_value" (declared at line 1337 of "/usr/include/c++/4.8.5/complex") is inaccessible
          return __x / __y._M_value;

I added "-wd308" ~/.R/Makevars to be able to build the "forecast" package.

Additional info: I'm using  Intel® Parallel Studio XE Cluster Edition for Linux 2017 Update 4

What could be going on?

Please let me know if you need additional information.

Thanks for any assistance you can offer!

0 Kudos
5 Replies
Viet_H_Intel
Moderator
159 Views

Hi Ben,

Can you please create a preprocess file of MCMCirtKdHet.cc  and submit it at http://supporttickets.intel.com?

Best regards,

Viet Hoang

Ryan_N_
Beginner
159 Views

What was the upshot here? I have a support contract and can also submit a ticket, but if there's a known solution, I'd love to save the time.

A colleague of mine found the following -- same sort of issue and proposed solutions: https://stackoverflow.com/questions/36722505/installing-r-forecast-package-on-a-linux-cluster-compiler-issues

 

Viet_H_Intel
Moderator
159 Views

Hi Ryan,

If you ran into the same issue, can you provide us a preprocess file to investigate? or you can submit a ticket at  http://supporttickets.intel.com

Thanks,

Viet

Bennett__Ed
Novice
159 Views

Hi Viet,

I don't have a support contract, so can't open a ticket, but I'm also encountering this issue and have attached a preprocess file.

Best

Ed

Viet_H_Intel
Moderator
159 Views

Thank for the preprocessed file Ed. I've reported this case to our Developer (case number is CMPLRIL0-31371)

Reply