2006-03-30 01:53:21

by Voluspa

[permalink] [raw]
Subject: [2.6.16-gitX] (x86_64) WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux


Git versions keep incrementing but no fix for:

BUILD arch/x86_64/boot/bzImage
Root device is (3, 2)
Boot sector 512 bytes.
Setup is 4696 bytes.
System is 1530 kB
Kernel: arch/x86_64/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST
WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux

And every module built ouside of the kernel also spews that message. Has
been the case since this got in:

6edfba1b33c701108717f4e036320fc39abe1912 is first bad commit
diff-tree 6edfba1b33c701108717f4e036320fc39abe1912 (from 681558fdb5848f0a6dc248108f0f7323f7380857)
Author: Andi Kleen <[email protected]>
Date: Sat Mar 25 16:29:49 2006 +0100

[PATCH] x86_64: Don't define string functions to builtin

gcc should handle this anyways, and it causes problems when
sprintf is turned into strcpy by gcc behind our backs and
the C fallback version of strcpy is actually defining __builtin_strcpy

Then drop -ffreestanding from the main Makefile because it isn't
needed anymore and implies -fno-builtin, which is wrong now.
(it was only added for x86-64, so dropping it should be safe)

Noticed by Roman Zippel

Cc: Roman Zippel <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>

Or at least that's what an "almost" complete bisect says. I was down to
the very last test, and that one didn't compile, so I said 'git-bisect good'
based on the commit subject (it shouldn't have any bearing to this issue).

git-bisect start
# bad: [5a3a5a98b6422d05c39eaa32c8b3f83840c7b768] Add flush_kernel_dcache_page() API
git-bisect bad 5a3a5a98b6422d05c39eaa32c8b3f83840c7b768
# good: [2e1ca21d46aaef95101723fa402f39d3a95aba59] Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild
git-bisect good 2e1ca21d46aaef95101723fa402f39d3a95aba59
# bad: [2e9abdd9bad485970b37cd53a82f92702054984c] Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
git-bisect bad 2e9abdd9bad485970b37cd53a82f92702054984c
# good: [2b514e74f4e59e3b8e54891580fef2c9ff6c7bd0] x86_64: eliminate set_debug()
git-bisect good 2b514e74f4e59e3b8e54891580fef2c9ff6c7bd0
# bad: [4bdc3b7f1b730c07f5a6ccca77ee68e044036ffc] x86_64: Basic reorder infrastructure
git-bisect bad 4bdc3b7f1b730c07f5a6ccca77ee68e044036ffc
# bad: [4bc32c4d5cde5c57edcc9c2fe5057da8a4dd0153] x86_64: Implement compat code for raw1394 read/write
git-bisect bad 4bc32c4d5cde5c57edcc9c2fe5057da8a4dd0153
# good: [681558fdb5848f0a6dc248108f0f7323f7380857] x86_64: Check that early arguments are words on their own
git-bisect good 681558fdb5848f0a6dc248108f0f7323f7380857
# bad: [1f50249e940baa7133e0bdb32cd564bb3ba28456] x86_64: Make pfn_valid work early in boot
git-bisect bad 1f50249e940baa7133e0bdb32cd564bb3ba28456
# bad: [b2b978f98036717e2508cf3288aecb8f9c7d724e] x86_64: Fix wrong PCI ID for ALI M1695 AGP bridge
git-bisect bad b2b978f98036717e2508cf3288aecb8f9c7d724e
# bad: [6edfba1b33c701108717f4e036320fc39abe1912] x86_64: Don't define string functions to builtin
git-bisect bad 6edfba1b33c701108717f4e036320fc39abe1912

Mvh
Mats Johannesson
--


2006-03-30 02:06:05

by Andi Kleen

[permalink] [raw]
Subject: Re: [2.6.16-gitX] (x86_64) WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux

On Thursday 30 March 2006 03:53, Voluspa wrote:
>
> Git versions keep incrementing but no fix for:
>
> BUILD arch/x86_64/boot/bzImage
> Root device is (3, 2)
> Boot sector 512 bytes.
> Setup is 4696 bytes.
> System is 1530 kB
> Kernel: arch/x86_64/boot/bzImage is ready (#1)
> Building modules, stage 2.
> MODPOST
> WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux
>
> And every module built ouside of the kernel also spews that message. Has
> been the case since this got in:


My kernel build doesn't say that. Please send your .config and state
which gcc version are you using.

-Andi

2006-03-30 02:18:11

by Voluspa

[permalink] [raw]
Subject: Re: [2.6.16-gitX] (x86_64) WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux

On Thu, 30 Mar 2006 04:05:58 +0200 Andi Kleen wrote:
> On Thursday 30 March 2006 03:53, Voluspa wrote:
> >
> > Git versions keep incrementing but no fix for:
> >
> > BUILD arch/x86_64/boot/bzImage
> > Root device is (3, 2)
> > Boot sector 512 bytes.
> > Setup is 4696 bytes.
> > System is 1530 kB
> > Kernel: arch/x86_64/boot/bzImage is ready (#1)
> > Building modules, stage 2.
> > MODPOST
> > WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux
> >
> > And every module built ouside of the kernel also spews that message. Has
> > been the case since this got in:
>
>
> My kernel build doesn't say that. Please send your .config and state
> which gcc version are you using.
>

loke@sleipner:/home/git$ gcc --version
gcc (GCC) 3.4.4

This is a slamd64 current distribution. Attaching .config

Mvh
Mats Johannesson
--


Attachments:
dot-config-2.6.16-git.txt (28.54 kB)

2006-03-30 10:35:06

by Andi Kleen

[permalink] [raw]
Subject: Re: [2.6.16-gitX] (x86_64) WARNING: vmlinux: 'strlen' exported twice. Previous export was in vmlinux

On Thursday 30 March 2006 04:17, Voluspa wrote:

> loke@sleipner:/home/git$ gcc --version
> gcc (GCC) 3.4.4
>
> This is a slamd64 current distribution. Attaching .config

Ok thanks fixed now.

-Andi