compilation of BerkeleyGW-1.2.0

Submitted by farhadgw on Sun, 06/11/2017 - 14:52

Forums 

Installation

hello dear gwberkeley users

i have tried to compile gwberkeley with gfortran and ifort arch.mk generated from generic.serial.linux.mk and serial_ifort.mk but i have encountered with a similiar error as below :

make[2]: Leaving directory '/home/mohammad/Desktop/GW/GW Berkeley/BerkeleyGW-1.2.0'
make[2]: Entering directory '/home/mohammad/Desktop/GW/GW Berkeley/BerkeleyGW-1.2.0'
cpp -C -I./Common -DGNU Common/push_pop.f90 > Common/push_pop.p.f
gfortran -ffree-form -ffree-line-length-none -fbounds-check -Wall -pedantic-errors -std=gnu -I ./Common -I /usr/share/doc/fftw-dev/fortran -c -O3 Common/push_pop.p.f -o Common/push_pop.o -JCommon/
f951: Warning: Nonexistent include directory ‘/usr/share/doc/fftw-dev/fortran’ [-Wmissing-include-dirs]
/usr/include/stdc-predef.h:1:1:

/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:2:3:

This file is part of the GNU C Library.
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:4:3:

The GNU C Library is free software; you can redistribute it and/or
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:4:39:

The GNU C Library is free software; you can redistribute it and/or
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:5:3:

modify it under the terms of the GNU Lesser General Public
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:6:3:

License as published by the Free Software Foundation; either
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:6:57:

License as published by the Free Software Foundation; either
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:7:3:

version 2.1 of the License, or (at your option) any later version.
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:9:3:

The GNU C Library is distributed in the hope that it will be useful,
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:10:3:

but WITHOUT ANY WARRANTY; without even the implied warranty of
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:10:29:

but WITHOUT ANY WARRANTY; without even the implied warranty of
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:11:3:

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:12:3:

Lesser General Public License for more details.
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:14:3:

You should have received a copy of the GNU Lesser General Public
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:15:3:

License along with the GNU C Library; if not, see
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:15:41:

License along with the GNU C Library; if not, see
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:16:4:

. */
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:21:1:

/* This header is separate from features.h so that the compiler can
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:22:3:

include it implicitly at the start of every compilation. It must
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:23:3:

not itself include or any other header that includes
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:24:4:

because the implicit include comes before any feature
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:25:3:

test macros that may be defined in a source file before it first
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:26:3:

explicitly includes a system header. GCC knows the name of this
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:27:3:

header in order to preinclude it. */
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:29:1:

/* glibc's intent is to support the IEC 559 math functionality, real
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:30:3:

and complex. If the GCC (4.9 and later) predefined macros
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:31:3:

specifying compiler intent are available, use them to determine
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:32:3:

whether the overall intent is to support these features; otherwise,
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:32:60:

whether the overall intent is to support these features; otherwise,
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:33:3:

presume an older compiler has intent to support these features and
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:34:3:

define these macros by default. */
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:52:1:

/* wchar_t uses Unicode 8.0.0. Version 8.0 of the Unicode Standard is
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:53:3:

synchronized with ISO/IEC 10646:2014, plus Amendment 1 (published
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:54:8:

2015-05-15). */
1
Error: Non-numeric character in statement label at (1)
/usr/include/stdc-predef.h:54:11:

2015-05-15). */
1
Error: Non-numeric character in statement label at (1)
/usr/include/stdc-predef.h:54:14:

2015-05-15). */
1
Error: Non-numeric character in statement label at (1)
/usr/include/stdc-predef.h:54:15:

2015-05-15). */
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:57:1:

/* We do not support C11 . */
1
Error: Invalid character in name at (1)
Common/common-rules.mk:277: recipe for target 'Common/push_pop_m.mod' failed
make[2]: *** [Common/push_pop_m.mod] Error 1
make[2]: Leaving directory '/home/mohammad/Desktop/GW/GW Berkeley/BerkeleyGW-1.2.0'
Makefile:8: recipe for target 'pre' failed
make[1]: *** [pre] Error 2
make[1]: Leaving directory '/home/mohammad/Desktop/GW/GW Berkeley/BerkeleyGW-1.2.0'
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

please help me with this

jdeslip's picture

Submitted by jdeslip on Sat, 06/17/2017 - 15:20

I think at least part of your problem is you don't FFTW installed in the same place as our ubuntu arch.mk expects - /usr/share/doc/fftw-dev/fortran

Can you tell me what version of gfortran or gcc you have on your system. I wonder if you are being hit by the same issue reported here: http://berkeleygw.org/?q=node/393 - in which you can you can try the workaround suggested as we investigate (probably need to get rid for cpp)

Jack