Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236199 - sys-devel/gcc-4.3.2 released
Summary: sys-devel/gcc-4.3.2 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 11:39 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2008-10-05 04:46 UTC (History)
19 users (show)

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


Attachments
gcc-4.3.1-r1-to-4.3.2.ebuild.diff (gcc-4.3.1-r1-to-4.3.2.ebuild.diff,694 bytes, patch)
2008-09-21 23:39 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-08-30 11:39:42 UTC
sys-devel/gcc-4.3.2 was released on 2008-08-29.
Comment 1 brankob 2008-09-01 08:48:36 UTC
It seems to be working with old 4.3.1-r1 ebuild.

I just had to copy patch files in distfiles from 4.3.1 version names into new versions and then to modify gcc-4.3.2.patches-1.1.tar.bz2 : untar, delete last patch ("74_all_sh-pr24836.patch") and tar bzip2 it again.

It seems to be working fine. At the end of ebuild ( gcc-config phase) I'v got some message that it it seems that compiler doesn't use GCC_SPECS variable or somesuch, but it seems that gcc-config was initially conffused as it reported "invalid profile". After flipping it back and forth it worked fine...
Comment 2 Magnus Granberg gentoo-dev 2008-09-02 01:46:08 UTC
is not the 74_all_sh-pr24836.patch that needed to be deleted.
it is 75_all_gcc43-pr36533.patch
http://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=4.3.2
Comment 3 Alex Filov 2008-09-03 09:23:20 UTC
I have 2 problems.
They've appeared when I did this way:
1. I repacked patch and copied ebuild from gcc-4.3.1-r1
2. I emerged gcc-4.3.2
3. I unemerged old gcc-4.1.xxx

Problems:
1. When I imported python module lapack
#from numpy.linalg import lapack_lite
I have:
#ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory
Then:
#ld lapack_lite.so
ld: warning: libgfortran.so.1, needed by /usr/lib/liblapack.so.0, not found (try
 using -rpath or -rpath-link)
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/liblapack.so.0: undefined reference to `_gfortran_copy_string'
/usr/lib/liblapack.so.0: undefined reference to `_gfortran_pow_r8_i4'
/usr/lib/liblapack.so.0: undefined reference to `_gfortran_pow_r4_i4'

2. When I build cross-compile toolchain arm-unknown-linux-gnueabi
#crossdev --target arm-unknown-linux-gnueabi
I have:
#In file included from <stdin>:1:
ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:31:3: error: #error Kernel headers are too old
In file included from include/tls.h:6,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:28,
                 from <stdin>:1:
ports/sysdeps/arm/nptl/tls.h:48:3: error: #error "TLS support is required."
In file included from <stdin>:1:
ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:31:3: error: #error Kernel headers are too old
In file included from include/tls.h:6,
                 from ports/sysdeps/unix/sysv/linux/arm/eabi/sysdep.h:28,
                 from <stdin>:1:
ports/sysdeps/arm/nptl/tls.h:48:3: error: #error "TLS support is required."
In file included from <stdin>:1:
.....
make[1]: *** [/var/tmp/cross/arm-unknown-linux-gnueabi/portage/cross-arm-unknown-linux-gnueabi/glibc-2.7-r2/work/buil$
make[1]: Leaving directory `/var/tmp/cross/arm-unknown-linux-gnueabi/portage/cross-arm-unknown-linux-gnueabi/glibc-2.$
make: *** [install-headers] Error 2
 *
 * ERROR: cross-arm-unknown-linux-gnueabi/glibc-2.7-r2 failed.

I have linux-headers-2.6.26.

Help! )


emerge --info
WARNING: repository at /opt/media/portage_overlay is missing a repo_name entry
Portage 2.2_rc8 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-rc5vanilla-ArmadaM300 i686)
=================================================================
System uname: Linux-2.6.27-rc5vanilla-ArmadaM300-i686-Pentium_III_-Coppermine-with-glibc2.0
Timestamp of tree: Wed, 03 Sep 2008 07:05:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61
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.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers  -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers  -falign-functions=64 -fvisib
ility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo "
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j2"
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="/opt/media/portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE=" X aac aalib acl acpi alsa avi biblioteki bzip2 cli cracklib crypt d
annih dga doc dri dvd encode examples ffmpeg fftw flac flash fortran gd gettex gif gphoto2 gstreamer gtk2 hdf5 iconv i
sdnlog jpeg lapack lm_sensors matroska midi minimal mmx mmx2 mp3 mpeg mpi mudflap ncurses nls nptl nptlonly ogg oggvor
bis opengl openmp pam pcmcia pcre pda pdf perl png pnp pppd programmirovaniya python qt qt3support qt4 quicktime readl
ine real reflection sandbox session sistemi socks5 spell spl sreda sse ssl sysfs tcpd theora tiff tk truetype umfpack 
unicode usb utf8 vorbis wifi win32codecs x86 xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x 
ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-a
udio 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_gro
upfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_fi
lter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif sp
eling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" 
KERNEL="linux" 
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" 
VIDEO_CARDS="ati vesa mach64"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 brankob 2008-09-03 10:15:36 UTC
I am no guru, but it seems to me that your problem has nothing to do with gcc-4.3.2.

You probably have to reemerge package that was compiled with gcc-4.1* and so it was linked against gcc's libgfortran.so.

I have a couple of gcc's and those that have fortran frontend, have coresponding libs:

find /usr/lib64 -name "libgfortran*"

/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortran.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortran.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortranbegin.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortran.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortran.so.3.0.0
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortranbegin.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/libgfortran.so.3
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortran.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortran.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortranbegin.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortran.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortran.so.3.0.0
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortranbegin.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.2/32/libgfortran.so.3
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortran.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortran.so.2
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortran.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortranbegin.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortran.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortran.so.2.0.0
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/libgfortranbegin.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortran.la
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortran.so.2
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortran.so
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortranbegin.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortran.a
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortran.so.2.0.0
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.4/32/libgfortranbegin.la





Comment 5 Alex Filov 2008-09-03 10:31:01 UTC
I have:

#ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgfortran.so /usr/lib/libgfortran.so.0

#from numpy.linalg import lapack_lite
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 103, in <module>
    import linalg
  File "/usr/lib/python2.5/site-packages/numpy/linalg/__init__.py", line 4, in <module>
    from linalg import *
  File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line 29, in <module>
    from numpy.linalg import lapack_lite
ImportError: /usr/lib/liblapack.so.0: undefined symbol: _gfortran_pow_r8_i4
Comment 6 brankob 2008-09-03 10:36:16 UTC
So, have you reemerged lapack ?
Comment 7 Alex Filov 2008-09-03 11:51:48 UTC
(In reply to comment #6)
> So, have you reemerged lapack ?
> 

I reemerged lapack-reference. Lapack_lite work fine. Thanks! Now I have 1 problem. :)
Comment 8 Xake 2008-09-11 14:12:23 UTC
Is there any special reason this has not hit the tree yet, or is it just that no dev has had the time to do the testing and bumping?
Comment 9 brankob 2008-09-11 14:18:51 UTC
(In reply to comment #8)
> Is there any special reason this has not hit the tree yet, or is it just that
> no dev has had the time to do the testing and bumping?
> 
 My guess is the later.

I have emerged much of the system with very aggressive CFLAGS and it has worked for the most part, except a few apps where gcc segfaulted.
( CFLAGS=-march=barcelona -O3 -pipe -combine -fweb -ftracer -fsee -ftree-loop-linear -ftree-loop-im -ftree-loop-ivcanon -fivopts -ftree-vectorize -fprefetch-loop-arrays -mfpmath=sse,387 -funswitch-loops -fgcse-lm -fgcse-sm -fgcse-after-reload -fipa-pta -fipa-cp -ftree-loop-linear -ftree-loop-im -fvect-cost-model -ftree-vectorize )


With sane CFLAGS it seems to be working totally O.K.

I wtite this on machine with world emerged on with gcc-4.3.2 with CFLAGS="-march=barcelona -O2 -pipe.


It works without apparent issue.




Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-09-11 14:21:28 UTC
My guess is that SpankY is busy with other stuff. Just be patient, he won't forget us ;)
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-09-21 23:39:54 UTC
Created attachment 166043 [details, diff]
gcc-4.3.1-r1-to-4.3.2.ebuild.diff

I got impatient and bumped the ebuild in my local overlay. Thanks to the huge toolchain.eclass, the changes to the ebuild are quite minimal. But I still hope, this gcc version gets some love by the toolchain maintainers soon ;)
Comment 12 Kenton Groombridge 2008-09-27 16:57:21 UTC
This patch worked for me.  Every package on my system built without an issue. 

gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --disable-libmudflap --disable-libssp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2 p1.1'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2 p1.1)
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-09-29 10:56:15 UTC
Finally I had the time to run "emerge -e system && emerge -e world" with gcc-4.3.2 on my machine.
System built without any problems and world only had three failing packages but none of those errors were gcc-related.

barcelona:~ # emerge --info
Portage 2.1.5.6 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.25.17 x86_64)
=================================================================
System uname: 2.6.25.17 x86_64 Quad-Core AMD Opteron(tm) Processor 2354
Timestamp of tree: Mon, 29 Sep 2008 06:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
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.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mtune=barcelona -O2 -finline-functions -pipe"
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/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bash_completion.d /etc/bonobo-activation /etc/ca-certificates.conf /etc/cups /etc/dbus-1 /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fish /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gtk /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/imlib /etc/init.d /etc/iproute2 /etc/nas /etc/ntop /etc/pam.d /etc/pango /etc/profile.d /etc/revdep-rebuild /etc/sasl2 /etc/sgml /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/udev/rules.d /etc/xinetd.d /etc/xml /etc/zsh"
CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -finline-functions -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y"
FEATURES="collision-protect distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="de"
MAKEOPTS="-j7"
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"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amd64codecs asf avi berkdb branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dvd dvdr dvdread emboss encode fam ffmpeg flac gdbm gif gnutls gpg gtk gtk2 iconv idn imagemagick imlib isdnlog jpeg kde kdehiddenvisibility lame libwww mad midi mikmod mjpeg mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl pam pcre pdf png pppd qt3 qt3support quicktime readline reflection sdl session silc slang smp spell spl sse sse2 ssl startup-notification svg sysfs tga theora threads tiff truetype usb v4l2 vcd vorbis x264 xcomposite xml xml2 xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 14 Mark Loeser (RETIRED) gentoo-dev 2008-10-04 21:13:52 UTC
Finally got around to committing the bumped ebuild with the new patchset.  Please test and open any bugs if there are problems with it.
Comment 15 brankob 2008-10-05 04:46:52 UTC
(In reply to comment #14)
> Finally got around to committing the bumped ebuild with the new patchset. 
> Please test and open any bugs if there are problems with it.
> 

It works for me. Just emerged it, and recompiled glibc with it. 
Everything seems fine.