Message: Re: Compile Geant4 with intel compiler on Ubuntu Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Compile Geant4 with intel compiler on Ubuntu 

Forum: Multithreading
Re: Note Compile Geant4 with intel compiler on Ubuntu (Don Vernekohl)
Re: Idea Re: Compile Geant4 with intel compiler on Ubuntu (Andrea Dotti)
Re: More Re: Compile Geant4 with intel compiler on Ubuntu (Don Vernekohl)
Re: Ok Re: Compile Geant4 with intel compiler on Ubuntu (Don Vernekohl)
Re: Feedback Re: Compile Geant4 with intel compiler on Ubuntu (Andrea Dotti)
Date: 12 Sep, 2016
From: EugenyZhevak <EugenyZhevak>

Hello

I have the same problem compiling Geant.

OS CentOS 7
gcc version 4.9.2
icc, icpc version tried both 15.0.3 and 16.0.2

cmake -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF \
-DGEANT4_INSTALL_DATA=ON -DGEANT4_BUILD_STORE_TRAJECTORY=OFF \
-DCMAKE_INSTALL_PREFIX=~/geant/geant4.10.01.p03-install \
-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_LINKER=${LD} -DCMAKE_AR=${AR} \
-DCMAKE_TOOLCHAIN_FILE=./mic-toolchain-file.cmake \
-DGEANT4_BUILD_CXXSTD=c++11 \
-DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON \
../geant4.10.01.p03


#for icc, icpc version 15.0.3 I tried
export CC=/opt/intel/composer_xe_2015.3.187/bin/intel64_mic/icc
export CXX=/opt/intel/composer_xe_2015.3.187/bin/intel64_mic/icpc
#for icc, icpc version 16.0.2 I tried
export CC=/opt/intel/compilers_and_libraries_2016.2.181/linux/bin/intel64_mic/icc
export CXX=/opt/intel/compilers_and_libraries_2016.2.181/linux/bin/intel64_mic/icpc

export LD=/usr/linux-k1om-4.7/bin/x86_64-k1om-linux-ld
export AR=/usr/linux-k1om-4.7/bin/x86_64-k1om-linux-ar
export LDFLAGS=-mmic
export CXXFLAGS=-mmic
export CFLAGS=-mmic

The error is:
In file included from /home/me/geant/geant4.10.01.p03/source/externals/clhep/src/DualRand.cc(58):
/usr/linux-k1om-4.7/linux-k1om/usr/include/string.h(82): error: expected a ";"
  __extern_always_inline void *

I also tried -DGEANT4_BUILD_CXXSTD=c++11 and c++98 - no difference.

What's wrong?

Thank you

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: Compile Geant4 with intel compiler on Ubuntu   (EugenyZhevak - 12 Sep, 2016)
 Add Message Add Message
to: "Re: Compile Geant4 with intel compiler on Ubuntu"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews