Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95986 - Assertion Fails in elf.c from binutils when compiling uml kernel
Summary: Assertion Fails in elf.c from binutils when compiling uml kernel
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 09:15 UTC by Tobias Margitan
Modified: 2005-07-21 04:35 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 Tobias Margitan 2005-06-13 09:15:06 UTC
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: BFD
2.16 assertion fail
/var/tmp/portage/binutils-2.16-r1/work/binutils-2.16/bfd/elf.c:3675

I get 3 of that lines at the end of a uml-kernel build...
I read some info found with google that this error occurs when glibc is built
with +nptl ... but both of my gentoo boxes dont use nptl at all.

Reproducible: Always
Steps to Reproduce:
1. no matter which kernel to use
2. no matter which binutils to use
Actual Results:  
the error again :/

Expected Results:  
compiled successfully i guess ;)

GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6).
Compiled on a Linux 2.6.11 system on 2005-04-23.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        The C stubs add-on version 2.1.2.
        GNU Libidn by Simon Josefsson
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>. 

c3po ~ # emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/gentoo-de"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm avi bitmap-fonts crypt emboss encode foomaticdb fortran gd
geoip gif gpm gtk2 imagemagick imlib ipv6 javascript jpeg kde libg++ libwww
lm_sensors mad mikmod motif mp3 mpeg mpm-threadpool mysql ncurses nls oggvorbis
opengl oss pam pdflib perl php png python quicktime samba sdl session sockets
spell ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts xml xml2
xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-06-13 15:59:40 UTC
Please specify the kernel versions which you have tried.
Comment 2 Tobias Margitan 2005-06-14 01:41:31 UTC
Well sorry i forgot... i tried several sources from vanilla to
usermode-sources... from a full unpatched 2.6.8 with umls own patches to
2.6.11-r1 usermode ... must be 10 versions between that... i also forgot the
outcome of the built. The linux binary runs into an Segmentation Fault immediately.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-06-28 17:20:38 UTC
Please recompile binutils with safer cflags e.g.
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"

Then run "make clean" in the kernel source directory and try compiling again. If
it still fails, please attach a few more lines of the compile output so that we
get more context.
Comment 4 Tobias Margitan 2005-06-29 06:37:51 UTC
Okay, i tried that but that didnt help... i give you the last few lines of the
kernel built.. #make linux ARCH=um -j5
Everything runs fine like it should until he wants to write the vmlinux file, as
you can see here:

[...]
  CC      lib/parser.o
  CC      lib/prio_tree.o
  CC      lib/radix-tree.o
  CC      net/ipv4/tcp_minisocks.o
  CC      lib/rbtree.o
  CC      lib/rwsem-spinlock.o
  CC      lib/string.o
  CC      net/ipv4/datagram.o
  CC      lib/vsprintf.o
  CC      net/ipv4/raw.o
  GEN     lib/crc32table.h
  AR      lib/lib.a
  CC      lib/crc32.o
  LD      lib/built-in.o
  CC      net/ipv4/udp.o
  CC      net/ipv4/arp.o
  CC      net/ipv4/icmp.o
  CC      net/ipv4/devinet.o
  CC      net/ipv4/af_inet.o
  CC      net/ipv4/igmp.o
  CC      net/ipv4/sysctl_net_ipv4.o
  CC      net/ipv4/fib_frontend.o
  CC      net/ipv4/fib_semantics.o
  CC      net/ipv4/fib_hash.o
  CC      net/ipv4/proc.o
  CC      net/ipv4/tcp_diag.o
  CC      net/netlink/af_netlink.o
  LD      net/ipv4/built-in.o
  CC      net/packet/af_packet.o
  LD      net/netlink/built-in.o
  CC      net/sched/sch_generic.o
  LD      net/sched/built-in.o
  CC      net/unix/af_unix.o
  LD      net/packet/built-in.o
  CC      net/sysctl_net.o
  CC      net/unix/garbage.o
  CC      net/unix/sysctl_net_unix.o
  LD      net/unix/unix.o
  LD      net/unix/built-in.o
  LD      net/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: BFD
2.16.1 assertion fail
/var/tmp/portage/binutils-2.16.1/work/binutils-2.16.1/bfd/elf.c:3675
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: BFD
2.16.1 assertion fail
/var/tmp/portage/binutils-2.16.1/work/binutils-2.16.1/bfd/elf.c:3675
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: BFD
2.16.1 assertion fail
/var/tmp/portage/binutils-2.16.1/work/binutils-2.16.1/bfd/elf.c:3675
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
ln -f vmlinux linux

and here is the very end... :/ sad but true...
again if i want to execute ./linux i get

c3po linux-2.6.11-usermode-r1 # ./linux
Segmentation fault

for the whole story again: no matter which kernelsources w/wo patches to use...
all lead to the same crap error
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-07-06 02:55:47 UTC
Please see if you can reproduce with usermode-sources-2.6.12
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-07-21 04:35:53 UTC
See comment #5
(by the way, 2.6.12-r1 is out now)