Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252238 - sys-devel/gcc-4.3.2 build fails at gfortran
Summary: sys-devel/gcc-4.3.2 build fails at gfortran
Status: RESOLVED DUPLICATE of bug 236762
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 03:48 UTC by Wang, Baojun
Modified: 2008-12-29 09:42 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/sys-devel/gcc-4.3.2/temp/environment (environment,183.10 KB, text/plain)
2008-12-23 03:51 UTC, Wang, Baojun
Details
/var/tmp/portage/sys-devel/gcc-4.3.2/temp/build.log, bziped. (build.log.bz2,146.17 KB, text/plain)
2008-12-23 03:51 UTC, Wang, Baojun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wang, Baojun 2008-12-23 03:48:35 UTC
latest gcc 4.3.2 failed to build:

[ebuild   R   ] sys-devel/gcc-4.3.2  USE="fortran gtk mudflap (multilib) nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj (-hardened) -ip28 -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -nopie% -objc -objc++ -objc-gc -test -vanilla" 0 kB

(-fixed-point) and -nopie% is changed by ebuild from last time.

Reproducible: Didn't try

Steps to Reproduce:
1. eix-sync (20081223)
2. echo "ACCEPT_KEYWORDS=~amd64" >> /etc/make.conf
3. emerge -1av sys-devel/gcc

Actual Results:  
libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran -I. -iquote/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/io -I/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/../gcc -I/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -march=k8 -O2 -pipe -MT reshape_packed.lo -MD -MP -MF .deps/reshape_packed.Tpo -c /var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/reshape_packed.c -o reshape_packed.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/gfortran -B/var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring -fallow-leading-underscore  -c -o selected_int_kind.lo `test -f 'intrinsics/selected_int_kind.f90' || echo '/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/'`intrinsics/selected_int_kind.f90
libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/gfortran -B/var/tmp/portage/sys-devel/gcc-4.3.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -I . -Wall -fno-repack-arrays -fno-underscoring -fallow-leading-underscore -c /var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90  -fPIC -o .libs/selected_int_kind.o
/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:35.5:

  do i = 1, c
    1
Error: Syntax error in array constructor at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:36.27:

    if (r <= int_infos (i) % range) then
                          1
Error: Syntax error in IF-expression at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:37.6:

      _gfortran_selected_int_kind = int_infos (i) % kind
     1
Error: Unclassifiable statement at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:39.7:

    end if
      1
Error: Expecting END FUNCTION statement at (1)
/var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/libgfortran/intrinsics/selected_int_kind.f90:40.5:

  end do
    1
Error: Expecting END FUNCTION statement at (1)
make[3]: *** [selected_int_kind.lo] 错误 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2/work/build/x86_64-pc-linux-gnu/libgfortran'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2/work/build/x86_64-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] 错误 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2/work/build'
make: *** [profiledbootstrap] 错误 2
 * 
 * ERROR: sys-devel/gcc-4.3.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4655:  Called toolchain_src_compile
 *             environment, line 5171:  Called gcc_src_compile
 *             environment, line 2987:  Called gcc_do_make
 *             environment, line 2810:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with profiledbootstrap
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2/temp/environment'.
 * 

>>> Failed to emerge sys-devel/gcc-4.3.2, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.3.2/temp/build.log'

 * Messages for package sys-devel/gcc-4.3.2:

 * 
 * ERROR: sys-devel/gcc-4.3.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4655:  Called toolchain_src_compile
 *             environment, line 5171:  Called gcc_src_compile
 *             environment, line 2987:  Called gcc_do_make
 *             environment, line 2810:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with profiledbootstrap
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2/temp/environment'.
 * 

 * GNU info directory index is up-to-date.



The system is ~amd64, and the entire system is up-to-date except:

gcc is still sys-libs/glibc-2.8_p20080602 (masked) because I will upgrade gcc to the latest version after kernel 2.6.28 is released.

emerge --info:

Portage 2.1.6.2 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.28-rc3-git2 x86_64)
=================================================================
System uname: Linux-2.6.28-rc3-git2-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-60-with-glibc2.2.5
Timestamp of tree: Tue, 23 Dec 2008 00:20:02 +0000
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.0
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.lzu.edu.cn/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org"
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US zh_CN"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/private/myoverlay /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/xen /usr/local/portage"
SYNC="rsync://202.201.0.141/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dmx dri dvd dvdr dvdread eds emboss encode evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk guile hal iconv ipv6 isdnlog jpeg laptop latex ldap libnotify mad midi mikmod mmx mono mp3 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex threads tiff truetype unicode usb vorbis xcb xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US zh_CN" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd "
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wang, Baojun 2008-12-23 03:51:19 UTC
Created attachment 176193 [details]
/var/tmp/portage/sys-devel/gcc-4.3.2/temp/environment
Comment 2 Wang, Baojun 2008-12-23 03:51:57 UTC
Created attachment 176195 [details]
/var/tmp/portage/sys-devel/gcc-4.3.2/temp/build.log, bziped.
Comment 3 Wang, Baojun 2008-12-23 05:34:38 UTC
(In reply to comment #0)
> latest gcc 4.3.2 failed to build:
> 
> [ebuild   R   ] sys-devel/gcc-4.3.2  USE="fortran gtk mudflap (multilib) nls
> openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj (-hardened) -ip28
> -ip32r10k -libffi -multislot (-n32) (-n64) -nocxx -nopie% -objc -objc++
> -objc-gc -test -vanilla" 0 kB
> 
> (-fixed-point) and -nopie% is changed by ebuild from last time.
> 
> Reproducible: Didn't try

I've tested twice, both with the same error, so I guess it's always reproducible?
Comment 4 R Stephan 2008-12-28 14:51:24 UTC
FWIW, I just built successfully 4.3.2-r1 with the fortran,mudflap,openmp USE flags on i386. Maybe this is AMD64 specific?
Comment 5 Wang, Baojun 2008-12-28 14:54:53 UTC
(In reply to comment #4)
> FWIW, I just built successfully 4.3.2-r1 with the fortran,mudflap,openmp USE
> flags on i386. Maybe this is AMD64 specific?
> 

gcc-4.3.2-r1 compile successfully with LC_ALL=C (my locale is zh_CN.UTF-8), funny.
Comment 6 SpanKY gentoo-dev 2008-12-29 09:42:09 UTC

*** This bug has been marked as a duplicate of bug 236762 ***