[Towhee-bugs] Towhee 7.2.0 fails to build with intel studio 2017 on redhatls
Brought to you by:
marcus_martin
|
From: Rashid K. <ras...@tu...> - 2017-06-30 12:43:21
|
Hi,
I am trying to build towhee 7.2.0 with a intel studio 2017 compiler.
Towhee does not compile at all. There are two bugs:
System:
Redhat Linux Based System
gcc 6.3.0
intel studio 2017
towhee-7.2.0
First:
./configure F77='ifort' CC='icc' CXX='icpc'
your configure script tests always if the test program works with the
gcc, no matter what compiler you provide. So you need to have a gcc
installed to run configure, even if the Makefile which is generated
clearly uses icc (icc -g -o towhee accumulateaverages.o ...). If
you don't have a gcc installed, it can find the icc but tells you, that
it can't compile with it and it is not working (even if it is). So far,
so annoying. I changed the $CC Variable by hand and made sure it realy
uses icc in the Makefile.
Second, Game Breaking Bug with some of your fortran code:
./configure F77='ifort' CC='icc' CXX='icpc'
ifort -DPACKAGE_NAME=\"towhee\" -DPACKAGE_TARNAME=\"towhee\"
-DPACKAGE_VERSION=\"7.2.0\" -DPACKAGE_STRING=\"towhee-7.2.0\"
-DPACKAGE_BUGREPORT=\"tow...@li...\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"towhee\" -DVERSION=\"7.2.0\"
-DHAVE_STRSTR=1 -I. -g -c -o ffding1986.o ffding1986.F
ifort -DPACKAGE_NAME=\"towhee\" -DPACKAGE_TARNAME=\"towhee\"
-DPACKAGE_VERSION=\"7.2.0\" -DPACKAGE_STRING=\"towhee-7.2.0\"
-DPACKAGE_BUGREPORT=\"tow...@li...\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"towhee\" -DVERSION=\"7.2.0\"
-DHAVE_STRSTR=1 -I. -g -c -o ffdreiding.o ffdreiding.F
ffdreiding.F(1208): error #5082: Syntax error, found END-OF-STATEMENT
when expecting one of: = .EQV. .NEQV. .XOR. .OR. .AND. .LT. < .LE. <=
.EQ. == .NE. /= .GT. > ...
call twh_torstyle(2001,type,TOR_STYLE_DREIDIN
---------------------------------------------------------------------^
ffdreiding.F(1208): error #6404: This name does not have a type, and
must have an explicit type. [TOR_STYLE_DREIDIN]
call twh_torstyle(2001,type,TOR_STYLE_DREIDIN
----------------------------------------------------^
compilation aborted for ffdreiding.F (code 1)
make[1]: *** [ffdreiding.o] Fehler 1
make[1]: Leaving directory `/root/rash/towhee/towhee-7.2.0/Source'
make: *** [all-recursive] Fehler 1
It works with gfortran but not with ifort which is stricter. We would
love to use the intel compiler to get a bit better performance. Btw. is
there a reason, why you compile with -O3 instead -O2? -O3 could provide
a speed boost with good compilers.
Kind regards
--
Rashid Kratou
M. Sc. Informatik
Gauß-IT-Zentrum
Technische Universität Braunschweig
0531 39163749
|