Unable to compile berkeleygw@2.1 on a powerpc machine

49 views
Skip to first unread message

Ashwin Kumar k

unread,
Feb 6, 2024, 4:47:16 AM2/6/24
to BerkeleyGW Help
I am trying to compile  berkeleygw@2.1 on a powerpc ()
But I end up getting the following error during compilation, 
```
$spack_root/lib/spack/env/gcc/gfortran -ffree-form -ffree-line-length-none -fno-second-underscore -fallow-argument-mismatch -I ./Common -I $spack_root/opt/spack/linux-debian11-power8le/gcc-11.3.0/fftw-3.3.10-aorzxrzqxxd6sk4yur4dmn5qixz2zg6s/include -I $spack_root/opt/spack/linux-debian11-power8le/gcc-11.3.0/hdf5-1.12.2-2k7sveybjzcx7ok7w5owchkdaib2gbcn/include -c -fopenmp Common/typedefs.p.f -o Common/typedefs.o -J Common/
Common/typedefs.f90:561:4:

  561 |     SCALAR :: epshead !< head of dielectric matrix at q->0
      |    1
Error: Unclassifiable statement at (1)
make[4]: *** [Common/common-rules.mk:260: Common/typedefs_m.mod] Error 1
make[4]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[3]: *** [Makefile:8: pre] Error 2
make[3]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[2]: *** [Makefile:115: all] Error 2
make[2]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[1]: *** [Makefile:126: real] Error 2
make[1]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make: *** [Makefile:119: all-flavors] Error 2
~                                                  
```
does anyone know what the solution might be?
Thanks in advance

Mauro Del Ben

unread,
Feb 7, 2024, 1:05:33 PM2/7/24
to Ashwin Kumar k, BerkeleyGW Help
Hi Ashwin, 

Check the FCPP flags, try maybe using: "FCPP    = cpp  -P -ansi  -nostdinc  -C  -E  -std=c11" in arch.mk 

Best

-M


--
You received this message because you are subscribed to the Google Groups "BerkeleyGW Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help+uns...@berkeleygw.org.
To view this discussion on the web visit https://groups.google.com/a/berkeleygw.org/d/msgid/help/b60572ac-9841-4a1c-81c4-4bb4553cb0fcn%40berkeleygw.org.

Ashwin Kumar k

unread,
Feb 12, 2024, 9:59:06 AM2/12/24
to BerkeleyGW Help, mde...@lbl.gov, BerkeleyGW Help, Ashwin Kumar k
Thanks a lot for your help!

Would you have any suggestions on which other FCPP flags I could check for, or what might be causing the issue?
The flags you suggested don't seem to work:

```
$ grep "FCPP"  arch.mk
FCPP    = cpp  -P -ansi  -nostdinc  -C  -E  -std=c11

$ tail -n 12 spack-build-out.txt
  561 |     SCALAR :: epshead !< head of dielectric matrix at q->0
      |    1
Error: Unclassifiable statement at (1)
make[4]: *** [Common/common-rules.mk:260: Common/typedefs_m.mod] Error 1
make[4]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[3]: *** [Makefile:8: pre] Error 2
make[3]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[2]: *** [Makefile:115: all] Error 2
make[2]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make[1]: *** [Makefile:126: real] Error 2
make[1]: Leaving directory '$spack_stage/spack-stage-berkeleygw-2.1-77nya7t5lmqr3iarofcbzjlzobepn4jt/spack-src'
make: *** [Makefile:119: all-flavors] Error 2
```

David Strubbe

unread,
Feb 12, 2024, 12:32:32 PM2/12/24
to Ashwin Kumar k, BerkeleyGW Help

Dear Ashwin,

 

Please verify that the FCPP line you gave was actually used, i.e. that it appears in that build log. The snippets you gave do not show whether it got used or not.

 

Best,

David

 

David A. Strubbe (he/him/his)

Associate Professor of Physics

Chair of the Physics Graduate Group

University of California, Merced

Office: ACS 251

Phone: +1-209-228-4481

http://sail.ucmerced.edu 

 

 

Reply all
Reply to author
Forward
0 new messages