[uClibc 0001164]: libgfortran build crashes with uClibc and gcc 4.2

bugs at busybox.net bugs at busybox.net
Thu Jan 25 04:22:51 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1164 
====================================================================== 
Reported By:                linux_junkie
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1164
Category:                   Shared Library Support
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             01-17-2007 22:32 PST
Last Modified:              01-24-2007 20:22 PST
====================================================================== 
Summary:                    libgfortran build crashes with uClibc and gcc 4.2
Description: 
When building with buildroot and the latest gcc snapshot the build
crashes:


Checking multilib configuration for libgfortran...
make[3]: Entering directory
`/root/buildroot/toolchain_build_i686/gcc-4.2-final/i686-linux-uclibc/libgfortran'
/bin/sh
/root/buildroot/toolchain_build_i686/gcc-4.2-20070110/libgfortran/mk-kinds-h.sh
'/root/buildroot/toolchain_build_i686/gcc-4.2-final/./gcc/gfortran
-B/root/buildroot/toolchain_build_i686/gcc-4.2-final/./gcc/
-B/root/buildroot/build_i686/staging_dir/i686-linux-uclibc/bin/
-B/root/buildroot/build_i686/staging_dir/i686-linux-uclibc/lib/ -isystem
/root/buildroot/build_i686/staging_dir/i686-linux-uclibc/include -isystem
/root/buildroot/build_i686/staging_dir/i686-linux-uclibc/sys-include -I .
-Wall -fno-repack-arrays -fno-underscoring ' > kinds.h || rm kinds.h
/root/buildroot/toolchain_build_i686/gcc-4.2-20070110/libgfortran/mk-kinds-h.sh:
Unknown type
grep '^#' < kinds.h > kinds.inc
/bin/sh: kinds.h: No such file or directory
make[3]: *** [kinds.inc] Error 1
make[3]: Leaving directory
`/root/buildroot/toolchain_build_i686/gcc-4.2-final/i686-linux-uclibc/libgfortran'
make[2]: *** [all-target-libgfortran] Error 2
make[2]: Leaving directory
`/root/buildroot/toolchain_build_i686/gcc-4.2-final'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/buildroot/toolchain_build_i686/gcc-4.2-final'
make: *** [/root/buildroot/toolchain_build_i686/gcc-4.2-final/.compiled]
Error 2
[root at builder buildroot]# 

Is this a problem with libgfortran?? I found this thread:
http://gcc.gnu.org/ml/gcc-bugs/2006-03/msg00484.html
and it seems to indicates this is a problem with GMP and MPFR??
Is this so and how do I fix it?
====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 01-18-07 14:10  
---------------------------------------------------------------------- 
I'm aware of this glitch. Give me some time to get my gmp/mpfr
build-changes merged back. Meanwhile, please do these two things:

1)
Attach you toplevel .config and the uclibc.config you use, specify what
compiler/binutils/gmp/mpfr version you have on your build-host.

2)
Use the most current daily snapshot (or a current checkout of the
gcc-4_2-branch) of gcc-4.2 and let me know what *exact* version you were
experiencing this error with.

As a quick stopper, read the thread at:
http://gcc.gnu.org/ml/fortran/2006-10/msg00136.html
and eventually apply that dirty hack to bail out if the kinds were
mis-detected.

Tracking down an exact setup on where we can reproduce this failure is
very much appreciated!

Thanks and kind regards, 

---------------------------------------------------------------------- 
 linux_junkie - 01-19-07 14:37  
---------------------------------------------------------------------- 
My build-host is just the generic buildroot image from the website. I am
trying to use this to build a more updated development system that I can
boot too. The generic buildroot image is for the old 2.4 kernel. I have
uploaded the bildroot .config file and the uClibc .config file.

The versions building are:

binutils-2.17.50.0.8.tar.bz2
uClibc-snapshot.tar.bz2 (0.9.29)
gcc-4.2-20070110.tar.bz2
gmp-4.2.1.tar.bz2
mpfr-2.2.1.tar.bz2
linux-2.6.19.2.tar.bz2 

---------------------------------------------------------------------- 
 linux_junkie - 01-24-07 20:22  
---------------------------------------------------------------------- 
Just wanted to note I was able to build sucessfully with out the fortran
compiler checked off. This means the problem may be within the fortran
package. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-17-07 22:32  linux_junkie   New Issue                                    
01-17-07 22:32  linux_junkie   Status                   new => assigned     
01-17-07 22:32  linux_junkie   Assigned To               => uClibc          
01-17-07 22:35  linux_junkie   Issue Monitored: linux_junkie                    
01-18-07 14:10  bernhardf      Note Added: 0001992                          
01-19-07 14:25  linux_junkie   File Added: buildroot_config                    
01-19-07 14:26  linux_junkie   File Added: uclibc_config                    
01-19-07 14:37  linux_junkie   Note Added: 0002009                          
01-24-07 20:22  linux_junkie   Note Added: 0002043                          
======================================================================




More information about the uClibc-cvs mailing list