Brooks Moses wrote: > > Í just tried to build gcc-4.1.2 for cygwin... but failed. My old way > > of test building does not seem to work anymore for me. > [...] > > grep '^#' < kinds.h > kinds.inc > > /bin/sh: kinds.h: No such file or directory > [...] > > Any ideas of what might be going wrong? > > A quick bit of google-searching on "site:gcc.gnu.org kinds.h" turns up > an email thread on the fortran@ list that refers to PR26893. See: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26893 > > In short, from what I could tell from a quick scan of that PR, the > problem is that you've got LD_LIBRARY_PATH set in such a way that it's > not including the GMP header files. > > If you're using the standard Cygwin-package installation of GMP, I'd > guess this is because you haven't installed the "development" GMP > package that includes the header files; since Cygwin puts that into a > separate package, you need to install both. (MPFR is the same way.)
I don't think that applies in the case of Cygwin, since Windows does not know anything about LD_LIBRARY_PATH. (Cygwin emulates it for dlopen() but I don't think that's relevant here.) I can say that I was able to successfully build and test the 4.1.2 20070129 (prerelease) version under Cygwin using the Cygwin-packaged mpfr (2.2.1) and gmp (4.2.1) without any setting of LD_LIBRARY_PATH and it passed all tests except for gfortran.dg/secnds.f which is a known bug. So unless the released 4.1.2 tarball differs from the RC1 tarball in this area, it's something else and not a gmp/mpfr/libgfortran problem. In order to debug this, poster should run the faulting series of commands and see what the errors are, i.e.: for k in 4 8 10 16; do echo " real (kind=$k) :: x" > tmp$$.f90 echo " end" >> tmp$$.f90 /usr/local/src/branch/objdir/./gcc/gfortran -B/usr/local/src/branch/objdir/./gcc/ -B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr/local/i686-pc-cygwin/include -isystem /usr/local/i686-pc-cygwin/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring -c tmp$$.f90 done Brian