[Bug bootstrap/57028] [4.9 regression] Fortran bootstrap fails due to missing zlib.h

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Thu Apr 25 09:16:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57028

--- Comment #5 from Mikael Pettersson <mikpe at it dot uu.se> 2013-04-25 09:16:12 UTC ---
(In reply to comment #4)
> Patch at http://gcc.gnu.org/ml/gcc-patches/2013-04/msg01464.html .

The patch doesn't work.  With 4.9-20130421 + the patch I get:

/tmp/objdir/./prev-gcc/xg++ -B/tmp/objdir/./prev-gcc/
-B/tmp/install49/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/tmp/gcc-4.9-20130421/libstdc++-v3/libsupc++
-L/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/tmp/objdir/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c 
-DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror   -DHAVE_CONFIG_H -I.
-Ifortran -I/tmp/gcc-4.9-20130421/gcc -I/tmp/gcc-4.9-20130421/gcc/fortran
-I/tmp/gcc-4.9-20130421/gcc/../include
-I/tmp/gcc-4.9-20130421/gcc/../libcpp/include
-I/home/mikpe/pkgs/linux-x86_64/gmp-5.1.1/include
-I/home/mikpe/pkgs/linux-x86_64/mpfr-3.1.2/include
-I/home/mikpe/pkgs/linux-x86_64/mpc-1.0.1/include 
-I/tmp/gcc-4.9-20130421/gcc/../libdecnumber
-I/tmp/gcc-4.9-20130421/gcc/../libdecnumber/bid -I../libdecnumber
-I/tmp/gcc-4.9-20130421/gcc/../libbacktrace   
/tmp/gcc-4.9-20130421/gcc/fortran/module.c -o fortran/module.o
/tmp/gcc-4.9-20130421/gcc/fortran/module.c:78:18: fatal error: zlib.h: No such
file or directory
 #include <zlib.h>

Note the absence of any -I directive to pick up the internal zlib.  Zlib was
built however, and e.g. lto-compress managed to pick it up:

/tmp/objdir/./prev-gcc/xg++ -B/tmp/objdir/./prev-gcc/
...-I/tmp/gcc-4.9-20130421/gcc/../zlib ...
/tmp/gcc-4.9-20130421/gcc/lto-compress.c -o lto-compress.o



More information about the Gcc-bugs mailing list