Trying to build on Ubuntu, aborts after one compile lol

24 views
Skip to first unread message

mike marchywka

unread,
Sep 23, 2025, 1:08:51 PM (9 days ago) Sep 23
to BerkeleyGW Help
Each time I run it it goes to the next one and creates an object file.
This looks like something obvious but I can't find it. thanks. 



make[2]: Leaving directory '/home/ubuntu/dev/berkley-gw/BerkeleyGW-4.0'
make[2]: Entering directory '/home/ubuntu/dev/berkley-gw/BerkeleyGW-4.0'
cpp -C -I./Common  -DGNU -DMPI -DUSESCALAPACK  Common/scalapack_aux.f90 > Common/scalapack_aux.p.f
/usr/bin/mpif90 -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/scalapack_aux.p.f -o Common/scalapack_aux.o -JCommon/
/usr/include/stdc-predef.h:1:2:

    1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc.
      |  1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:15:45:

   15 |    License along with the GNU C Library; if not, see
      |                                             1
Error: Missing ‘(’ in IF-expression at (1)
/usr/include/stdc-predef.h:16:5:

   16 |    <https://www.gnu.org/licenses/>.  */
      |     1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:21:2:

   21 | /* 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:24:5:

   24 |    <features.h> because the implicit include comes before any feature
      |     1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:29:2:

   29 | /* 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:56:2:

   56 | /* wchar_t uses Unicode 10.0.0.  Version 10.0 of the Unicode Standard is
      |  1
Error: Invalid character in name at (1)
make[2]: *** [Common/common-rules.mk:282: Common/scalapack_aux_m.mod] Error 1
Common/common-rules.mk:282: warning: pattern recipe did not update peer target 'Common/scalapack_aux.o'.
make[2]: Leaving directory '/home/ubuntu/dev/berkley-gw/BerkeleyGW-4.0'
make[1]: *** [Makefile:8: pre] Error 2
make[1]: Leaving directory '/home/ubuntu/dev/berkley-gw/BerkeleyGW-4.0'
make: *** [Makefile:115: all] Error 2

Mauro Del Ben

unread,
Sep 23, 2025, 1:50:02 PM (9 days ago) Sep 23
to mike marchywka, BerkeleyGW Help
Hi Mike,

It seems a FCPP issue, try to use in your arch.mk the following flags for FCPP:

FCPP    = cpp -C   -nostdinc 

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 visit https://groups.google.com/a/berkeleygw.org/d/msgid/help/e1c38bde-8608-4bb8-8074-3fd6dfad3abbn%40berkeleygw.org.

mike marchywka

unread,
Sep 23, 2025, 6:01:07 PM (8 days ago) Sep 23
to BerkeleyGW Help, mde...@lbl.gov, BerkeleyGW Help, mike marchywka
Sorry I did not see your reply but we had similar solutions. I've never used one of these groups before
no idea where to look for responses I guess its thread view lol.
Thanks. Now its trying to link to a bunch of archive files...
Reply all
Reply to author
Forward
0 new messages