Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195002 - sys-devel/gcc-4.2.1 doesn't compile w/ USE=fortran
Summary: sys-devel/gcc-4.2.1 doesn't compile w/ USE=fortran
Status: RESOLVED NEEDINFO
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: 2007-10-07 14:57 UTC by Waldo
Modified: 2007-10-14 22:21 UTC (History)
0 users

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 Waldo 2007-10-07 14:57:42 UTC
/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.2.1/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.2.1/work/gcc-4.2.1/libgfortran -I. -iquote/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/io -I/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/../gcc -I/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/../gcc/config -I../../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -O2 -march=athlon64 -pipe -m32 -c /var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c  -fPIC -DPIC -o .libs/rand.o
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:40:18: error: gthr.h: No such file or directory
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rand_seed_lock'
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c: In function '_gfortran_srand':
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:68: warning: implicit declaration of function '__gthread_mutex_lock'
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:68: error: 'rand_seed_lock' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:68: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:68: error: for each function it appears in.)
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:70: warning: implicit declaration of function '__gthread_mutex_unlock'
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c: In function 'irand':
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:87: error: 'rand_seed_lock' undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c: In function 'init':
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:140: warning: implicit declaration of function '__GTHREAD_MUTEX_INIT_FUNCTION'
/var/tmp/portage/sys-devel/gcc-4.2.1/work/gcc-4.2.1/libgfortran/intrinsics/rand.c:140: error: 'rand_seed_lock' undeclared (first use in this function)
make[6]: *** [rand.lo] Error 1
make[6]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/x86_64-pc-linux-gnu/32/libgfortran'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/x86_64-pc-linux-gnu/32/libgfortran'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/x86_64-pc-linux-gnu/libgfortran'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/x86_64-pc-linux-gnu/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build/x86_64-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.1/work/build'
make: *** [profiledbootstrap] Error 2
 * 
 * ERROR: sys-devel/gcc-4.2.1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called toolchain_src_compile
 *   toolchain.eclass, line 26:   Called gcc_src_compile
 *   toolchain.eclass, line 1546:   Called gcc_do_make
 *   toolchain.eclass, line 1420:   Called die
 * 
 * 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.2.1/temp/build.log'.
 * 


Reproducible: Always

Steps to Reproduce:



Expected Results:  
Any thoughts?

W

emerge --info
Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Sun, 07 Oct 2007 08:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -msse3 -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -msse3 -frerun-loop-opt -ftracer -fprefetch-loop-arrays -fforce-addr -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://mirror.espri.arizona.edu/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi aim alsa amd64 asf avahi avi berkdb bitmap-fonts browserplugin bzip2 cairo canvas cddb cdparanoia cdr cli cracklib cups curl daap dbus divx4linux dri dts dv dvd dvdr dvdread eds emboss encode evo evolution faad fam ffmpeg firefox flac foomatic fortran freetype gcj gdbm gif gimpprint glib glitz glut glx gmail gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl-compat iconv ieee1394 imagemagick imlib ipod ipv6 isdnlog java jpeg kerberos lame lcms ldap libgda libnotify libsndfile libwww live lm_sensors mad matroska mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mono mozilla mozsvg mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal opengl openmp oscar oss pam pch pcre pdf perl png pop ppds pppd python qt-static qt3 qt3support qt4 quicktime quotes readline reflection regex rtc rtsp sasl scanner sdl session spell spl sse sse2 ssl ssse3 svg symlink tagwriting tcpd theora threads tiff tokenizer truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vorbis widescreen wxwindows xcomposite xine xinerama xml xml2 xorg xprint xv xvid yahoo zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Joshua Hoblitt 2007-10-09 09:44:16 UTC
This works for me:

emerge -va gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.2.1  USE="fortran gtk mudflap nls openmp (-altivec) -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 43,030 kB [1]
Comment 2 Dennis Schridde 2007-10-09 09:48:04 UTC
Works for me as well:

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

Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Timestamp of tree: Mon, 08 Oct 2007 20:20:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64 -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/initng/daemon /etc/initng/net /etc/initng/system /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=athlon64 -ftree-vectorize -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.mneisen.org/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/dirtyepic /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache2 avahi bash-completion berkdb bitmap-fonts cairo cdr cjk cli cracklib crypt cups dbus dri dvb dvd dvdr dvdread emboss encode evo fam ffmpeg firefox foomaticdb fortran gdbm gif gimp gpm gtk hal iconv ipod ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap lm_sensors mad midi mikmod mmx mmxext mp3 mp4 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pch pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session speex spell spl sse sse2 ssl subversion svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb vcd visualization vorbis x264 xcb xcomposite xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 SpanKY gentoo-dev 2007-10-14 22:21:56 UTC
4.2.2 builds fine for me with USE=fortran

post the full build log as an attachment