This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling gfortran


Well, it turns out that there was a path issue with GMP that makes GCC read one GMP header, and read another library to cause mk-kinds- h.sh to fail due to the following problems according to the MPFR website at this website

http://www.mpfr.org/faq.html (3. I get undefined reference to __gmp_get_memory_functions).

Redefining C_INCLUDE_PATH, LD_LIBRARY_PATH, and LIBRARY_PATH solved _that_ problem.

Unfortunately I STILL can't compile gfortran. Why does this have to be so difficult on an Intel based computer? Very frustrating.

On Mar 7, 2007, at 4:59 PM, Albion Baucom wrote:

Can anyone suggest how I can get gfortran to compile as part of gcc 4.1.2?

I am trying to compile on a 64-bit Xeon based dual processor system running CentOS 4.4 running kernel version 2.6.9-42.0.2.ELsmp x86_64. My gcc configuration options are

./configure --prefix=/home2/baucom/Applications/gcc --enable- languages=c,c++,fortran --with-mpfr=/home2/baucom/Applications/mpfr --with-gmp=/home2/baucom/Applications/gmp

I am experiencing a problem with a certain "kinds.h" file. The error message is pasted below. I have done web searches on this and come across suggestions, none of which worked. Specifically I have made certain that gmp is specified at the command line when I configure, along with mpfr and set my LD_LIBRARY_PATH to point to the libraries, and even tried compiling gmp for 32-bit with the config option ABI=32.

Any ideas?

Thanks

Albion

make[2]: Entering directory `/mnt/home2/baucom/src/gcc-4.1.2/x86_64- unknown-linux-gnu/libgfortran'
/bin/sh ../.././libgfortran/mk-kinds-h.sh '/home2/baucom/src/ gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/gfortran -B/home2/ baucom/src/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/ -B/home2/ baucom/Applications/gcc/x86_64-unknown-linux-gnu/bin/ -B/home2/ baucom/Applications/gcc/x86_64-unknown-linux-gnu/lib/ -isystem / home2/baucom/Applications/gcc/x86_64-unknown-linux-gnu/include - isystem /home2/baucom/Applications/gcc/x86_64-unknown-linux-gnu/sys- include -I . -Wall -fno-repack-arrays -fno-underscoring ' > kinds.h || rm kinds.h
../.././libgfortran/mk-kinds-h.sh: Unknown type
grep '^#' < kinds.h > kinds.inc
/bin/sh: kinds.h: No such file or directory
make[2]: *** [kinds.inc] Error 1
make[2]: Leaving directory `/mnt/home2/baucom/src/gcc-4.1.2/x86_64- unknown-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/mnt/home2/baucom/src/gcc-4.1.2'
make: *** [all] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]