LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2015, 03:10 AM   #1
Sefid par
Member
 
Registered: Jul 2013
Location: Iran, Shiraz
Distribution: Ubuntu
Posts: 130

Rep: Reputation: 26
Invalid character in name at (1) /usr/include/stdc-predef.h:2.3: Included at c_po


I want to install Octopus 4.1.2; I got this error while 'make'
What would be the problem. Would you mind help my by explaining the problem?
Or help me find out How to solve?
Thanks
Code:
gfortran -pipe -O3 -funroll-loops -ffast-math -ffree-line-length-none      -I /opt/etsf/include -I ../../src/basic -I ../../src/math -I ../../src/species -I ../../src/ions -I ../../src/grid -I ../../src/poisson -I ../../src/states -I ../../src/xc -I ../../src/system -I ../../src/hamiltonian -I ../../src/scf -I ../../src/td -I ../../src/opt_control -I ../../src/sternheimer -I ../../external_libs/qshep -I ../../external_libs/bpdn   -c  -o c_pointer.o c_pointer_oct.f90
/usr/include/stdc-predef.h:1.1:
    Included at c_pointer.F90:1:

/* Copyright (C) 1991-2015 Free Software Foundation, Inc.
 1
Error: Invalid character in name at (1)
/usr/include/stdc-predef.h:2.3:
    Included at c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.F90:1:

   Lesser General Public License for more details.
   1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:14.3:
    Included at c_pointer.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 c_pointer.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 c_pointer.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 c_pointer.F90:1:

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

   header in order to preinclude it.  */
   1
Error: Unclassifiable statement at (1)
/usr/include/stdc-predef.h:29.1:
    Included at c_pointer.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[3]: *** [c_pointer.o] Error 1
make[3]: Leaving directory `/home/evolution/Downloads/Package/octopus-4.1.2/src/basic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/evolution/Downloads/Package/octopus-4.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/evolution/Downloads/Package/octopus-4.1.2'
make: *** [all] Error 2
 
Old 05-11-2015, 05:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The "/usr/include/stdc-predef.h" errors :

The problem is that for every line, every F90 action, the file '/usr/include/stdc-predef.h' is read.
( Probably an octopus bug ?)
And the {octopus code / gfortran} reads the style C commented ( /*) text as code.

A workaround : First, save a copy of stdc-predef.h .
Then delete all the "text information". Like the attached stdc-predef.h .
(You cannot just add a fortran comment ( A ! ) because for every second action gcc is used.
And will read stdc-predef.h, and choke in the !`s ).
-
Attached Files
File Type: txt stdc-predef.h.txt (412 Bytes, 174 views)

Last edited by knudfl; 05-11-2015 at 05:10 AM.
 
1 members found this post helpful.
Old 05-11-2015, 08:10 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, the "octopus-4.1.2.tar.gz" is buggy.
But 4.1.x has been continuously updated.
You can get the bug fixed version with :
$ svn co http://www.tddft.org/svn/octopus/branches/4.1.x
$ cd 4.1.x/
$ svn update

Building the application : ( $ cd 4.1.x/ )
$ aclocal-1.8 && autoheader && automake-1.8 --add-missing && autoreconf -i
'configure' example : $ export CC=gcc44 CXX=g++44 && ./configure
$ make : No issues.

About gcc / g++ : I tried with version 4.9.2 : Didn't work.
Hence the "export CC=gcc44 CXX=g++44" ( For version 4.4.7 ).
* Ubuntu : export CC=gcc-4.4 CXX=g++-4.4 && ./configure


-

Last edited by knudfl; 05-11-2015 at 11:26 AM.
 
Old 05-07-2019, 11:29 AM   #4
cndaqiang
LQ Newbie
 
Registered: May 2019
Posts: 1

Rep: Reputation: Disabled
Talking Maybe this is a better solution

According to "https://cndaqiang.github.io/2018/09/18/centos7-octopus-4.1.2/"
After
Code:
./configure
You can run the script below
Code:
#!/bin/bash
for i in basic  math   species   ions   grid   poisson   states   xc   hamiltonian   system   scf   td   opt_control   td   sternheimer   main
do
Makefile=src/${i}/Makefile
#.F90.o
hang=$(grep -n "^.F90.o:"  $Makefile | awk '{printf "%d\n",$1}' )
hang=$(echo -e "$hang+4"|bc)
sed -i "${hang}i CNQsed -i '5,41d' \$\*_oct.f90" $Makefile
sed -i "${hang}s/CNQ/\t/g" $Makefile
#.F90_oct.f90
hang=$(grep -n .F90_oct.f90 $Makefile | awk '{printf "%d\n",$1}' )
hang=$(echo -e "$hang+4"|bc)
sed -i "${hang}i CNQsed -i '5,41d' \$\*_oct.f90" $Makefile
sed -i "${hang}s/CNQ/\t/g" $Makefile

done
then
Code:
make
 
  


Reply

Tags
glibc, make, octopus



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Invalid character in name at (1) /usr/include/stdc-predef.h:2.3: Sefid par Ubuntu 1 05-11-2015 11:12 AM
please difference between /usr/include & /usr/local/include baxzius Linux - Software 2 07-09-2010 05:19 AM
Differences between /usr/include/* and linux/include/* simopal6 Linux - General 2 08-26-2007 03:41 AM
changing include directories - /usr/local/include quep_fly Linux - Newbie 6 08-12-2007 04:36 PM
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration