Error during Installation of DALTON 2013.2 on fedora
-
- Posts: 7
- Joined: 16 Apr 2014, 20:38
- First name(s): Ranga
- Last name(s): Subramanian
- Affiliation: iit
- Country: India
Error during Installation of DALTON 2013.2 on fedora
[ 4%] Building C object CMakeFiles/dalton.dir/DALTON/cc/crayio.c.o
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘PrintFileStats’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:3: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:10: error: ‘stdout’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:10: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:3: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:3: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:11: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘wopen_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:266:5: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:266:13: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:285:5: warning: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:285:12: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘getwa_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:329:12: error: ‘stdout’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:330:5: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:330:13: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘putwa_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:409:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:409:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
make[2]: *** [CMakeFiles/dalton.dir/DALTON/cc/crayio.c.o] Error 1
make[1]: *** [CMakeFiles/dalton.dir/all] Error 2
make: *** [all] Error 2
I am simply using basic commands, ./setup followed by cd build followed by make.
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘PrintFileStats’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:3: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:10: error: ‘stdout’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:192:10: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:3: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:3: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:193:11: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘wopen_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:266:5: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:266:13: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:285:5: warning: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:285:12: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘getwa_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:329:12: error: ‘stdout’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:330:5: warning: incompatible implicit declaration of built-in function ‘fprintf’ [enabled by default]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:330:13: error: ‘stderr’ undeclared (first use in this function)
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c: In function ‘putwa_’:
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:409:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
/usr/local/DALTON-2013.2-Source/DALTON/cc/crayio.c:409:5: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
make[2]: *** [CMakeFiles/dalton.dir/DALTON/cc/crayio.c.o] Error 1
make[1]: *** [CMakeFiles/dalton.dir/all] Error 2
make: *** [all] Error 2
I am simply using basic commands, ./setup followed by cd build followed by make.
-
- Posts: 1210
- Joined: 26 Aug 2013, 13:22
- First name(s): Radovan
- Last name(s): Bast
- Affiliation: none
- Country: Germany
Re: Error during Installation of DALTON 2013.2 on fedora
first please try this:
if you see nothing, you probably need this:
Code: Select all
man stdio.h
Code: Select all
sudo yum install glibc-headers
-
- Posts: 7
- Joined: 16 Apr 2014, 20:38
- First name(s): Ranga
- Last name(s): Subramanian
- Affiliation: iit
- Country: India
Re: Error during Installation of DALTON 2013.2 on fedora
already tried, stdio.h is present
-
- Posts: 4
- Joined: 07 Apr 2014, 10:28
- First name(s): Anton
- Last name(s): Simakov
- Affiliation: CTCC, UiO
- Country: Russian Federation
Re: Error during Installation of DALTON 2013.2 on fedora
If stdio.h is present, but compiler complains about implicit declaration of fflush, fprintf, etc., then your compiler setup is broken.
First try to compile some simple C program like the following
If compilation fails, the compiler setup is broken, so the problem has nothing to do with DALTON.
P.S. From my personal experience I suggest that you try to avoid Fedora on a working machine. At least do not use the latest release if it is not few weeks old. Fedora is great for those who want to experience the bleeding edge, but might be buggy as hell right after a new release.
First try to compile some simple C program like the following
Code: Select all
#include <stdio.h>
int main(int argc, const char* argv[])
{
printf("Hello, World!\n");
return 0;
}
P.S. From my personal experience I suggest that you try to avoid Fedora on a working machine. At least do not use the latest release if it is not few weeks old. Fedora is great for those who want to experience the bleeding edge, but might be buggy as hell right after a new release.
-
- Posts: 7
- Joined: 16 Apr 2014, 20:38
- First name(s): Ranga
- Last name(s): Subramanian
- Affiliation: iit
- Country: India
Re: Error during Installation of DALTON 2013.2 on fedora
there is no problem with compiling the hello word c program. I am using ver 18 of Fedora (not the latest) and version of c (gcc) and c++(g++) (as listed by ./setup command is given below)
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
It is interesting that helloworld works with gcc but not with g++ or c++ compiler. Does crayio.c specifically require cxx compiler? or c compiler is fine? working on getting the c++ compiler fixed.
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
It is interesting that helloworld works with gcc but not with g++ or c++ compiler. Does crayio.c specifically require cxx compiler? or c compiler is fine? working on getting the c++ compiler fixed.
-
- Posts: 1210
- Joined: 26 Aug 2013, 13:22
- First name(s): Radovan
- Last name(s): Bast
- Affiliation: none
- Country: Germany
Re: Error during Installation of DALTON 2013.2 on fedora
dear Ranga,
C compiler is fine. only external/xcfun requires a C++ compiler.
in other words all .c files only need a C compiler.
you should perhaps specify the compilers explicitly:
./setup --fc=gfortran --cc=gcc --cxx=g++
it is indeed strange that your g++ does not manage to compile the hello world.
good luck,
radovan
C compiler is fine. only external/xcfun requires a C++ compiler.
in other words all .c files only need a C compiler.
you should perhaps specify the compilers explicitly:
./setup --fc=gfortran --cc=gcc --cxx=g++
it is indeed strange that your g++ does not manage to compile the hello world.
good luck,
radovan
-
- Posts: 4
- Joined: 07 Apr 2014, 10:28
- First name(s): Anton
- Last name(s): Simakov
- Affiliation: CTCC, UiO
- Country: Russian Federation
Re: Error during Installation of DALTON 2013.2 on fedora
crayio.c should be compiled with gcc (C compiler), not with g++ (C++ compiler), because it is C source file, not C++.
In addition to
CMake should also output the actual command for each and every compiler below.
Something like this
Could you confirm that C compiler is indeed gcc?
In addition to
Code: Select all
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
Something like this
Code: Select all
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-
- Posts: 7
- Joined: 16 Apr 2014, 20:38
- First name(s): Ranga
- Last name(s): Subramanian
- Affiliation: iit
- Country: India
Re: Error during Installation of DALTON 2013.2 on fedora
output of setup on the screen.
-- The Fortran compiler identification is GNU
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/g++
-- Check for working CXX compiler: /usr/lib/ccache/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_UNDERSTANDS_FORTRAN03
-- Performing Test COMPILER_UNDERSTANDS_FORTRAN03 - Success
-- Math lib search order is MKL;ESSL;ATLAS;ACML;SYSTEM_NATIVE
-- You can select a specific type by defining for instance -D BLAS_TYPE=ATLAS or -D LAPACK_TYPE=ACML
-- or by redefining MATH_LIB_SEARCH_ORDER
-- Found BLAS: ATLAS (/lib/atlas/libf77blas.so;/lib/atlas/libcblas.so;/lib/atlas/libatlas.so)
-- Found LAPACK: ATLAS (/lib/atlas/libatlas.so;/lib/atlas/liblapack.so)
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/DALTON-2013.2-Source/build
configure step is done
now you need to compile the sources:
$ cd build
$ make
It seems that gcc and g++ works.
I have already tried to reinstall gcc & g++ compiler but it did not help
-- The Fortran compiler identification is GNU
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/g++
-- Check for working CXX compiler: /usr/lib/ccache/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_UNDERSTANDS_FORTRAN03
-- Performing Test COMPILER_UNDERSTANDS_FORTRAN03 - Success
-- Math lib search order is MKL;ESSL;ATLAS;ACML;SYSTEM_NATIVE
-- You can select a specific type by defining for instance -D BLAS_TYPE=ATLAS or -D LAPACK_TYPE=ACML
-- or by redefining MATH_LIB_SEARCH_ORDER
-- Found BLAS: ATLAS (/lib/atlas/libf77blas.so;/lib/atlas/libcblas.so;/lib/atlas/libatlas.so)
-- Found LAPACK: ATLAS (/lib/atlas/libatlas.so;/lib/atlas/liblapack.so)
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/DALTON-2013.2-Source/build
configure step is done
now you need to compile the sources:
$ cd build
$ make
It seems that gcc and g++ works.
I have already tried to reinstall gcc & g++ compiler but it did not help
-
- Posts: 82
- Joined: 27 Aug 2013, 22:05
- First name(s): Janus
- Middle name(s): Juul
- Last name(s): Eriksen
- Affiliation: Institut für Physikalische Chemie, Johannes Gutenberg-Universität Mainz
- Country: Germany
Re: Error during Installation of DALTON 2013.2 on fedora
Do you have /usr/bin/gcc and /usr/bin/g++? I see that you use /usr/bin/gfortran, so you could try and use these instead of /usr/lib/ccache/gcc and /usr/lib/ccache/g++. Something like:
./setup --fc=/usr/bin/gfortran --cc=/usr/bin/gcc --cxx=/usr/bin/g++ (...)
./setup --fc=/usr/bin/gfortran --cc=/usr/bin/gcc --cxx=/usr/bin/g++ (...)
-
- Posts: 4
- Joined: 07 Apr 2014, 10:28
- First name(s): Anton
- Last name(s): Simakov
- Affiliation: CTCC, UiO
- Country: Russian Federation
Re: Error during Installation of DALTON 2013.2 on fedora
If I'm not mistaken, /usr/lib/ccache/gcc and /usr/lib/ccache/g++ are just symlinks to "ccache gcc" and "ccache g++" respectively, so this is unlikely to help.janus wrote:Do you have /usr/bin/gcc and /usr/bin/g++? I see that you use /usr/bin/gfortran, so you could try and use these instead of /usr/lib/ccache/gcc and /usr/lib/ccache/g++.
I still think that compiler setup is broken: gcc does not complain about missing header stdio.h, but it complains about stdout being undeclared. So I suggest first to reinstall GCC compilers and related packages using something like
Code: Select all
sudo yum reinstall ccache gcc gcc-c++ gcc-gfortran glibc-headers
-
- Posts: 7
- Joined: 16 Apr 2014, 20:38
- First name(s): Ranga
- Last name(s): Subramanian
- Affiliation: iit
- Country: India
Re: Error during Installation of DALTON 2013.2 on fedora
Finally, worked the idea from janus ./setup --fc=/usr/bin/gfortran --cc=/usr/bin/gcc --cxx=/usr/bin/g++ worked. reinstalling did not do anything as i told in my earlier post.
Thanks for all the help.
Thanks for all the help.
Who is online
Users browsing this forum: No registered users and 1 guest