On Nov 7, 2013, at 7:56 AM, Simon Zehnder <[email protected]> wrote:
> I am trying to build R with an Intel Compiler (14.0.3). Has anyone before > done it and could give me a hint for the configuration? > > I am sourcing the compilervars.sh for Intel and then configure R with > > ./R-3.0.2/configure OBJC="clang" --enable-R-framework=/usr/local/R/R-intel > --x-includes=/usr/X11/include/ --x-libraries=/usr/X11/lib/ > --enable-memory-profiling --with-blas="$MKL" --with-lapack > > Further Variables are: > > CFLAGS=“-O3 -ipo -openmp -xHost” > CXXFLAGS=“-O3 -ipo -openmp -xHost” > MKL=“-lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread”! > > I get always the same error: > > /opt/intel/composer_xe_2013_sp1.1.103/bin/intel64/icc -std=gnu99 > -I../../../R-3.0.2/src/extra/zlib -I../../../R-3.0.2/src/extra/bzip2 > -I../../../R-3.0.2/src/extra/pcre -I../../../R-3.0.2/src/extra > -I../../../R-3.0.2/src/extra/xz/api -I. -I../../src/include > -I../../../R-3.0.2/src/include -I/usr/local/include -DHAVE_CONFIG_H -fPIC > -O3 -ipo -openmp -xHost -c ../../../R-3.0.2/src/main/Rmain.c -o Rmain.o > /opt/intel/composer_xe_2013_sp1.1.103/bin/intel64/icc -std=gnu99 > -L/usr/local/lib -o R.bin Rmain.o -L../../lib -lR > Undefined symbols for architecture x86_64: > "___kmpc_begin", referenced from: > _main in ipo_icc4xtjyH.o > "___kmpc_end", referenced from: > _main in ipo_icc4xtjyH.o > ld: symbol(s) not found for architecture x86_64 > > Any clue what this could be? > The above certainly won't work, because you're missing linker flags - I'm pretty sure that you must use -openmp in the linker for it to work, I'm not sure about -ipo -- but doesn't R detect all those automatically? I don't think you should put them in manually. The actual error comes from missing libguide link flags, but they may be implicit if you fix the other problem. Cheers, S _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
