install error

wanily586's picture
Submitted by wanily586 on Sat, 03/24/2012 - 01:08

Forums 

Installation

Hi, everyone,
I have a problem in installing BerkeleyGW.
After I set arch.mk and type "make", a error appears in my screen:

........

---^
fortcom: Error: ../Common/nrtype.f90, line 31: Illegal character in statement label field [t]
integer, parameter :: DP = kind(1.0d0)
----^
fortcom: Severe: Too many errors, exiting
compilation aborted for ../Common/nrtype.p.f (code 1)
make[1]: *** [../Common/nrtype_m.mod] Error 1
make[1]: Leaving directory `/home/huanghq/BerkeleyGW-1.0.1/Epsilon'
make: *** [epsilon] Error 2

Is anyone can give me a hand?

Thanks!

dstrubbe's picture

Submitted by dstrubbe on Sat, 03/24/2012 - 10:36

Looks like you are compiling as "fixed format." You need to pass the appropriate flag for your compiler to consider the source files "free format." See examples in the F90free variable in the config files.

Submitted by mila on Mon, 08/26/2013 - 04:27

Dear dstrubbe,
Aftert the arch.mk file has been set,I want to compile the BGW code through "make all".
However,I got an error message when the compiling process arrived at "ICM" .
The error message is presented in the following:

cd ICM && make
make[2]: Entering directory `/hpc/wdd/BerkeleyGW-1.0.4/MeanField/ICM'
mpiicc -I../../Common -DINTEL -DPARA -DDEBUG -DVERBOSE -c -O2 icm.cpp -o icm.o
/opt/intel/impi/4.0.0.028/intel64/include/mpicxx.h(45): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
#error "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h"
^

What's the matter with it? Could you please give me some suggestions?
Thank you in advance.

Submitted by mila on Tue, 08/27/2013 - 01:51

Dear dstrubbe ,
Sorry to disturb you.I have solved the problem by myself.
Yesterday ,I didn't set the arch.mk file absolutely right. Then I used "C_PARAFLAG = -DPARA -DMPICH_IGNORE_CXX_SEEK" instead of "C_PARAFLAG = -DPARA ",so the problem was solved.
Thank you very much.

Submitted by veerpal kaur on Wed, 09/06/2017 - 06:06

Hii everyone,

I am new to this code . i don't know what is Mysystem in following command in my case ?

ln -s config/[mysystem].mk arch.mk

I am working on Ubuntu 12.04 LTS . Is Mysystem = Ubuntu 12.04 LTS?
If not what is this?
please tell me.

Thanks