All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Whitcroft <apw@shadowen.org>
To: Andrew Morton <akpm@linux-foundation.org>, Jiri Kosina <jkosina@suse.cz>
Cc: linux-kernel@vger.kernel.org
Subject: 2.6.23-rc8-mm1 -- powerpc link failure
Date: Tue, 25 Sep 2007 14:46:53 +0100	[thread overview]
Message-ID: <20070925134653.GB8447@shadowen.org> (raw)
In-Reply-To: <20070925014625.3cd5f896.akpm@linux-foundation.org>

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

  parent reply	other threads:[~2007-09-25 13:47 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  8:46 2.6.23-rc8-mm1 Andrew Morton
2007-09-25 10:39 ` 2.6.23-rc8-mm1 Kamalesh Babulal
2007-09-25 15:46   ` 2.6.23-rc8-mm1 Andrew Morton
2007-09-25 12:19 ` [-mm Patch] fs/udf/balloc.c: mark a variable as uninitialized_var() WANG Cong
2007-09-25 12:52 ` [-mm Patch] drivers/usb/misc/sisusbvga/sisusb.c: kill two unused variables WANG Cong
2007-09-25 12:53 ` 2.6.23-rc8-mm1 - drivers/net/ibm_newemac/mal - broken Kamalesh Babulal
2007-09-25 16:16   ` Andrew Morton
2007-09-25 13:46 ` Andy Whitcroft [this message]
2007-09-25 15:23   ` 2.6.23-rc8-mm1 -- powerpc link failure Jiri Kosina
2007-09-27 12:03     ` Andy Whitcroft
2007-09-27 12:13       ` Jiri Kosina
2007-09-27 17:13         ` Andrew Morton
2007-09-27 19:31           ` Sam Ravnborg
2007-09-27 22:13         ` Andrew Morton
2007-09-27 22:17           ` Jiri Kosina
2007-09-25 17:26 ` 2.6.23-rc8-mm1 Randy Dunlap
2007-09-25 17:39   ` 2.6.23-rc8-mm1 Josef Sipek
2007-09-25 17:45   ` [PATCH 1/1] Unionfs: move poison #define into poison.h Josef 'Jeff' Sipek
2007-09-26  1:02     ` Josef 'Jeff' Sipek
2007-09-25 19:02 ` 2.6.23-rc8-mm1: unscrew UFS Alexey Dobriyan
2007-09-25 20:00 ` 2.6.23-rc8-mm1 - powerpc memory hotplug link failure Kamalesh Babulal
2007-09-25 20:00   ` Kamalesh Babulal
2007-09-25 22:01   ` Badari Pulavarty
2007-09-25 22:01     ` Badari Pulavarty
2007-09-26  8:18     ` Kamalesh Babulal
2007-09-26  8:18       ` Kamalesh Babulal
2007-09-26  1:32   ` KAMEZAWA Hiroyuki
2007-09-26  1:32     ` KAMEZAWA Hiroyuki
2007-09-26  1:48     ` KAMEZAWA Hiroyuki
2007-09-26  1:48       ` KAMEZAWA Hiroyuki
2007-09-26  8:19       ` Kamalesh Babulal
2007-09-26  8:19         ` Kamalesh Babulal
2007-09-25 20:56 ` 2.6.23-rc8-mm1: drivers/kvm/ioapic.o build failure Mariusz Kozlowski
2007-09-26  9:00   ` [kvm-devel] " Avi Kivity
2007-09-26  9:00     ` Avi Kivity
2007-09-26  9:14     ` [kvm-devel] " Andrew Morton
2007-09-26  9:14       ` Andrew Morton
2007-09-26  9:18       ` [kvm-devel] " Avi Kivity
2007-09-26  9:18         ` Avi Kivity
2007-09-25 22:05 ` 2.6.23-rc8-mm1 Badari Pulavarty
2007-09-26 12:28   ` 2.6.23-rc8-mm1 Andy Whitcroft
2007-09-25 22:23 ` 2.6.23-rc8-mm1 : wgt634u.c trem
2007-09-26  7:51 ` black screen after kill X [Was: 2.6.23-rc8-mm1] Jiri Slaby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070925134653.GB8447@shadowen.org \
    --to=apw@shadowen.org \
    --cc=akpm@linux-foundation.org \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.