| Summary: | gentoo-sources-2.4.27-r1 fails to build with gcc > 3.4 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Serhij S. Stasyuk <stas> |
| Component: | [OLD] Core system | Assignee: | Tim Yamin (RETIRED) <plasmaroo> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | carlo, gentoo |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
my kernel config
genkernel error output from console genkernel log file error output of kernel compile manual kernel config a diff of my .26-r11 and the corresponding .28rc3 config |
||
|
Description
Serhij S. Stasyuk
2004-09-16 00:38:48 UTC
Created attachment 39904 [details]
my kernel config
Created attachment 39905 [details]
genkernel error output from console
Created attachment 39906 [details]
genkernel log file
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-- 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. Created attachment 40104 [details]
error output of kernel compile
Created attachment 40105 [details]
manual kernel config
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) *** Bug 71016 has been marked as a duplicate of this bug. *** 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? Currently testing 2.4.28-rc3-r1 which will work fine with GCC 3.4... 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? 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. Created attachment 44045 [details]
a diff of my .26-r11 and the corresponding .28rc3 config
Same problem w/ .28-r1. Please tell me, if you'd like an extra bug about that. 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. |