[CP2K:140] Compilation error - fortcom unbalanced parentheses

Teodoro Laino teodor... at gmail.com
Sat Jun 23 23:18:28 CEST 2007


Ciao Eric,

No idea why you're experiencing this problem only on a specific  
platform.. but on the web there are people
experiencing the same problem for exactly the same kind of syntax  
(that by the way is correct).

Have a look:
http://www.dbforums.com/showthread.php?t=1362694&page=2

Looks like it's a bug (introduce in  the 9.1 version, probably only  
for few kind of platform!?!) in the format string
parsing and a guy claimed he already reported the problem to the  
developers (May 2006)..

since you're using .032 I assume that the use of a newer version  
like .043 or .051 should fix the problem..
Unfortunately the build of your compiler (20060323) is prior the post  
in the above blog (200605).. so no chance.. you've
the bugged version..

Cheers
Teo

On 23 Jun 2007, at 22:53, Eric Shamay wrote:

>
> Hello everyone,
>
> I've managed to successfully compile cp2k on a cluster, and now I'm
> looking to install it on a second cluster with all the same setup
> except with xeon cpus instead of the itanium (ia64).
>
> I ran into an error regarding the FCFLAGS -tpp2, and changed that to -
> ttp7 to target xeon cpus specifically and it worked out.
>
> The problem now is that I receive errors regarding 'unbalanced
> parentheses' from fortcom in the file topology_psf.f90. I've attached
> the error output to the end of the message. Should I be using an older
> ifort (i.e. 8.1) for ia32-type systems?
>
> The output of my mpif90 -V is as follows:
>
> 13:46:48  eshamay at neuronic (~) mpif90 -V
> Intel(R) Fortran Compiler for 32-bit applications, Version 9.1
> Build 20060323Z Package ID: l_fc_p_9.1.032
> Copyright (C) 1985-2006 Intel Corporation.  All rights reserved.
> FOR NON-COMMERCIAL USE ONLY
>
> Anyone have any idea why the sudden syntax error in that file? I've
> read that line length may be an issue, but why now and not before when
> I was compiling successfully on another cluster?
>
> ~Eric Shamay
>
>
>
> *******************************
> fortcom: Error: topology_psf.f90, line 1056: Unbalanced parentheses
>           WRITE(file_unit,FMT='(2('//TRIM(c_int)//'))',ADVANCE="NO") &
> -------------------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1057: Unbalanced parentheses
>                conn_info%bond_a(i+j),conn_info%bond_b(i+j)
> -----------------------------------^
> fortcom: Error: topology_psf.f90, line 1057: Unbalanced parentheses
>                conn_info%bond_a(i+j),conn_info%bond_b(i+j)
> ---------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1056: Syntax error, found '''
> when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
>           WRITE(file_unit,FMT='(2('//TRIM(c_int)//'))',ADVANCE="NO") &
> --------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1068: Unbalanced parentheses
>           WRITE(file_unit,FMT='(3('//TRIM(c_int)//'))',ADVANCE="NO") &
> -------------------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1069: Unbalanced parentheses
>                conn_info%theta_a(i+j),conn_info%theta_b(i+j),&
> ------------------------------------^
> fortcom: Error: topology_psf.f90, line 1069: Unbalanced parentheses
>                conn_info%theta_a(i+j),conn_info%theta_b(i+j),&
> -----------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1070: Unbalanced parentheses
>                conn_info%theta_c(i+j)
> ------------------------------------^
> fortcom: Error: topology_psf.f90, line 1068: Syntax error, found '''
> when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
>           WRITE(file_unit,FMT='(3('//TRIM(c_int)//'))',ADVANCE="NO") &
> --------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1081: Unbalanced parentheses
>           WRITE(file_unit,FMT='(4('//TRIM(c_int)//'))',ADVANCE="NO") &
> -------------------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1082: Unbalanced parentheses
>                conn_info%phi_a(i+j),conn_info%phi_b(i+j),&
> ----------------------------------^
> fortcom: Error: topology_psf.f90, line 1082: Unbalanced parentheses
>                conn_info%phi_a(i+j),conn_info%phi_b(i+j),&
> -------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1083: Unbalanced parentheses
>                conn_info%phi_c(i+j),conn_info%phi_d(i+j)
> ----------------------------------^
> fortcom: Error: topology_psf.f90, line 1083: Unbalanced parentheses
>                conn_info%phi_c(i+j),conn_info%phi_d(i+j)
> -------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1081: Syntax error, found '''
> when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
>           WRITE(file_unit,FMT='(4('//TRIM(c_int)//'))',ADVANCE="NO") &
> --------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1094: Unbalanced parentheses
>           WRITE(file_unit,FMT='(4('//TRIM(c_int)//'))',ADVANCE="NO") &
> -------------------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1095: Unbalanced parentheses
>                conn_info%impr_a(i+j),conn_info%impr_b(i+j),&
> -----------------------------------^
> fortcom: Error: topology_psf.f90, line 1095: Unbalanced parentheses
>                conn_info%impr_a(i+j),conn_info%impr_b(i+j),&
> ---------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1096: Unbalanced parentheses
>                conn_info%impr_c(i+j),conn_info%impr_d(i+j)
> -----------------------------------^
> fortcom: Error: topology_psf.f90, line 1096: Unbalanced parentheses
>                conn_info%impr_c(i+j),conn_info%impr_d(i+j)
> ---------------------------------------------------------^
> fortcom: Error: topology_psf.f90, line 1094: Syntax error, found '''
> when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
>           WRITE(file_unit,FMT='(4('//TRIM(c_int)//'))',ADVANCE="NO") &
> --------------------------------------------------^
> compilation aborted for topology_psf.f90 (code 1)
> make[2]: *** [topology_psf.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [build] Error 2
> make: *** [popt] Error 2
>
>
> >




More information about the CP2K-user mailing list