Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69088 - gcc 3.4.2-r2 produces broken build of usermode-sources 2.4.26-r6
Summary: gcc 3.4.2-r2 produces broken build of usermode-sources 2.4.26-r6
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 19:19 UTC by Yassen Damyanov
Modified: 2005-11-29 09:44 UTC (History)
1 user (show)

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 Yassen Damyanov 2004-10-26 19:19:06 UTC
After building usermode-sources 2.4.26-r6 with gcc 3.4.2-r2 and then running the usermode linux, it cannot find its root virtual device. After switching to gcc 3.3.4 and rebuilding the UML, it runs fine. Nothing else has been changed.

Reproducible: Always
Steps to Reproduce:
1.emerge =usermode-sources-2.4.26-r6; cd /usr/src/uml/linux
2.make menuconfig ARCH=um; make linux ARCH=um; cp linux /usr/local/bin
3.linux ubd0=root_fs ubd1=swap_fs eth0=tuntap,,,192.168.0.254

Actual Results:  
# linux2.4-BAD ubd0=root_fs ubd1=swap_fs eth0=tuntap,,,192.168.0.254
Checking for the skas3 patch in the host...found
Checking for /proc/mm...found
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.26-uml1-r6-1um (root@agur) (gcc version 3.4.2 (Gentoo Linux 3.
4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)) #2 Wed Oct 27 02:48:45 CEST 2004
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ubd0=root_fs ubd1=swap_fs eth0=tuntap,,,192.168.0.254 
root=/dev/ubd0
Calibrating delay loop... 2169.24 BogoMIPS
Memory: 29696k available
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that ptrace can change system call numbers...OK
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
SGI XFS with no debug enabled
pty: 256 Unix98 ptys configured
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Netdevice 0 : TUN/TAP backend - IP = 192.168.0.254
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Cannot open root device "ubd0" or 62:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 62:00
 <6>SysRq : Show Regs

EIP: 0073:[<40044491>] CPU: 0 Not tainted ESP: 007b:40130fb0 EFLAGS: 00000246
    Not tainted
EAX: 00000000 EBX: 00005d2e ECX: 00000013 EDX: 00005d2e
ESI: 00000000 EDI: 00000000 EBP: 40130fbc DS: 007b ES: 007b
Call Trace: [<a001d8a5>] [<a0011afc>] [<a0001994>] [<a000e5fe>] [<a0020802>]
   [<a0058242>] [<a0159459>] [<a000d580>] [<a0125e10>] [<a000d5c7>] [<a000d580>]
   [<a011f4a9>] [<a000d580>] [<a0125e10>] [<a011f495>] [<a000d580>] [<a0125e10>]
   [<a0125eb0>] [<a000d580>] [<a0125e10>] [<a0125f1d>]

#

Expected Results:  
Find the /dev/ubd/0 and /dev/ubd/1 devices and complete a "virtual boot" up to a 
login prompt.

# emerge info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.7 
i686)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:
//gentoo.inode.at/source/ http://gentoo.inode.at/ ftp://linux.rz.
ruhr-uni-bochum.de/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X509 acpi apm berkdb bitmap-fonts chroot crypt devmap encode gdbm gif 
innodb mysql ncurses nls pam pcntl pcre pdflib perl python readline shared 
sharedmem slang sockets sse ssl svga tcpd truetype uml x86 xml2 zlib"
Comment 1 Rigo 2005-07-11 18:47:51 UTC
I actually got the same errors 'when I compile any 2.6.12 with gcc-4.* (for
instance on modules vesafb-ng)...


r0g1
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-11-29 09:44:21 UTC
Do you still have problems with usermode-sources if you use gcc-3.4.4-r1?


The gcc-4 issue would be a seperate bug, please open one if it is still an issue.