Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139189 - gentoo-sources-2.4.32-r6 fail to compile on K6-3 with gcc-4.1.1
Summary: gentoo-sources-2.4.32-r6 fail to compile on K6-3 with gcc-4.1.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-04 07:49 UTC by Joakim
Modified: 2006-07-09 11:03 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 Joakim 2006-07-04 07:49:54 UTC
Portage 2.1.1_pre2-r2 (default-linux/x86/no-nptl/2.4, gcc-4.1.1/vanilla, glibc-2.3.6-r4, 2.4.32-gentoo-r4 i586)
=================================================================
System uname: 2.4.32-gentoo-r4 i586 AMD-K6(tm) 3D+ Processor
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.4.21, 2.4.26-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-3 -O3 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k6-3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 aalib acl apache2 avi berkdb bitmap-fonts bzip2 cli crypt curl dlloader dri eds emboss encode expat foomaticdb fortran gdbm geoip ggi gif gmp gpm gstreamer gtk2 idn imap imlib isdnlog jpeg libg++ libwww mad maildir mp3 mpeg mysql ncurses nls no-suexec ogg pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sasl sdl session slang spell spl sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts urandom usb vhosts virus-scan vorbis wmf xml xml2 xorg zeo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Actually not only 2.4.32-r6, but r5 and r4 as well fails. I have r4 compiled with gcc-3.4.6 but after upgrading to gcc4.1.1 and recompiling whole system several times even r4 fails, which it didn't do before. So hard for me to say if this is a gentoo-sources or gcc4.1.1 bug but among all ebuilds this is the only one that errors.

This is the procedure I have followed:

merc ~ # cp /usr/src/linux/.config /usr/src/linux-2.4.32-gentoo-r6/.config
merc ~ # cd /usr/src/
merc src # rm linux
merc src # ln -s linux-2.4.32-gentoo-r6 linux
merc src # cd linux
merc linux # make oldconfig

merc linux # make menuconfig

merc linux # make dep clean bzImage modules modules_install

and here is the later part of output ending with the error:

/usr/src/linux-2.4.32-gentoo-r6/include/linux/ncp.h:174: warning: 'packed' attribute ignored for field of type '__u8'
In file included from /usr/src/linux-2.4.32-gentoo-r6/include/asm/smp.h:17,
                 from init/main.c:74:
/usr/src/linux-2.4.32-gentoo-r6/include/asm/mpspec.h:87: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
make: *** [init/main.o] Error 1

I would like to upgrade to 2.6 sources but before doing this I like to have an up-to-date system.

/Joakim
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2006-07-09 11:03:39 UTC
2.4 series kernels have zero support for gcc-4. You must use gcc-3 (or use newish 2.6 kernels which will work fine with gcc-4).