Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65220 - usermode-sources-2.6.6-r6 fails to compile
Summary: usermode-sources-2.6.6-r6 fails to compile
Status: RESOLVED DUPLICATE of bug 49277
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-24 09:20 UTC by Marcin Kryczek (RETIRED)
Modified: 2005-07-17 13:06 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 Marcin Kryczek (RETIRED) gentoo-dev 2004-09-24 09:20:59 UTC
this kernel fails to compile. error message:

make linux ARCH=um
[...]
  CPP     arch/um/uml.lds.s
gcc -Wl,-T,arch/um/uml.lds.s -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
        -o linux arch/um/main.o vmlinux -L/usr/lib -lutil
vmlinux(.text+0xc8990): In function `strcpy':
: multiple definition of `strcpy'
arch/um/kernel/tt/unmap_fin.o(.text+0x192e0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strcpy' c hanged from 33 in arch/um/kernel/tt/unmap_fin.o to 31 in vmlinux
vmlinux(.text+0xc8c40): In function `strrchr':
: multiple definition of `strrchr'
arch/um/kernel/tt/unmap_fin.o(.text+0x19470): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strrchr' changed from 441 in arch/um/kernel/tt/unmap_fin.o to 46 in vmlinux
vmlinux(.text+0xc8bc0): In function `strncmp':
: multiple definition of `strncmp'
arch/um/kernel/tt/unmap_fin.o(.text+0x5aa0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strncmp' changed from 298 in arch/um/kernel/tt/unmap_fin.o to 67 in vmlinux
vmlinux(.text+0xc9ee0): In function `sscanf':
: multiple definition of `sscanf'
arch/um/kernel/tt/unmap_fin.o(.text+0x330d0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `sscanf' c hanged from 33 in arch/um/kernel/tt/unmap_fin.o to 35 in vmlinux
vmlinux(.text+0xc8b90): In function `strcmp':
: multiple definition of `strcmp'
arch/um/kernel/tt/unmap_fin.o(.text+0x59c0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strcmp' c hanged from 37 in arch/um/kernel/tt/unmap_fin.o to 38 in vmlinux
vmlinux(.text+0xc8c10): In function `strchr':
: multiple definition of `strchr'
arch/um/kernel/tt/unmap_fin.o(.text+0x5850): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strchr' c hanged from 359 in arch/um/kernel/tt/unmap_fin.o to 36 in vmlinux
vmlinux(.text+0xc8d70): In function `strpbrk':
: multiple definition of `strpbrk'
arch/um/kernel/tt/unmap_fin.o(.text+0x35680): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strpbrk' changed from 179 in arch/um/kernel/tt/unmap_fin.o to 81 in vmlinux
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: BFD 2.15.90.0.1.1 20040303 asserti on fail elf.c:3470
vmlinux(.text+0x4e88): In function `mem_init':
: undefined reference to `phys_page'
vmlinux(.init.text+0x1f13): In function `kmap_init':
: undefined reference to `pte_offset'
collect2: ld returned 1 exit status
make: *** [linux] Error 1

i've got the same error with gcc-3.4.2

my emerge info:
Portage 2.0.51_rc1 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 AMD Athlon(tm) XP 1700+
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
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fno-exceptions -fno-rtti"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl/ http://gentoo.prz.rzeszow.pl http://src.gentoo.pl/distfiles ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/ ftp://ftp.rhnet.is/pub/gentoo/ http://www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/my_ebuilds"
SYNC="rsync://rsync.gentoo.pl/gentoo-portage"
USE="3dnow X aalib alsa apache2 arts avi bitmap-fonts crypt cups dvd encode esd fbcon flash gif glut gphoto2 gpm gtk gtk2 imlib imlib2 java javascript jikes jpeg lcms libwww maildir mailwrapper mbox memlimit mikmod mmx motif moznocompose moznoirc moznomail mpeg mysql ncurses nls nocardbus nptl nvidia oggvorbis opengl oss pam pda pdflib perl png ppds python quicktime readline samba sasl sdl serial slang spell sse ssl tcltk tcpd tiff truetype v4l v4l2 videos vim-with-x wmf x86 xprint xv xvid zlib"
Comment 1 Marcin Kryczek (RETIRED) gentoo-dev 2004-09-24 09:21:50 UTC
it's about 2.6.6-r6 version.. sorry
Comment 2 Joel Parker 2004-10-02 15:52:19 UTC
Confirmed.

--
gcc -Wl,-T,arch/um/uml.lds.s -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \        -o linux arch/um/main.o vmlinux -L/usr/lib -lutil
vmlinux(.text+0xed920): In function `strcpy':
lib/string.c:71: multiple definition of `strcpy'
arch/um/kernel/tt/unmap_fin.o(.text+0x3e8c8): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strcpy' changed from 35 in arch/um/kernel/tt/unmap_fin.o to 32 in vmlinux
vmlinux(.text+0xedbf0): In function `strrchr':
lib/string.c:266: multiple definition of `strrchr'
arch/um/kernel/tt/unmap_fin.o(.text+0x186c0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strrchr' changed from 441 in arch/um/kernel/tt/unmap_fin.o to 47 in vmlinux
vmlinux(.text+0xedb60): In function `strncmp':
lib/string.c:231: multiple definition of `strncmp'
arch/um/kernel/tt/unmap_fin.o(.text+0x5538): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strncmp' changed from 171 in arch/um/kernel/tt/unmap_fin.o to 66 in vmlinux
vmlinux(.text+0xeed70): In function `sscanf':
lib/vsprintf.c:813: multiple definition of `sscanf'
arch/um/kernel/tt/unmap_fin.o(.text+0x31e74): first defined here
vmlinux(.text+0xedb30): In function `strcmp':
lib/string.c:211: multiple definition of `strcmp'
arch/um/kernel/tt/unmap_fin.o(.text+0x5510): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strcmp' changed from 37 in arch/um/kernel/tt/unmap_fin.o to 39 in vmlinux
vmlinux(.text+0xedbb0): In function `strchr':
lib/string.c:251: multiple definition of `strchr'
arch/um/kernel/tt/unmap_fin.o(.text+0x53a0): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strchr' changed from 359 in arch/um/kernel/tt/unmap_fin.o to 53 in vmlinux
vmlinux(.text+0xedd20): In function `strpbrk':
lib/string.c:382: multiple definition of `strpbrk'
arch/um/kernel/tt/unmap_fin.o(.text+0x34070): first defined here
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `strpbrk' changed from 179 in arch/um/kernel/tt/unmap_fin.o to 82 in vmlinux
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: BFD 2.14.90.0.8 20040114 assertion fail elf.c:3465collect2: ld returned 1 exit status
make: *** [linux] Error 1
--

--
# emerge --info
Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="S3TC X acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdparanoia cdr cjk crypt cscope cups divx4linux doc dvd dvdr encode esd f77 faad fam flac foomaticdb gcj gdbm gif gimpprint gnome gnutls gstreamer gtk gtk2 gtkhtml guile imlib ipv6 java jce jikes jpeg ldap libg++ libwww live mad mailwrapper matroska mikmod mmx mng motif mozilla mozsvg mpeg mysql ncurses nls nptl oav objc oggvorbis opengl pam pda pdflib perl png pnp ppds python qemu-fast quicktime quotes readline ruby samba sdl slang sndfile softmmu speex spell sse ssl svg tcltk tcpd tetex theora threads tiff truetype trusted unicode vim-with-x wmf x86 xml2 xmms xprint xv xvid zlib"
--
Comment 3 Joel Parker 2004-10-02 17:47:10 UTC
I'm also getting this same problem with development-sources-2.6.8.1 and uml-patch-2.6.8.1-1.bz2.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-10-06 02:52:40 UTC

*** This bug has been marked as a duplicate of 49277 ***