SWIFTSIM / SWIFT

Modern astrophysics and cosmology particle-based code. Mirror of gitlab developments at https://gitlab.cosma.dur.ac.uk/swift/swiftsim
http://www.swiftsim.com
GNU Lesser General Public License v3.0
88 stars 58 forks source link

Unknown intel compiler version (error: _AX_COMPILER_VERSION_INTEL) #7

Closed ben-ljmu closed 5 years ago

ben-ljmu commented 5 years ago

Hi,

We're having difficulty compiling the code on Ubuntu 18.04.1 using ICC version 18.0.1. After running ./autogen, using ./configure CC=icc MPICC=mpicc exits with the following error:

checking for C compiler version... configure: error: in `/path/to/files':
configure: error: _AX_COMPILER_VERSION_INTEL unknown intel compiler version

However, using the exact same compiler on Ubuntu 16.04.5 seems to work fine.

Hardcoding the version number using ax_cv_c_compiler_version="18.0.1" lets the configure step complete successfully (although CFLAGS have to be set manually).

Thanks!

pwdraper commented 5 years ago

We've not seen that one before. Odd that it changes between Ubuntus. Can you attach the files config.log and configure from a failed attempt?

ben-ljmu commented 5 years ago

It does seem strange. I've attached both files from a failed attempt below. Thanks again!

config.log configure.txt

pwdraper commented 5 years ago

Thanks, so the problem is new support for the types _Float32 _Float64 and others see:

https://software.intel.com/en-us/forums/intel-c-compiler/topic/777003

The fix looks scheduled for the 2019 releases, maybe. In the meanwhile the only work around is to define these missing types in your CFLAGS:

 ./configure CFLAGS="-D_Float32=float -D_Float32x=float -D_Float64='long double' -D_Float64x='long double'"

I'm guessing. You may need to work on the quotes.

JBorrow commented 5 years ago

Is this problem fixed now?

ben-ljmu commented 5 years ago

Yep, there's no error when using the 2019 Intel compiler. Thanks