This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Failure building GFortran (Cygwin)
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "Angelo Graziosi" <angelo dot graziosi at alice dot it>
- Cc: fortran at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Sat, 28 Jun 2008 22:08:23 +0200
- Subject: Re: Failure building GFortran (Cygwin)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7/sVPKLEg+bpsOA/mGPWapRKamFeoD3dEyOevFI4UiI=; b=GZdJUyPAZVZ4PXbsQ7zBDG4NniGBROrd5dZz8u7ZbN4L3SzXo66GGQf81SOePfhd7L xG0XVR7qkjJeOzsCAsp6dG7jSiBdDasndLwRCEE28QiaXNoeH6lNyzdstG/9ZlsUIez2 mYU2nEn9Vljznos4GYi+cg7Z0fTb1f3Ywym94=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=K47GK1H0MhGc6LwjDQlYHk2wCWozhFvo8z8sOhBnfYdkRHHUbGR3yX3wWLV5PRKGg6 fZSTUBR92EkoH6ovs1qm5bLnU0lzS0DE4KMPdQuEJm+8UyMXiLuV76yweC07MQmZeplK /eKPeD9dhH5f8txKD6lZYDAu15uiq6nL2SKmo=
- References: <486629E7.7030003@alice.it>
Angelo,
I have seen this too - I thought that it was due to the VERY strange
way in which I was doing the build:-)
Andd 'const' to strsignal.c:408 and the build will go through.
Paul
On Sat, Jun 28, 2008 at 2:09 PM, Angelo Graziosi
<angelo.graziosi@alice.it> wrote:
> Last week I flagged some problems with 4.4-20080620 snapshot [1], now the
> current snapshot fails in a different manner:
>
> [...]
> make[2]: Entering directory `/work/build'
> make[3]: Entering directory `/work/build'
> rm -f stage_current
> make[3]: Leaving directory `/work/build'
> Comparing stages 2 and 3
> warning: ./cc1-checksum.o differs
> Comparison successful.
> if false; then \
> rm -rf stage2-*; \
> echo timestamp > stage2-lean; \
> fi
> [...]
> make[4]: Leaving directory `/work/build/i686-pc-cygwin/libgfortran'
> make[3]: Leaving directory `/work/build/i686-pc-cygwin/libgfortran'
> make[2]: Leaving directory `/work/build/i686-pc-cygwin/libgfortran'
> Checking multilib configuration for libiberty...
> mkdir -p -- i686-pc-cygwin/libiberty
> Configuring in i686-pc-cygwin/libiberty
> [...]
> /work/build/./gcc/xgcc -B/work/build/./gcc/
> -B/usr/local/gfortran/i686-pc-cygwin/bin/
> -B/usr/local/gfortran/i686-pc-cygwin/lib/ -isystem
> /usr/local/gfortran/i686-pc-cygwin/include -isystem
> /usr/local/gfortran/i686-pc-cygwin/sys-include -c -DHAVE_CONFIG_H -g -O2
> -I. -I/work/gcc/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
> -Wstrict-prototypes -pedantic /work/gcc/libiberty/strerror.c -o strerror.o
> if [ x"" != x ]; then \
> /work/build/./gcc/xgcc -B/work/build/./gcc/
> -B/usr/local/gfortran/i686-pc-cygwin/bin/
> -B/usr/local/gfortran/i686-pc-cygwin/lib/ -isystem
> /usr/local/gfortran/i686-pc-cygwin/include -isystem
> /usr/local/gfortran/i686-pc-cygwin/sys-include -c -DHAVE_CONFIG_H -g -O2
> -I. -I/work/gcc/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
> -Wstrict-prototypes -pedantic /work/gcc/libiberty/strsignal.c -o
> pic/strsignal.o; \
> else true; fi
> /work/build/./gcc/xgcc -B/work/build/./gcc/
> -B/usr/local/gfortran/i686-pc-cygwin/bin/
> -B/usr/local/gfortran/i686-pc-cygwin/lib/ -isystem
> /usr/local/gfortran/i686-pc-cygwin/include -isystem
> /usr/local/gfortran/i686-pc-cygwin/sys-include -c -DHAVE_CONFIG_H -g -O2
> -I. -I/work/gcc/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
> -Wstrict-prototypes -pedantic /work/gcc/libiberty/strsignal.c -o strsignal.o
> /work/gcc/libiberty/strsignal.c:408: error: conflicting types for
> 'strsignal'
> /usr/include/string.h:78: error: previous declaration of 'strsignal' was
> here
> make[2]: *** [strsignal.o] Error 1
> make[2]: Leaving directory `/work/build/i686-pc-cygwin/libiberty'
> make[1]: *** [all-target-libiberty] Error 2
> make[1]: Leaving directory `/work/build'
> make: *** [all] Error 2
>
> The above happens on Cygwin, using gcc-core, gcc-fortran tarballs and
> configuring
>
> ${gcc_dir}/configure --prefix="${prefix_dir}" \
> --exec-prefix="${eprefix_dir}" \
> --sysconfdir="${sysconf_dir}" \
> --libdir="${lib_dir}" \
> --libexecdir="${libexec_dir}" \
> --mandir="${man_dir}" \
> --infodir="${info_dir}" \
> --enable-languages=c,fortran \
> --enable-bootstrap \
> --enable-decimal-float=bid \
> --enable-libgomp \
> --enable-threads \
> --enable-sjlj-exceptions \
> --enable-version-specific-runtime-libs \
> --enable-nls \
> --enable-checking=release \
> --disable-fixed-point \
> --disable-libmudflap \
> --disable-shared \
> --disable-win32-registry \
> --with-system-zlib \
> --without-included-gettext \
> --without-x
>
>
>
> Cheers,
> Angelo.
>
> ---
> [1] http://gcc.gnu.org/ml/fortran/2008-06/msg00250.html
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy