Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126082 - [4.1/ICE] gcc-4.1.0 + USE=fortran -> gfortran fails to build on s390
Summary: [4.1/ICE] gcc-4.1.0 + USE=fortran -> gfortran fails to build on s390
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: s390 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 14:40 UTC by Danny van Dyk (RETIRED)
Modified: 2006-05-05 22:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny van Dyk (RETIRED) gentoo-dev 2006-03-13 14:40:37 UTC
Both a straight USE="fortran" and a USE="fortran vanilla nopie" emerge gcc don't
succeed on s390.

Error message is:
make[3]: Entering directory `/var/tmp/portage/gcc-4.1.0/work/build/s390-ibm-linux-gnu/libgfortran'
/bin/sh /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/mk-sik-inc.sh '/var/tmp/portage/gcc-4.1.0/work/build/./gcc/gfortran -B/var/tmp/portage/gcc-4.1.0/work/build/./gcc/ -B/usr/s390-ibm-linux-gnu/bin/ -B/usr/s390-ibm-linux-gnu/lib/ -isystem /usr/s390-ibm-linux-gnu/include -isystem /usr/s390-ibm-linux-gnu/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring ' > selected_int_kind.inc || rm selected_int_kind.inc
/bin/sh /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/mk-srk-inc.sh '/var/tmp/portage/gcc-4.1.0/work/build/./gcc/gfortran -B/var/tmp/portage/gcc-4.1.0/work/build/./gcc/ -B/usr/s390-ibm-linux-gnu/bin/ -B/usr/s390-ibm-linux-gnu/lib/ -isystem /usr/s390-ibm-linux-gnu/include -isystem /usr/s390-ibm-linux-gnu/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring ' > selected_real_kind.inc || rm selected_real_kind.inc
/bin/sh /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/mk-kinds-h.sh '/var/tmp/portage/gcc-4.1.0/work/build/./gcc/gfortran -B/var/tmp/portage/gcc-4.1.0/work/build/./gcc/ -B/usr/s390-ibm-linux-gnu/bin/ -B/usr/s390-ibm-linux-gnu/lib/ -isystem /usr/s390-ibm-linux-gnu/include -isystem /usr/s390-ibm-linux-gnu/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring ' > kinds.h || rm kinds.h
grep '^#' < /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/c99_protos.h > c99_protos.inc
cp /var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libgfortran/config/fpu-glibc.h fpu-target.h
grep '^#' < kinds.h > kinds.inc
/bin/sh: kinds.h: No such file or directory
make[3]: *** [kinds.inc] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build/s390-ibm-linux-gnu/libgfortran'
make[2]: *** [all-target-libgfortran] Error 2
make[2]: *** Waiting for unfinished jobs....

This is a major improvement compared to the failure of gcc-4.0.2 (ICE).
Comment 1 Stefan Knoblich (RETIRED) gentoo-dev 2006-03-17 07:42:09 UTC
same error on x86 (during stage3 build with catalyst2)
Comment 2 SpanKY gentoo-dev 2006-04-28 22:40:59 UTC
gfortran is being run by the mk-kinds-h.sh and in there it is ICE'ing (the error message is just hid by the script as stderr is piped to /dev/null)
Comment 3 David Gurvich 2006-05-05 21:08:53 UTC
Can confirm the same behaviour on ppc.  gfortran with gcc-4.1.0 compiled fine with gcc-3.4.5, but then failed with gcc-4.1.0.

error message
----------------------------------------
creating libgfortran.la
(cd .libs && rm -f libgfortran.la && ln -s ../libgfortran.la libgfortran.la)
make[4]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build/powerpc-unknown-linux-gnu/libgfortran'
make[3]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build/powerpc-unknown-linux-gnu/libgfortran'
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0/work/build'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.1.0 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  ebuild.sh, line 1237:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1466:   Called gcc_do_make
  toolchain.eclass, line 1340:   Called die

!!! emake failed with bootstrap-lean
---------------------------------------------------------------
emerge --info
---------------------------------------------------------------
Portage 2.1_pre9-r5 (default-linux/ppc/2005.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.16-gentoo-r5 ppc)
=================================================================
System uname: 2.6.16-gentoo-r5 ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LC_ALL="en_US.UTF-8"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/java-experimental /usr/local/overlays/migration-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aac alsa altivec apache2 arts berkdb bidi bitmap-fonts bonobo bzip2 cairo cdda cdr cjk cli crypt cups curl dbus doc dri dvd dvdr dvdread eds emboss esd fbcon ffmpeg flac foomaticdb fortran gcj gd gdbm ggi gif gnome gnutls gpm gs gstreamer gtk gtk2 guile hal howl imagemagick imlib ipv6 isdnlog jack java javascript jikes jpeg jpeg2k junit kde lcms libcaca libwww live mad mikmod mng motif mozilla mp3 mpeg multislot ncurses nls nntp nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png ppds pppd python qt readline reflection samba scanner sdl session slang smp snmp spell spl ssl stream t1lib tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf x264 xcomposite xine xml xml2 xmms xorg xosd xprint xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en_US userland_GNU video_cards_ati video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS
Comment 4 SpanKY gentoo-dev 2006-05-05 21:19:20 UTC
file a new bug

this bug is about the fact that mpfr fails on s390
Comment 6 SpanKY gentoo-dev 2006-05-05 22:36:39 UTC
ok, with fixed mpfr now in portage, gcc-4.1.0 merged fine with fortan support