In an empty directory: $ ../gcc-4.0/configure --prefix=$HOME --enable-languages="c,f95" --enable-maintainer-mode ... $ make bootstrap ... make[5]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libmudflap' make[4]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libmudflap' make[3]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libmudflap' make[2]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libmudflap' /bin/sh ../gcc-4.0/mkinstalldirs i686-pc-linux-gnu/libgfortran ; \ rm -f i686-pc-linux-gnu/libgfortran/Makefile || : ; \ cp multilib.out i686-pc-linux-gnu/libgfortran/multilib.out mkdir -p -- i686-pc-linux-gnu/libgfortran Configuring in i686-pc-linux-gnu/libgfortran configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for i686-pc-linux-gnu-gcc... /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem/home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include accepts -g... yes checking for /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include option to accept ANSI C... none needed checking for i686-pc-linux-gnu-as... as checking for i686-pc-linux-gnu-ar... ar checking for i686-pc-linux-gnu-ranlib... ranlib checking whether make sets $(MAKE)... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c checking for ld used by GCC... ld checking if the linker (ld) is GNU ld... yes checking for ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for i686-pc-linux-gnu-ranlib... (cached) ranlib checking for i686-pc-linux-gnu-strip... no checking for strip... strip updating cache ./config.cache loading cache ./config.cache within ltconfig checking whether -lc should be explicitly linked in... no checking for objdir... .libs checking for /home/ig25/gcc-4.0-bin/gcc/xgcc option to produce PIC... -fPIC -DPIC checking if /home/ig25/gcc-4.0-bin/gcc/xgcc PIC flag -fPIC -DPIC works... yes checking if /home/ig25/gcc-4.0-bin/gcc/xgcc static flag -static works... yes finding the maximum length of command line arguments... 49153 checking if /home/ig25/gcc-4.0-bin/gcc/xgcc supports -c -o file.o... yes checking if /home/ig25/gcc-4.0-bin/gcc/xgcc supports -fno-rtti -fno-exceptions ... no checking whether the linker (ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking command to parse nm output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes creating libtool updating cache ./config.cache configure: loading cache ./config.cache checking for i686-pc-linux-gnu-gfortran... /home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include checking whether we are using the GNU Fortran compiler... yes checking whether /home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include accepts -g... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking how to run the C preprocessor... /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for off_t... yes checking for ANSI C header files... (cached) yes checking for stdlib.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for string.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking for unistd.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking sys/params.h usability... no checking sys/params.h presence... no checking for sys/params.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking complex.h usability... yes checking complex.h presence... yes checking for complex.h... yes checking for struct stat.st_blksize... yes checking for struct stat.st_blocks... yes checking for struct stat.st_rdev... yes checking for csin in -lm... yes checking for getrusage... yes checking for times... yes checking for mkstemp... yes checking for strtof... yes checking for snprintf... yes checking for getgid in -lc... yes checking for getpid in -lc... yes checking for getuid in -lc... yes checking for acosf in -lm... yes checking for asinf in -lm... yes checking for atan2f in -lm... yes checking for atanf in -lm... yes checking for ceilf in -lm... yes checking for copysignf in -lm... yes checking for cosf in -lm... yes checking for coshf in -lm... yes checking for expf in -lm... yes checking for fabsf in -lm... yes checking for floorf in -lm... yes checking for frexpf in -lm... yes checking for hypotf in -lm... yes checking for logf in -lm... yes checking for log10f in -lm... yes checking for nextafter in -lm... yes checking for nextafterf in -lm... yes checking for powf in -lm... yes checking for round in -lm... yes checking for roundf in -lm... yes checking for scalbnf in -lm... yes checking for sinf in -lm... yes checking for sinhf in -lm... yes checking for sqrtf in -lm... yes checking for tanf in -lm... yes checking for tanhf in -lm... yes checking for erf in -lm... yes checking for erfc in -lm... yes checking for erfcf in -lm... yes checking for erff in -lm... yes checking for j0 in -lm... yes checking for j0f in -lm... yes checking for j1 in -lm... yes checking for j1f in -lm... yes checking for jn in -lm... yes checking for jnf in -lm... yes checking for y0 in -lm... yes checking for y0f in -lm... yes checking for y1 in -lm... yes checking for y1f in -lm... yes checking for yn in -lm... yes checking for ynf in -lm... yes checking for finite in -lm... yes checking whether time.h and sys/time.h may both be included... yes checking for gettimeofday... yes checking for struct timezone... yes checking whether gettimeofday can accept two arguments... yes checking whether the target is ILP32... yes checking whether the target supports hidden visibility... yes checking whether the target supports dllexport... no checking whether the target supports symbol aliases... yes updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing default-1 commands Adding multilib support to Makefile in ../../../gcc-4.0/libgfortran multidirs= with_multisubdir= make[2]: Entering directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' cd ../../../gcc-4.0/libgfortran && /bin/sh /home/ig25/gcc-4.0/missing --run aclocal-1.9 -I ../config /home/ig25/gcc-4.0/missing: line 52: aclocal-1.9: command not found WARNING: `aclocal-1.9' is missing on your system. You should only need it if you modified `acinclude.m4' or `configure.ac'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd ../../../gcc-4.0/libgfortran && /bin/sh /home/ig25/gcc-4.0/missing --run automake-1.9 --foreign --ignore-deps /home/ig25/gcc-4.0/missing: line 52: automake-1.9: command not found WARNING: `automake-1.9' is missing on your system. You should only need it if you modified `Makefile.am', `acinclude.m4' or `configure.ac'. You might want to install the `Automake' and `Perl' packages. Grab them from any GNU archive site. cd ../../../gcc-4.0/libgfortran && /bin/sh /home/ig25/gcc-4.0/missing --run autoconf /bin/sh ./config.status --recheck running /bin/sh /home/ig25/gcc-4.0/libgfortran/configure --cache-file=./config.cache --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --enable-multilib --prefix=/home/ig25 --enable-maintainer-mode --with-gcc-version-trigger=/home/ig25/gcc-4.0/gcc/version.c --enable-languages=c,f95 --program-transform-name=s,y,y, --srcdir=../../../gcc-4.0/libgfortran --with-target-subdir=i686-pc-linux-gnu CPPFLAGS= LDFLAGS= build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu target_alias=i686-pc-linux-gnu --no-create --no-recursion configure: loading cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking build system type... (cached) i686-pc-linux-gnu checking host system type... (cached) i686-pc-linux-gnu checking target system type... (cached) i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... (cached) gawk checking whether make sets $(MAKE)... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for i686-pc-linux-gnu-gcc... (cached) /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem/home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include accepts -g... (cached) yes checking for /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include option to accept ANSI C... (cached) none needed checking for i686-pc-linux-gnu-as... (cached) as checking for i686-pc-linux-gnu-ar... (cached) ar checking for i686-pc-linux-gnu-ranlib... (cached) ranlib checking whether make sets $(MAKE)... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c checking for ld used by GCC... (cached) ld checking if the linker (ld) is GNU ld... (cached) yes checking for ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) nm checking whether ln -s works... yes checking how to recognise dependant libraries... (cached) pass_all checking for i686-pc-linux-gnu-ranlib... (cached) ranlib checking for i686-pc-linux-gnu-strip... no checking for strip... (cached) strip loading cache ./config.cache within ltconfig checking whether -lc should be explicitly linked in... (cached) no checking for objdir... .libs checking for /home/ig25/gcc-4.0-bin/gcc/xgcc option to produce PIC... -fPIC -DPIC checking if /home/ig25/gcc-4.0-bin/gcc/xgcc PIC flag -fPIC -DPIC works... (cached) yes checking if /home/ig25/gcc-4.0-bin/gcc/xgcc static flag -static works... (cached) yes finding the maximum length of command line arguments... (cached) 49153 checking if /home/ig25/gcc-4.0-bin/gcc/xgcc supports -c -o file.o... (cached) yes checking if /home/ig25/gcc-4.0-bin/gcc/xgcc supports -fno-rtti -fno-exceptions ... no checking whether the linker (ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking command to parse nm output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes creating libtool updating cache ./config.cache configure: loading cache ./config.cache checking for i686-pc-linux-gnu-gfortran... (cached) /home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include checking whether we are using the GNU Fortran compiler... (cached) yes checking whether /home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include accepts -g... (cached) yes checking for special C compiler options needed for large files... (cached) no checking for _FILE_OFFSET_BITS value needed for large files... (cached) 64 checking for _LARGE_FILES value needed for large files... (cached) no checking for off_t... (cached) yes checking for ANSI C header files... (cached) yes checking for stdlib.h... (cached) yes checking for stdio.h... (cached) yes checking for string.h... (cached) yes checking for stddef.h... (cached) yes checking for math.h... (cached) yes checking for unistd.h... (cached) yes checking for time.h... (cached) yes checking for sys/params.h... (cached) no checking for sys/time.h... (cached) yes checking for sys/times.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/mman.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for ieeefp.h... (cached) no checking for complex.h... (cached) yes checking for struct stat.st_blksize... (cached) yes checking for struct stat.st_blocks... (cached) yes checking for struct stat.st_rdev... (cached) yes checking for csin in -lm... (cached) yes checking for getrusage... (cached) yes checking for times... (cached) yes checking for mkstemp... (cached) yes checking for strtof... (cached) yes checking for snprintf... (cached) yes checking for getgid in -lc... (cached) yes checking for getpid in -lc... (cached) yes checking for getuid in -lc... (cached) yes checking for acosf in -lm... (cached) yes checking for asinf in -lm... (cached) yes checking for atan2f in -lm... (cached) yes checking for atanf in -lm... (cached) yes checking for ceilf in -lm... (cached) yes checking for copysignf in -lm... (cached) yes checking for cosf in -lm... (cached) yes checking for coshf in -lm... (cached) yes checking for expf in -lm... (cached) yes checking for fabsf in -lm... (cached) yes checking for floorf in -lm... (cached) yes checking for frexpf in -lm... (cached) yes checking for hypotf in -lm... (cached) yes checking for logf in -lm... (cached) yes checking for log10f in -lm... (cached) yes checking for nextafter in -lm... (cached) yes checking for nextafterf in -lm... (cached) yes checking for powf in -lm... (cached) yes checking for round in -lm... (cached) yes checking for roundf in -lm... (cached) yes checking for scalbnf in -lm... (cached) yes checking for sinf in -lm... (cached) yes checking for sinhf in -lm... (cached) yes checking for sqrtf in -lm... (cached) yes checking for tanf in -lm... (cached) yes checking for tanhf in -lm... (cached) yes checking for erf in -lm... (cached) yes checking for erfc in -lm... (cached) yes checking for erfcf in -lm... (cached) yes checking for erff in -lm... (cached) yes checking for j0 in -lm... (cached) yes checking for j0f in -lm... (cached) yes checking for j1 in -lm... (cached) yes checking for j1f in -lm... (cached) yes checking for jn in -lm... (cached) yes checking for jnf in -lm... (cached) yes checking for y0 in -lm... (cached) yes checking for y0f in -lm... (cached) yes checking for y1 in -lm... (cached) yes checking for y1f in -lm... (cached) yes checking for yn in -lm... (cached) yes checking for ynf in -lm... (cached) yes checking for finite in -lm... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for gettimeofday... (cached) yes checking for struct timezone... (cached) yes checking whether gettimeofday can accept two arguments... (cached) yes checking whether the target is ILP32... yes checking whether the target supports hidden visibility... yes checking whether the target supports dllexport... no checking whether the target supports symbol aliases... yes updating cache ./config.cache configure: creating ./config.status /bin/sh ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing default-1 commands Adding multilib support to Makefile in ../../../gcc-4.0/libgfortran multidirs= with_multisubdir= make[2]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' make[2]: Entering directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' /bin/sh ../../../gcc-4.0/libgfortran/mk-sik-inc.sh '/home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include -g -O2 -Wall -fno-repack-arrays -fno-underscoring' > selected_int_kind.inc /bin/sh ../../../gcc-4.0/libgfortran/mk-srk-inc.sh '/home/ig25/gcc-4.0-bin/gcc/gfortran -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include -g -O2 -Wall -fno-repack-arrays -fno-underscoring' > selected_real_kind.inc cd ../../../gcc-4.0/libgfortran && /bin/sh /home/ig25/gcc-4.0/missing --run autoheader rm -f stamp-h1 touch ../../../gcc-4.0/libgfortran/config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-am make[3]: Entering directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' /bin/sh ./libtool --mode=compile /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.0/libgfortran -I. -iquote../../../gcc-4.0/libgfortran/io -std=gnu99 -O2 -g -O2 -c -o environ.lo `test -f 'runtime/environ.c' || echo '../../../gcc-4.0/libgfortran/'`runtime/environ.c mkdir .libs /home/ig25/gcc-4.0-bin/gcc/xgcc -B/home/ig25/gcc-4.0-bin/gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -B/home/ig25/i686-pc-linux-gnu/lib/ -isystem /home/ig25/i686-pc-linux-gnu/include -isystem /home/ig25/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.0/libgfortran -I. -iquote../../../gcc-4.0/libgfortran/io -std=gnu99 -O2 -g -O2 -c ../../../gcc-4.0/libgfortran/runtime/environ.c -fPIC -DPIC -o .libs/environ.o In file included from ../../../gcc-4.0/libgfortran/runtime/environ.c:35: ../../../gcc-4.0/libgfortran/libgfortran.h:63: error: conflicting types for 'int8_t' /usr/include/sys/types.h:191: error: previous declaration of 'int8_t' was here make[3]: *** [environ.lo] Error 1 make[3]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/ig25/gcc-4.0-bin/i686-pc-linux-gnu/libgfortran' make[1]: *** [all-target-libgfortran] Error 2 make[1]: Leaving directory `/home/ig25/gcc-4.0-bin' make: *** [bootstrap] Error 2 This is on a Debian experimental system. I'll try installing automake and rerunning next, then disabling multilib.
'configure --enable-maintainer-mode' should be run in the source directory, and not be used during the build. If I understand correctly.
This has nothing to do with maintainer-mode. See <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00874.html> for a possible fix.
This happens when libgfortran is reconfigured in a directory where it's already built.
Is this true any more on the mainline?
(In reply to comment #4) > Is this true any more on the mainline? Yes, it is.
None seems to be experiencing this bug any more, and I myself tried to trigger it on mainline, with no success. I'm closing it.