* ARCH=x86 patch
@ 2009-09-25 9:37 H. Peter Anvin
2009-09-25 9:50 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: H. Peter Anvin @ 2009-09-25 9:37 UTC (permalink / raw)
To: David Woodhouse, Jeff Dike, Sam Ravnborg
Cc: Ingo Molnar, Thomas Gleixner, Linux Kernel Mailing List
I am confused, because I could have sworn I had tested this combination
already, but having applied Jeff's UM fix and then David's ARCH=x86
patch on top of that, I now find that all the 32-bit builds crap out
when building on a 64-bit platform, due to asm-offsets.c being compiled
with -m64 rather than -m32.
One possibility is that this is a toolchain difference, since I ran the
previous tests on a Fedora 11 workstation, and I did this test tonight
on a Fedora 10 laptop.
This happens both with unmodified patches on top of the current
tip/x86/kbuild branch, and on top of linus/master with appropriate
updates to Jeff's patch to deal with CPPFLAGS_vmlinux.lds having moved
around inside the UML tree.
I probably won't have time myself to debug this before Linus has to
close the merge window, but I'm willing to ask for a late pull for this
given that it's build infrastructure only and the scheduling weirdness
introduced by LinuxCon/LPC.
Error below.
-hpa
gcc -Wp,-MD,arch/x86/kernel/.asm-offsets.s.d -nostdinc -isystem
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/include -Iinclude -Iinclude2
-I/home/hpa/kernel/linux-2.6-tip/include
-I/home/hpa/kernel/linux-2.6-tip/arch/x86/include -include
include/linux/autoconf.h -I/home/hpa/kernel/linux-2.6-tip/. -I.
-D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-Wno-format-security -fno-delete-null-pointer-checks -m64 -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fprofile-arcs -ftest-coverage -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)"
-D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -D"DEBUG_HASH=16"
-D"DEBUG_HASH2=7" -fverbose-asm -S -o arch/x86/kernel/asm-offsets.s
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c
In file included from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/percpu.h:45,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/current.h:5,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/processor.h:15,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic_32.h:6,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic.h:2,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/crypto.h:20,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:7,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c:2:
/home/hpa/kernel/linux-2.6-tip/include/linux/kernel.h:184: warning:
conflicting types for built-in function ‘snprintf’
/home/hpa/kernel/linux-2.6-tip/include/linux/kernel.h:186: warning:
conflicting types for built-in function ‘vsnprintf’
In file included from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string.h:2,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/string.h:21,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/bitmap.h:8,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/cpumask.h:142,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:49,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/irqflags.h:55,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/irqflags.h:57,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/system.h:11,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/processor.h:17,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic_32.h:6,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic.h:2,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/crypto.h:20,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:7,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c:2:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:12:
warning: conflicting types for built-in function ‘strncpy’
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:18:
warning: conflicting types for built-in function ‘strncat’
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:24:
warning: conflicting types for built-in function ‘strncmp’
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:30:
warning: conflicting types for built-in function ‘strlen’
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:196:
warning: conflicting types for built-in function ‘memmove’
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/string_32.h:201:
warning: conflicting types for built-in function ‘memchr’
In file included from
/home/hpa/kernel/linux-2.6-tip/include/linux/bitmap.h:8,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/cpumask.h:142,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:49,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/irqflags.h:55,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/irqflags.h:57,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/system.h:11,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/processor.h:17,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic_32.h:6,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic.h:2,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/crypto.h:20,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:7,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c:2:
/home/hpa/kernel/linux-2.6-tip/include/linux/string.h:54: warning:
conflicting types for built-in function ‘strncasecmp’
/home/hpa/kernel/linux-2.6-tip/include/linux/string.h:82: warning:
conflicting types for built-in function ‘strspn’
/home/hpa/kernel/linux-2.6-tip/include/linux/string.h:85: warning:
conflicting types for built-in function ‘strcspn’
/home/hpa/kernel/linux-2.6-tip/include/linux/string.h:101: warning:
conflicting types for built-in function ‘__builtin_memcmp’
In file included from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/irqflags.h:55,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/irqflags.h:57,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/system.h:11,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/processor.h:17,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic_32.h:6,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/atomic.h:2,
from
/home/hpa/kernel/linux-2.6-tip/include/linux/crypto.h:20,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:7,
from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c:2:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h: In
function ‘__cpuid’:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:725:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:725:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:725:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:725:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h: In
function ‘write_gdt_entry’:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:992:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:992:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h: In
function ‘ptep_modify_prot_commit’:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:1230:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:1230:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h: In
function ‘set_pte_at’:
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:1251:
warning: cast from pointer to integer of different size
/home/hpa/kernel/linux-2.6-tip/arch/x86/include/asm/paravirt.h:1251:
warning: cast from pointer to integer of different size
In file included from
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets.c:2:
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c: In
function ‘foo’:
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:76:
error: ‘struct pt_regs’ has no member named ‘ds’
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:77:
error: ‘struct pt_regs’ has no member named ‘es’
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:78:
error: ‘struct pt_regs’ has no member named ‘fs’
/home/hpa/kernel/linux-2.6-tip/arch/x86/kernel/asm-offsets_32.c:79:
error: ‘struct pt_regs’ has no member named ‘gs’
make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ARCH=x86 patch
2009-09-25 9:37 ARCH=x86 patch H. Peter Anvin
@ 2009-09-25 9:50 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2009-09-25 9:50 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Jeff Dike, Sam Ravnborg, Ingo Molnar, Thomas Gleixner,
Linux Kernel Mailing List
On Fri, 2009-09-25 at 02:37 -0700, H. Peter Anvin wrote:
> I am confused, because I could have sworn I had tested this combination
> already, but having applied Jeff's UM fix and then David's ARCH=x86
> patch on top of that, I now find that all the 32-bit builds crap out
> when building on a 64-bit platform, due to asm-offsets.c being compiled
> with -m64 rather than -m32.
Argh.
All this nonsense simply because Ingo objected to my previous patch...
purely on the basis that it made 'make randconfig' actually random.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-25 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-25 9:37 ARCH=x86 patch H. Peter Anvin
2009-09-25 9:50 ` David Woodhouse
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.