Click here to Skip to main content
14,385,331 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello,

I have struggled for the past 2 weeks to make the code contained in the following codeproject.com article to work in the Windows 10 environment:

Lightning-Fast R Machine Learning Algorithms[^]

It seems to me that I am not correctly setting up behind the scenes (e.g. choice of compiler, the linkages in and out of the daal package, whether RTools is even compatible with compiling this, amendments to PATH variable).

As a result, I cant get the code to compile at all - an example of the errors I am currently getting (using the Intel compiler) are copied below:

C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xmmintrin.h(61): error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xlocale(341): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xlocale(367): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/internal/NAComparator.h(62): error: expected a ")"
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/r_cast.h(32): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/module/Module_generated_CppFunction.h(53): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/module/Module_generated_CppFunction.h(93): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/api/meat/module/Module.h(40): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/api/meat/module/Module.h(40): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xstring(2195): warning #583: C++ exception handler found but /EHsc option was not specified


Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.3.210 Build 20180410
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

icl: NOTE: The evaluation period for this product ends on 4-aug-2018 UTC.
compilation aborted for file35d0134c2a9d.cpp (code 2)
make: *** [file35d0134c2a9d.o] Error 2
Warning message:
running command 'make -f "C:/R/R-33~1.1/etc/x64/Makeconf" -f "C:/R/R-33~1.1/share/make/winshlib.mk" -f "C:/Users/Rashmi/Documents/.R/Makevars.win" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file35d0134c2a9d.dll" WIN=64 TCLBIN=64 OBJECTS="file35d0134c2a9d.o"' had status 2 

ERROR(s) during compilation: source code errors or compiler configuration errors!


What I have tried:

I have replicated the package toolchain as per the website however have now resorted to Intel XE 2018 as it sesms that previous versions were not installing correctly (and based on the intel forums, the fact that mingw may not play nicely with the daal library).

Is there a kind soul that could share a step by step so that I can replicate this article?

Many thanks,
Keyur
Posted
Updated 22-Jul-18 21:46pm
v2
Comments
Richard MacCutchan 23-Jul-18 3:11am
   
Try posting your question in the forum at the end of the article so the author can help you.
KeyurKelkar 23-Jul-18 3:26am
   
Hi Richard - i had actually posted to the article last week but hadn't heard anything, hence thought to reach out on the forum

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

This might not be the final solution but should fix some errors and prevent from having other (future) problems.

You are using the Intel compiler but include the MS Visual C++ header files. Specifying the Intel include file directory ($(ICInstallDir)\compiler\include\) as very first path in the project settings (or environmental variable or make file which ever applies) will let the compiler use those instead of the MS files.

Regarding the warning #583 do what the message suggests: Use the /EHsc option (which might require changing other - conflicting - options too).
   
Comments
KeyurKelkar 23-Jul-18 4:03am
   
Many thanks Jochen - I will try it now and report back.
KeyurKelkar 25-Jul-18 10:11am
   
hi Jochen - wasnt sure what protocol is so have posted the latest set of errors as another post... https://www.codeproject.com/Questions/1253780/How-to-debug-these-Intel-daal-errors

would very much appreciate any help you can provide

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100