2.6.23-rc8-mm1 -- powerpc link failure

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>, Jiri Kosina <jkosina@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 25, 2007 - 9:46 am

2.6.23-rc6-mm1, 2.6.23-rc7-mm1 and 2.6.23-rc8-mm1 all fail to link
correctly on a powerpc machine (elm3b19) in our test grid.  It fails as
below:

    LD      vmlinux.o
  ld: dynreloc miscount for fs/built-in.o, section .opd
  ld: can not edit opd Bad value
  make: *** [vmlinux.o] Error 1

Compiler versions and linker versions as below:

root@elm3b19:~/apw/linux-2.6.22# gcc -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared
--with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-softfloat
--enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
--disable-werror --enable-checking=release powerpc-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
root@elm3b19:~/apw/linux-2.6.22# ld -v
GNU ld version 2.16.1 Debian GNU/Linux

As suggested elsewhere I have had a go at tracking this down.  Previous
problems of this kind were introduced as a result of using 'weak'
declarations to provide default implementations.  This investigation led
me to the following commit:

  commit c60473b5d32ea6cf4561232bc852bacd3a513528
  Author: Jiri Kosina <jkosina@suse.cz>
  Date:   Sat Sep 15 01:49:49 2007 +0000

    i386-and-x86_64-randomize-brk

Backing this change out seems to get us past this problem.  If we are to
support compilers of this age, and I believe we currently do, then we
probabally need to avoid the weak declarations and use the Kconfig
system to provide the alternatives here.

Jiri?

-apw
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc8-mm1, Andrew Morton, (Tue Sep 25, 4:46 am)
black screen after kill X [Was: 2.6.23-rc8-mm1], Jiri Slaby, (Wed Sep 26, 3:51 am)
Re: 2.6.23-rc8-mm1 : wgt634u.c, trem, (Tue Sep 25, 6:23 pm)
Re: 2.6.23-rc8-mm1, Badari Pulavarty, (Tue Sep 25, 6:05 pm)
Re: 2.6.23-rc8-mm1, Andy Whitcroft, (Wed Sep 26, 8:28 am)
Re: 2.6.23-rc8-mm1: drivers/kvm/ioapic.o build failure, Mariusz Kozlowski, (Tue Sep 25, 4:56 pm)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, Kamalesh Babulal, (Tue Sep 25, 4:00 pm)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, KAMEZAWA Hiroyuki, (Tue Sep 25, 9:32 pm)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, KAMEZAWA Hiroyuki, (Tue Sep 25, 9:48 pm)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, Kamalesh Babulal, (Wed Sep 26, 4:19 am)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, Badari Pulavarty, (Tue Sep 25, 6:01 pm)
Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure, Kamalesh Babulal, (Wed Sep 26, 4:18 am)
Re: 2.6.23-rc8-mm1, Randy Dunlap, (Tue Sep 25, 1:26 pm)
[PATCH 1/1] Unionfs: move poison #define into poison.h, Josef 'Jeff' Sipek, (Tue Sep 25, 1:45 pm)
Re: [PATCH 1/1] Unionfs: move poison #define into poison.h, Josef 'Jeff' Sipek, (Tue Sep 25, 9:02 pm)
Re: 2.6.23-rc8-mm1, Josef Sipek, (Tue Sep 25, 1:39 pm)
2.6.23-rc8-mm1: unscrew UFS, Alexey Dobriyan, (Tue Sep 25, 3:02 pm)
2.6.23-rc8-mm1 -- powerpc link failure, Andy Whitcroft, (Tue Sep 25, 9:46 am)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Jiri Kosina, (Tue Sep 25, 11:23 am)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Andy Whitcroft, (Thu Sep 27, 8:03 am)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Jiri Kosina, (Thu Sep 27, 8:13 am)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Andrew Morton, (Thu Sep 27, 6:13 pm)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Jiri Kosina, (Thu Sep 27, 6:17 pm)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Andrew Morton, (Thu Sep 27, 1:13 pm)
Re: 2.6.23-rc8-mm1 -- powerpc link failure, Sam Ravnborg, (Thu Sep 27, 3:31 pm)
Re: 2.6.23-rc8-mm1 - drivers/net/ibm_newemac/mal - broken, Kamalesh Babulal, (Tue Sep 25, 8:53 am)
Re: 2.6.23-rc8-mm1 - drivers/net/ibm_newemac/mal - broken, Andrew Morton, (Tue Sep 25, 12:16 pm)
Re: 2.6.23-rc8-mm1, Kamalesh Babulal, (Tue Sep 25, 6:39 am)
Re: 2.6.23-rc8-mm1, Andrew Morton, (Tue Sep 25, 11:46 am)