Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fortcom: syntax error

littleleo
Beginner
1,088 Views

Hello, everyone:

I am using ifort_8.0.034 to compile current grpaes on Itanium2. Some errors occur as following:

------------------------------------------------------------------------------

rm -f module_ra_ec.o
sed /!.*'/s/'//g module_ra_ec.F > module_ra_ec.b
/usr/bin/cpp -I../inc -P -traditional -I. -I. -DRSL -DDM_PARALLEL -DIWORDSIZE=4 -DRWORDSIZE=4 -DLWORDSIZE=4 -DDWORDSIZE=8 -I../external/RSL/RSL `cat ../inc/dm_comm_cpp_flags` -DNO_RRTM_PHYSICS module_ra_ec.b > module_ra_ec.f
rm -f module_ra_ec.b
mpif90 -c -O2 -ip -ftz -fno-alias -safe_cray_ptr -convert big_endian -free -r8 -I../frame -I../share -I../phys -I../inc -I../dyn_grapes module_ra_ec.f
fortcom: Error: module_ra_ec.f, line 8002: Syntax error, found INTEGER_CONSTANT '100' when expecting one of: ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 8182: Syntax error, found INTEGER_CONSTANT '100' when expecting one of: ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 8711: Syntax error, found INTEGER_CONSTANT '100' when expecting one of: ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 9111: Syntax error, found INTEGER_CONSTANT '100' when expecting one of: ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 8002: This statement is positioned incorrectly and/or has syntax errors.
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 8182: This statement is positioned incorrectly and/or has syntax errors.
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 8711: This statement is positioned incorrectly and/or has syntax errors.
100 CONTINUE
..^
fortcom: Error: module_ra_ec.f, line 9111: This statement is positioned incorrectly and/or has syntax errors.
100 CONTINUE
..^
compilation aborted for module_ra_ec.f (code 1)
make[2]: [module_ra_ec.o] Error 1 (ignored)
-------------------------------------------------------------------------------------------

I found that I am not the first one who was unfortunate,and several posts related to this topic had been discussed here, however, there's no final answer. I want to ask it again, what's wrong on earth?

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,088 Views
I'd have to see the actual source file in question. Is there perhaps a tab character before the 100?
0 Kudos
littleleo
Beginner
1,088 Views
no tab but 2 spaces
0 Kudos
Steven_L_Intel1
Employee
1,088 Views
Very odd. You are using an old compiler, but I think there's something wrong not yet shown in this thread. Please try with a current compiler. If the problem persists, submit the source file in question and a description of the problem to Intel Premier Support.
0 Kudos
littleleo
Beginner
1,088 Views
I am downloading ifort-9.0. Hope it would work
0 Kudos
Reply