public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mel@skynet.ie (Mel Gorman)
To: Andi Kleen <ak@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Steve Fox <drfickle@us.ibm.com>,
	Andy Whitcroft <apw@shadowen.org>
Subject: Re: 2.6.21-rc7-mm2 -- x86_64 VDSO compile error II
Date: Thu, 26 Apr 2007 15:39:02 +0100	[thread overview]
Message-ID: <20070426143902.GD16909@skynet.ie> (raw)
In-Reply-To: <200704261613.41717.ak@suse.de>

On (26/04/07 16:13), Andi Kleen didst pronounce:
> On Thursday 26 April 2007 15:27:36 Mel Gorman wrote:
> > On (26/04/07 13:16), Andy Whitcroft didst pronounce:
> > > Getting the following on an x86_64 numa box:
> > > 
> > >   CC      arch/x86_64/vdso/vclock_gettime.o
> > > arch/x86_64/vdso/vclock_gettime.c:1: error: code model `small' not
> > > supported in the 32 bit mode
> > > make[1]: *** [arch/x86_64/vdso/vclock_gettime.o] Error 1
> > > make: *** [arch/x86_64/vdso] Error 2
> > > 
> > > Kernel config here: http://test.kernel.org/abat/85358/build/dotconfig
> > > 
> > 
> > Hi Andi,
> > 
> > Backing out x86_64-mm-vdso.patch allowed this kernel to build and boot
> > successful on the machine in question (elm3b6). The backout caused one reject
> > in Documentation/kernel-parameters but otherwise backed out easily. It's
> > not super-clear why it fails to build. If you want me to try another patch,
> > make sure I'm cc'd and I'll give it a spin.
> 
> 
> Or please try this simple patch.
> 
> -Andi
> 
> Index: linux/arch/x86_64/vdso/Makefile
> ===================================================================
> --- linux.orig/arch/x86_64/vdso/Makefile
> +++ linux/arch/x86_64/vdso/Makefile
> @@ -32,7 +32,7 @@ $(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso
>  $(obj)/vdso.so: $(src)/vdso.lds $(vobjs) FORCE
>  	$(call if_changed,syscall)
>  
> -CF := $(PROFILING) -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables
> +CF := $(PROFILING) -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables -m64
>  
>  $(obj)/vclock_gettime.o: CFLAGS = $(CF)
>  $(obj)/vgetcpu.o: CFLAGS = $(CF)

make -f scripts/Makefile.build obj=arch/x86_64/vdso
  gcc -Wp,-MD,arch/x86_64/vdso/.vma.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os  -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1  -fno-omit-frame-pointer -fno-optimize-sibling-calls  -Wdeclaration-after-statement      -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vma)"  -D"KBUILD_MODNAME=KBUILD_STR(vma)" -c -o arch/x86_64/vdso/vma.o arch/x86_64/vdso/vma.c
  gcc -Wp,-MD,arch/x86_64/vdso/.vdso-start.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -D__ASSEMBLY__ -DCONFIG_AS_CFI=1  -m64    -c -o arch/x86_64/vdso/vdso-start.o arch/x86_64/vdso/vdso-start.S
  gcc -Wp,-MD,arch/x86_64/vdso/.vdso-note.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -D__ASSEMBLY__ -DCONFIG_AS_CFI=1  -m64    -c -o arch/x86_64/vdso/vdso-note.o arch/x86_64/vdso/vdso-note.S
  gcc -Wp,-MD,arch/x86_64/vdso/.vclock_gettime.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables -m64     -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vclock_gettime)"  -D"KBUILD_MODNAME=KBUILD_STR(vclock_gettime)" -c -o arch/x86_64/vdso/vclock_gettime.o arch/x86_64/vdso/vclock_gettime.c
  gcc -Wp,-MD,arch/x86_64/vdso/.vgetcpu.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables -m64     -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vgetcpu)"  -D"KBUILD_MODNAME=KBUILD_STR(vgetcpu)" -c -o arch/x86_64/vdso/vgetcpu.o arch/x86_64/vdso/vgetcpu.c
  gcc -Wp,-MD,arch/x86_64/vdso/.vvar.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux/3.4.4/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os  -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1  -fno-omit-frame-pointer -fno-optimize-sibling-calls  -Wdeclaration-after-statement      -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vvar)"  -D"KBUILD_MODNAME=KBUILD_STR(vvar)" -c -o arch/x86_64/vdso/vvar.o arch/x86_64/vdso/vvar.c
  gcc -m elf_x86_64 -nostdlib -fPIC -shared -Wl,-soname=linux-vdso.so.1  -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 -Wl,-T,arch/x86_64/vdso/vdso.lds arch/x86_64/vdso/vdso-start.o arch/x86_64/vdso/vdso-note.o arch/x86_64/vdso/vclock_gettime.o arch/x86_64/vdso/vgetcpu.o arch/x86_64/vdso/vvar.o -o arch/x86_64/vdso/vdso.so
/usr/bin/ld: section .text [ffffffffff700400 -> ffffffffff700687] overlaps section .dynsym [ffffffffff7001d0 -> ffffffffff700427]
collect2: ld returned 1 exit status
make[1]: *** [arch/x86_64/vdso/vdso.so] Error 1
make: *** [arch/x86_64/vdso] Error 2


-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

  reply	other threads:[~2007-04-26 14:39 UTC|newest]

Thread overview: 116+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26  5:57 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 11:47 ` 2.6.21-rc7-mm2 Gabriel C
2007-04-26 20:37   ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 20:46     ` 2.6.21-rc7-mm2 Randy Dunlap
2007-04-29  8:05       ` 2.6.21-rc7-mm2 Geert Uytterhoeven
2007-04-26 20:57     ` 2.6.21-rc7-mm2 Timur Tabi
2007-04-26 21:13       ` 2.6.21-rc7-mm2 Gabriel C
2007-04-26 21:33       ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 12:16 ` 2.6.21-rc7-mm2 -- x86_64 VDSO compile error Andy Whitcroft
2007-04-26 13:27   ` Mel Gorman
2007-04-26 14:11     ` Andi Kleen
2007-04-26 14:31       ` Mel Gorman
2007-04-26 14:13     ` 2.6.21-rc7-mm2 -- x86_64 VDSO compile error II Andi Kleen
2007-04-26 14:39       ` Mel Gorman [this message]
2007-04-26 15:20         ` Mel Gorman
2007-04-26 15:24           ` Andi Kleen
2007-04-26 15:45             ` Mel Gorman
2007-04-27  0:39               ` Andi Kleen
2007-04-27  8:59                 ` Mel Gorman
2007-04-27 15:50                   ` [PATCH] Add vDSO for x86-64 with gettimeofday/clock_gettime/getcpu fix Mel Gorman
2007-04-27 16:34                     ` Andi Kleen
2007-04-27 16:49                       ` Mel Gorman
2007-04-26 12:30 ` 2.6.21-rc7-mm2 -- x86_64 blade hard hangs Andy Whitcroft
2007-04-26 13:51   ` Andi Kleen
2007-04-26 13:33     ` Mel Gorman
2007-04-26 14:46       ` Mel Gorman
2007-04-26 17:40         ` Mel Gorman
     [not found]           ` <20070426234002.GH5475@linux-os.sc.intel.com>
     [not found]             ` <20070427110709.GE3645@skynet.ie>
2007-04-27 17:54               ` Siddha, Suresh B
2007-04-27 23:59                 ` Mel Gorman
2007-04-26 13:17 ` 2.6.21-rc7-mm2 Andy Whitcroft
2007-04-26 13:41   ` 2.6.21-rc7-mm2 -- PPC link failure Andy Whitcroft
2007-04-26 18:14     ` Andy Whitcroft
2007-04-26 18:27       ` Christoph Lameter
2007-04-26 18:40         ` Andy Whitcroft
2007-04-26 18:49           ` Christoph Lameter
2007-04-26 19:12           ` Christoph Lameter
2007-04-26 19:48             ` Andy Whitcroft
2007-04-26 20:23               ` Christoph Lameter
2007-04-27 16:55                 ` Andy Whitcroft
2007-04-27 16:58                   ` Christoph Lameter
2007-04-26 18:25 ` [PATCH] mm/memory.c: remove warning from an uninitialized spinlock. was: Re: 2.6.21-rc7-mm2 Borislav Petkov
2007-04-28  0:22   ` Andrew Morton
2007-04-28  0:27     ` Jeremy Fitzhardinge
2007-04-28  5:57     ` Borislav Petkov
2007-04-28  6:25       ` Borislav Petkov
2007-04-28  6:54         ` Andrew Morton
2007-04-28  7:03         ` Jeremy Fitzhardinge
2007-04-28 23:48     ` Andy Whitcroft
2007-04-29  3:25       ` Andrew Morton
2007-04-29  6:50       ` Borislav Petkov
2007-04-29  8:19         ` Andrew Morton
2007-04-29  9:24         ` Andrew Morton
2007-04-29 21:36           ` Dave Jones
2007-04-29 21:45             ` Andrew Morton
2007-11-07 19:20           ` Steven Rostedt
2007-11-08  5:15             ` Borislav Petkov
2007-04-26 23:47 ` [-mm patch] make drivers/hwmon/applesmc.c:backlight_work static Adrian Bunk
2007-04-26 23:47 ` [-mm patch] unexport highlevel_host_reset Adrian Bunk
2007-04-27  0:16   ` Stefan Richter
2007-04-27  2:31 ` 2.6.21-rc7-mm2 breaks 'lvm vgscan' Valdis.Kletnieks
2007-04-27  2:55   ` Andrew Morton
2007-05-05 18:04   ` Valdis.Kletnieks
2007-04-28 17:56 ` 2.6.21-rc7-mm2 crash: Eeek! page_mapcount(page) went negative! (-1) Tilman Schmidt
2007-04-28 21:10   ` Andrew Morton
2007-04-28 22:06     ` Hugh Dickins
2007-04-30 17:17     ` Tilman Schmidt
2007-04-30 18:21       ` Andrew Morton
2007-04-30 19:28         ` Tilman Schmidt
2007-04-30 19:46           ` Andrew Morton
2007-04-30 21:32             ` Tilman Schmidt
2007-05-01 11:26             ` Tilman Schmidt
2007-05-02  3:10               ` Greg KH
2007-05-02  7:01             ` Tilman Schmidt
2007-05-02  7:02               ` Greg KH
2007-05-02  7:10               ` Andrew Morton
2007-05-02  7:28                 ` Greg KH
2007-05-02  7:43                 ` Greg KH
2007-05-02  9:41                   ` Tilman Schmidt
2007-05-02 22:06                     ` Greg KH
2007-05-02 12:14                   ` Kay Sievers
2007-05-02  7:52                 ` Greg KH
2007-05-02 17:36                   ` Tilman Schmidt
2007-05-02 20:07                     ` Andrew Morton
2007-05-02 21:22                       ` Tilman Schmidt
2007-05-02  7:10               ` Nick Piggin
2007-04-28 19:19 ` [-mm patch] make drivers/misc/thinkpad_acpi:fan_mutex static Adrian Bunk
2007-04-28 19:58   ` Henrique de Moraes Holschuh
2007-04-29  1:53     ` Len Brown
2007-04-29  2:50     ` Adrian Bunk
2007-04-29  4:09       ` Henrique de Moraes Holschuh
2007-04-28 19:19 ` [-mm patch] MMC: make tifm_sd_set_dma_data() static Adrian Bunk
2007-05-01 14:14   ` Pierre Ossman
2007-04-28 19:20 ` [-mm patch] drivers/rtc/rtc-dev.c should #include "rtc-core.h" Adrian Bunk
2007-04-28 19:20 ` [-mm patch] scsi/lpfc/lpfc_init.c: remove unused variable Adrian Bunk
2007-04-29 19:19 ` 2.6.21-rc7-mm2 Dan Kruchinin
2007-04-29 19:48   ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-30  5:01 ` 2.6.21-rc7-mm2 hangs in boot Randy Dunlap
2007-04-30  5:23   ` Andrew Morton
2007-04-30 15:16     ` Randy Dunlap
2007-04-30 23:51       ` 2.6.21-rc7-mm2 hangs in boot (netconsole) Randy Dunlap
2007-05-01  0:12         ` Andrew Morton
2007-05-01  0:45           ` Randy Dunlap
2007-05-01  1:08             ` Andrew Morton
2007-05-01  3:43               ` Andi Kleen
2007-05-01  5:16                 ` Randy Dunlap
2007-05-01  5:23                   ` Andrew Morton
2007-05-01  6:24                     ` Andi Kleen
2007-05-01  5:38                       ` Andrew Morton
2007-05-01 16:15                         ` Randy Dunlap
2007-05-01  6:22                   ` Andi Kleen
2007-05-01 16:22                     ` Randy Dunlap
2007-05-01 17:26                       ` Randy Dunlap
2007-05-04 11:38 ` [PATCH] Re: 2.6.21-rc7-mm2 -- hvsi console driver registration failure Andy Whitcroft
2007-05-04 19:04   ` Linas Vepstas
2007-05-04 20:09   ` Andrew Morton
2007-05-04 21:21     ` Christoph Lameter

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=20070426143902.GD16909@skynet.ie \
    --to=mel@skynet.ie \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=apw@shadowen.org \
    --cc=drfickle@us.ibm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox