Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64220 - gentoo-sources-2.4.27-r1 fails to build with gcc > 3.4
Summary: gentoo-sources-2.4.27-r1 fails to build with gcc > 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 71016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-16 00:38 UTC by Serhij S. Stasyuk
Modified: 2004-11-19 08:21 UTC (History)
2 users (show)

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


Attachments
my kernel config (kernel-config-x86-2.4.27-gentoo-r1.gz,7.12 KB, application/x-gzip)
2004-09-19 03:34 UTC, Rene Androsch
Details
genkernel error output from console (genkernel-error-output.txt.gz,2.87 KB, application/x-gzip)
2004-09-19 03:34 UTC, Rene Androsch
Details
genkernel log file (genkernel.log.gz,55.73 KB, application/x-gzip)
2004-09-19 03:35 UTC, Rene Androsch
Details
error output of kernel compile (output.txt,4.21 KB, text/plain)
2004-09-21 10:46 UTC, gentoo@danielquinn.org
Details
manual kernel config (.config,23.31 KB, text/plain)
2004-09-21 10:47 UTC, gentoo@danielquinn.org
Details
a diff of my .26-r11 and the corresponding .28rc3 config (config.diff,6.21 KB, text/plain)
2004-11-16 03:38 UTC, Carsten Lohrke (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serhij S. Stasyuk 2004-09-16 00:38:48 UTC
gentoo-sources-2.4.27-r1 faile to build with gcc > 3.4
Description of the problem on http://www.ussg.iu.edu/hypermail/linux/kernel/0405.0/0703.html
Patch is at http://dl.rocklinux-consulting.de/oss/linux24/gcc340-fixes-v2.4.26-try3.patch

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Rene Androsch 2004-09-19 03:34:16 UTC
Created attachment 39904 [details]
my kernel config
Comment 2 Rene Androsch 2004-09-19 03:34:44 UTC
Created attachment 39905 [details]
genkernel error output from console
Comment 3 Rene Androsch 2004-09-19 03:35:02 UTC
Created attachment 39906 [details]
genkernel log file
Comment 4 Rene Androsch 2004-09-19 03:41:30 UTC
I attached my error output from genkernel + my configuration.
I'm using this gcc version: gcc version 3.4.2  (Gentoo Linux 3.4.2-r1, ssp-3.4.1-1, pie-8.7.6.5)

Seems I've also hit a strange problem with gcc, because before I did the gcc update I got a working kernel (guess what I'm running just now)


Here is my emerge info:
--start--

Portage 2.0.50-r11 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.27-gentoo-r1)
=================================================================
System uname: 2.4.27-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /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 /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/init.d /etc/snort /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/nfs/cwd/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/nfs/cwd/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 acpi alsa apache apache2 apm arts artswrappersuid avantgo avi berkdb bitmap-fonts bonobobzlib calendar cddb cdparanoia cdr chroot crypt cups dba divx4linux dvd dvdr dvdread encode etherealevo exif faad foomaticdb ftp gcj gd-external gdbm ggi gif gmp gnome gnomedb gphoto2 gpm gps gtk gtk2gtkhtml iconv idea imap imlib inifile ipv6 irda irmc j2ee java javamail javascript jce jpeg junit kde ldap libg++ libgda libwww lzo mad memlimit mhash mikmod mime mmx mmx2 motif mozcalendar mozilla mpeg nas ncurses network nls nvidia objc odbc oggvorbis ooo-kde opengl oss pcmcia pda pdflib perl png pnp python qt quicktime readline ruby samba scanner sdl session shared sharedmem simplexml skey slang soap sockets spckets spell sqlite sse sse2 ssl sysvipc tcltk tcpd tetex tga tidy tiff tokenizer truetype usb vim-with-x wifi x86 xml xml2 xmlrpc xmms xosd xprint xsl xv xvid zlib"
--end--

Comment 5 gentoo@danielquinn.org 2004-09-21 10:45:13 UTC
i've run into exactly the same problem:

  kernel: 2.4.27-gentoo-r1 (compiled with gcc3.3.4)
  sys-libs/glibc-2.3.4.20040808
  sys-devel/gcc-3.4.1-r3
  /etc/make.profile is linked to ../usr/portage/profiles/default-x86-1.4

now running 3.4.1-r3 (manually configured), i tried to recompile my kernel and it died with the attached output.
Comment 6 gentoo@danielquinn.org 2004-09-21 10:46:23 UTC
Created attachment 40104 [details]
error output of kernel compile
Comment 7 gentoo@danielquinn.org 2004-09-21 10:47:02 UTC
Created attachment 40105 [details]
manual kernel config
Comment 8 Chris Nicola 2004-09-27 10:09:41 UTC
This is a problem with all 2.4.27 kernels, they don't work with gcc 3.4.  You can Google for some more info if you want.  Unfortunately the patches available are not working with the gentoo-sources kernel (I have tried all of them including the one in the link you included).  I believe it is fixed in kernel 2.4.28 but that is still in pre release and isn't in portage.  

For now I would just do this (as this isn't the only thing 3.4 will give you trouble with).

gcc-config 0 (which should set you back to 3.3.3)
source /etc/profile

Then compile kernel an all other modules (ALSA for example)
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2004-11-13 11:47:14 UTC
*** Bug 71016 has been marked as a duplicate of this bug. ***
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-13 12:01:03 UTC
Since it hits 2.4.26-gentoo-r11, too, which is a stable/security release, can we expect the patch to be applied soon or is the workaround either to do this on your own or to use gcc-3.3?
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2004-11-13 13:50:45 UTC
Currently testing 2.4.28-rc3-r1 which will work fine with GCC 3.4...
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2004-11-13 14:42:10 UTC
Ok, gentoo-sources-2.4.28_rc3-r1.ebuild is in CVS and should reach the rsync mirrors shortly - can you give that a go and tell me if that works / fails?
Comment 13 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-16 03:36:09 UTC
A simple no would've been sufficient Tim. I'm fine with .26 compiled with gcc 3.3.4 for now. But since you asked I compiled .28rc3 and guess what happened: The kernel did not boot. The message is the following:

* Mounting /proc      [ok]
awk: cmd. line 2 fatal cannot open file `/proc/mounts' for reading (No such file or directory)
rm:  cannot remove `/dev/.devfsd*: operation not permitted
awk: cmd. ...

It's more or less the same kernel config like I use for the .26 one , just the added SATA stuff is disabled, since I don't have use for it.
Comment 14 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-16 03:38:20 UTC
Created attachment 44045 [details]
a diff of my .26-r11 and the corresponding .28rc3 config
Comment 15 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-18 14:39:06 UTC
Same problem w/ .28-r1. Please tell me, if you'd like an extra bug about that.
Comment 16 Tim Yamin (RETIRED) gentoo-dev 2004-11-19 08:21:15 UTC
Carsten: Yes, please open another bug (to me) about that (also, can you please try vanilla-sources-2.4.28 to check if it's an upstream issue, please?). The GCC issue is solved, closing this as FIXED.