Page 1 of 1

Compiling error

Posted: Fri May 30, 2014 2:34 pm
by rezuzu
Dear all

I am trying to install yambo-3.4.1 in ubuntu 14.04 LTS (gnu fortran 95 compiler, version gfortran 4:4.8.2-1ubuntu6), and I got the compiling error (attached file) in make yambo.

Is there a way to avoid this error?

Thank you in advance

Karim

Re: Compiling error

Posted: Fri May 30, 2014 5:08 pm
by Daniele Varsano
Dear Karim,
it is not possible to spot the problem from your post.
Please do the following:
1) make clean_all
2) run the configure script
3) make yambo

and then post the config.log file and the error message.

Best,
Daniele

Re: Compiling error

Posted: Fri May 30, 2014 5:19 pm
by rezuzu
Dear Daniele,

Please find attached the file you asked me for,

Best,

Karim

Re: Compiling error

Posted: Fri May 30, 2014 5:24 pm
by rezuzu
Dear Daniele,

I got the following error in make yambo


>>>[Making libxc]<<<
Making all in build
Making all in src
libtool: ignoring unknown tag F77
libtool: compile: gfortran -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none -c libxc.f90 -o libxc_la-libxc.o
/usr/include/stdc-predef.h:1.1:
Included at ./libxc_master.F90:1:

/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:2.3:
Included at ./libxc_master.F90:1:

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

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:
Included at ./libxc_master.F90:1:

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:
Included at ./libxc_master.F90:1:

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

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

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

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:
Included at ./libxc_master.F90:1:

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:
Included at ./libxc_master.F90:1:

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

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

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

Lesser General Public License for more details.
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:14.3:
Included at ./libxc_master.F90:1:

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:
Included at ./libxc_master.F90:1:

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

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

<http://www.gnu.org/licenses/>. */
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:21.1:
Included at ./libxc_master.F90: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:
Included at ./libxc_master.F90:1:

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

not itself include <features.h> or any other header that includes
1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:24.4:
Included at ./libxc_master.F90:1:

<features.h> because the implicit include comes before any feature
1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:25.3:
Included at ./libxc_master.F90:1:

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:
Included at ./libxc_master.F90:1:

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

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

/* glibc's intent is to support the IEC 559 math functionality, real
1
Error: Invalid character in name at (1)
Fatal Error: Error count reached limit of 25.
make[4]: *** [libxc_la-libxc.lo] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [libs] Error 2

Karim

Re: Compiling error

Posted: Fri May 30, 2014 9:15 pm
by Davide Sangalli
Dear Karim,
this is unfortunately a problem with the libxc which we include in the code but we do not develop.
We will sonn upgrade to a version which is free from this bug.

Meanwhile you can just edit your file "/usr/include/stdc-predef.h" removing all comments, i.e. all the ines lwhich are between /* comments */

Best regards,
Davide

Re: Compiling error

Posted: Sat May 31, 2014 10:56 am
by rezuzu
Dear Davide,

Thank you


Best,

Karim

Re: Compiling error

Posted: Wed Oct 01, 2014 5:23 pm
by kazem.manzoor
Dear Daniel

I am trying to install yambo-3.4.1 in ubuntu 14.04 LTS
and i enounterd tha same problem that karim said.
and tried to use your instruction " removing all comments, i.e. all the ines lwhich are between /* comments */"
but the problem didn't solve!
the config.log and stdc-predef.h attached!

thanks
kazem

Re: Compiling error

Posted: Wed Oct 01, 2014 5:37 pm
by Daniele Varsano
Dear Kazem,
please fill your signature with your complete affiliation, this is a rule of the forum.
Could you please post exactly the error you encountered?
And what error you have after having removed the comment in the .h file?
Best,

Daniele

Re: Compiling error

Posted: Wed Oct 01, 2014 9:10 pm
by Davide Sangalli
Try to do
make clean_all

Then run again the configure and compile.

Re: Compiling error

Posted: Mon Oct 06, 2014 7:05 am
by kazem.manzoor
Dear Davide,

Thank you


Best,

kazem