Compiling error on Beskow

226 views
Skip to first unread message

Xiangyu LI

unread,
Feb 11, 2017, 7:05:50 PM2/11/17
to pencil-code-discuss
Dear all,

Did anyone using Beskow get the following error when compiling the code?
It stopped working from 10th Feb, 2017.
 
>pc_build
if [ "" ]; then \
   rm -f cparam.inc; \
   rm -f cparam_pencils.inc; \
   ln -s cparam.inc cparam.inc; \
   ln -s cparam_pencils.inc cparam_pencils.inc; \
fi
cc -DFUNDERSC=1 -ipo -DDOUBLE_PRECISION   -o syscalls_ansi.o -c syscalls_ansi.c
ftn -implicitnone -ipo -autodouble   -std95 -o cparam.o -c cparam.f90
scripts/mkdummyinc -d file_io_common.f90 -s file_io_f95.f90 -o file_io_common.inc
CC-2115 craycc: ERROR in command line
  "-ipo" is an invalid command-line option.
ftn-2105 crayftn: ERROR in command line
  "-i" is an invalid command-line option.
ftn-2105 crayftn: ERROR in command line
  "-i" is an invalid command-line option.
ftn-2105 crayftn: ERROR in command line
  "-a" is an invalid command-line option.
cc -DFUNDERSC=1 -ipo -DDOUBLE_PRECISION   -o nogsl.o -c nogsl.c
make[2]: *** [syscalls_ansi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cparam.o] Error 1
CC-2115 craycc: ERROR in command line
  "-ipo" is an invalid command-line option.
make[2]: *** [nogsl.o] Error 1
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [code] Error 2
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [default_to_be] Error 2
'make -j FFLAGS_DOUBLE=-autodouble CFLAGS_DOUBLE=-DDOUBLE_PRECISION LD_MPI= CFLAGS_FFTW3= FFLAGS_FFTW3= LD_FFTW3= CFLAGS_FFTW2= FFLAGS_FFTW2= LD_FFTW2= FC=ftn F77=$(FC) FFLAGS=-implicitnone -ipo FSTD_95=-std95 FSTD_2003=-std03 CC=cc CFLAGS=-DFUNDERSC=1 -ipo AR=xiar default_to_be' failed: <>


>make
make[2]: Entering directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
if [ "" ]; then \
   rm -f cparam.inc; \
   rm -f cparam_pencils.inc; \
   ln -s cparam.inc cparam.inc; \
   ln -s cparam_pencils.inc cparam_pencils.inc; \
fi
ftn  -O3 -ffree-line-length-0  -fdefault-real-8 -fdefault-double-8     -o cparam.o -c cparam.f90
ftn-78 crayftn: ERROR in command line
  The -f option has an invalid argument, "free-line-length-0".
ftn-78 crayftn: ERROR in command line
  The -f option has an invalid argument, "default-real-8".
ftn-78 crayftn: ERROR in command line
  The -f option has an invalid argument, "default-double-8".
make[2]: *** [cparam.o] Error 1
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [legacy_code] Error 2
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [legacy_default] Error 2

Best regards,

Xiangyu

Philippe-A. Bourdin

unread,
Feb 11, 2017, 7:14:23 PM2/11/17
to pencil-code-discuss
1) Please check how to load a compiler "module" on Beskow.

2) With the default configuration for Beskow you have to load (or switch to) the Intel compiler before trying to compile. This is done with "module load" or "module switch":
http://modules.sourceforge.net/

3) If you require to use another than the default compiler with "pc_build", you just need to choose the appropriate option with "-f", please check:
http://pencil-code.nordita.org/doc/quick_start.pdf

Best greetings.

Xiangyu LI

unread,
Feb 11, 2017, 9:13:08 PM2/11/17
to pencil-code-discuss
Many thanks for the quick reply!
Yes, I used Intel compiler,
> module swap PrgEnv-cray PrgEnv-intel
and my configuration file is (adapted from the Beskow configuration file)
/cfs/klemming/nobackup/x/xyuli/pencil-code/config/hosts/xiangyu/_cfs_klemming_nobackup_x_xyuli_pencil-code_config_hosts_xiangyu.conf
%include compilers/Intel_MPI

%section Makefile
  FC = ftn
  F77 = $(FC)
  CC = cc
  FFLAGS += -ipo
  CFLAGS += -ipo
  FFLAGS_DOUBLE = -autodouble
%endsection Makefile

%section runtime
  mpiexec = aprun
%endsection runtime

It turned that the svn on Beskow does not work properly, the error disappeared the second time I updated the source code.
The first time I updated the code, the version is different from the one from my laptop. Then I updated again, they became the same.

Xiangyu

Philippe-A. Bourdin

unread,
Feb 11, 2017, 9:32:15 PM2/11/17
to pencil-code-discuss
Hello Xiangyu,


my configuration file is (adapted from the Beskow configuration file)
/cfs/klemming/nobackup/x/xyuli/pencil-code/config/hosts/xiangyu/_cfs_klemming_nobackup_x_xyuli_pencil-code_config_hosts_xiangyu.conf
%include compilers/Intel_MPI

%section Makefile
  FC = ftn
  F77 = $(FC)
  CC = cc
  FFLAGS += -ipo
  CFLAGS += -ipo
  FFLAGS_DOUBLE = -autodouble
%endsection Makefile

%section runtime
  mpiexec = aprun
%endsection runtime

 We see here a mix of "compilers/Intel_MPI" and manual configuration "FC=ftn". I'm not sure if "ftn" is really the Intel compiler here, because the error message you posted clearly shows the "-ipo" option is not accepted, which e.g. the GNU compiler would give as error. Can you check the output of "ftn --version"?

Alternatively, would you please try out these pre-set configuration files?

pc_build -f Cray_MPI
pc_build -f Intel_MPI
pc_build -f Intel_MPI-mpiifort

I guess, one of them works without manual configuration.

Best greetings,
Philippe.

Xiangyu LI

unread,
Feb 12, 2017, 12:07:47 AM2/12/17
to pencil-code-discuss


On Saturday, February 11, 2017 at 7:32:15 PM UTC-7, Philippe-A. Bourdin wrote:
Hello Xiangyu,

my configuration file is (adapted from the Beskow configuration file)
/cfs/klemming/nobackup/x/xyuli/pencil-code/config/hosts/xiangyu/_cfs_klemming_nobackup_x_xyuli_pencil-code_config_hosts_xiangyu.conf
%include compilers/Intel_MPI

%section Makefile
  FC = ftn
  F77 = $(FC)
  CC = cc
  FFLAGS += -ipo
  CFLAGS += -ipo
  FFLAGS_DOUBLE = -autodouble
%endsection Makefile

%section runtime
  mpiexec = aprun
%endsection runtime

 We see here a mix of "compilers/Intel_MPI" and manual configuration "FC=ftn". I'm not sure if "ftn" is really the Intel compiler here, because the error message you posted clearly shows the "-ipo" option is not accepted, which e.g. the GNU compiler would give as error. Can you check the output of "ftn --version"?

 > ftn --version
 ifort (IFORT) 14.0.4 20140805 
 Copyright (C) 1985-2014 Intel Corporation.  All rights reserved. 

Alternatively, would you please try out these pre-set configuration files?

>pc_build -f Cray_MPI
 
ifort: command line warning #10006: ignoring unknown option '-J'
ifort: error #10236: File not found:  'real64'
make[2]: *** [cparam.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [code] Error 2
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [default_to_be] Error 2
'make -j FFLAGS_DOUBLE=-s real64 CFLAGS_DOUBLE=-DDOUBLE_PRECISION LD_MPI= CFLAGS_FFTW3= FFLAGS_FFTW3= LD_FFTW3= CFLAGS_FFTW2= FFLAGS_FFTW2= LD_FFTW2= FC=ftn F77=$(FC) FFLAGS=-J . CC=cc CFLAGS=-DFUNDERSC=1 default_to_be' failed: <> 
 
>pc_build -f Intel_MPI
 
make[2]: mpicc: Command not found
mpif90 -implicitnone -r8   -std95 -o cparam.o -c cparam.f90
make[2]: mpif90: Command not found
make[2]: *** [syscalls_ansi.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cparam.o] Error 127
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [code] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [default_to_be] Error 2
'make -j FFLAGS_DOUBLE=-r8 CFLAGS_DOUBLE=-DDOUBLE_PRECISION LD_MPI= CFLAGS_FFTW3= FFLAGS_FFTW3= LD_FFTW3= CFLAGS_FFTW2= FFLAGS_FFTW2= LD_FFTW2= FC=mpif90 F77=mpif77 FFLAGS=-implicitnone FSTD_95=-std95 FSTD_2003=-std03 CC=mpicc CFLAGS=-DFUNDERSC=1 AR=xiar default_to_be' failed: <> 

>pc_build -f Intel_MPI-mpiifort

   make[2]: mpiicc: Command not found
mpiifort -implicitnone -r8   -std95 -o cparam.o -c cparam.f90
make[2]: mpiifort: Command not found
make[2]: *** [syscalls_ansi.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [cparam.o] Error 127
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [code] Error 2
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [default_to_be] Error 2
'make -j FFLAGS_DOUBLE=-r8 CFLAGS_DOUBLE=-DDOUBLE_PRECISION LD_MPI= CFLAGS_FFTW3= FFLAGS_FFTW3= LD_FFTW3= CFLAGS_FFTW2= FFLAGS_FFTW2= LD_FFTW2= FC=mpiifort F77=$(FC) FFLAGS=-implicitnone FSTD_95=-std95 FSTD_2003=-std03 CC=mpiicc CFLAGS=-DFUNDERSC=1 AR=xiar default_to_be' failed: <> 
 
>pc_build

particles_coagulation.f90(169): error #7983: The storage extent of the dummy argument exceeds that of the actual argument.   [FP]
        call particles_coag_timestep_zd(fp)
----------------------------------------^
particles_coagulation.f90(288): error #7983: The storage extent of the dummy argument exceeds that of the actual argument.   [FP]
        call particles_coag_outcome_zd(fp)
---------------------------------------^
compilation aborted for particles_coagulation.f90 (code 1)
make[2]: *** [particles_coagulation.o] Error 1
make[2]: *** Waiting for unfinished jobs....
particles_dust.f90(211): warning #5199: Too many continuation lines
      lcalc_uup, temp_grad0, thermophoretic_eq, cond_ratio, interp_pol_gradTT, &
-----^
particles_dust.f90(258): warning #5199: Too many continuation lines
      rpbeta_species, rpbeta, gab_width, initxxp, initvvp, &
-----^
make[2]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make[1]: *** [code] Error 2
make[1]: Leaving directory `/cfs/klemming/nobackup/x/xyuli/pencil-code/nils/particles_coag/3D/SW128condens0_coag_grav0_turb_shima_f2em2_ngp_a24_L025_fullTurb/src'
make: *** [default_to_be] Error 2

 
I guess, one of them works without manual configuration.

Best greetings,
Philippe.

Philippe-A. Bourdin

unread,
Feb 12, 2017, 7:40:55 AM2/12/17
to pencil-code-discuss
Hello Xiangyu,

so we see, pc_build works now, which it did not before, because you forgot to switch to the Intel compiler module...
What you see now is a regular error on compiling broken code, which I can not comment on.

Best greetings,
Philippe.

Xiangyu LI

unread,
Feb 14, 2017, 10:48:57 AM2/14/17
to pencil-code-discuss
Hi Philippe,

Many thanks.
I am now working on the debug of it.

Cheers,

Xiangyu
Reply all
Reply to author
Forward
0 new messages