From: Randy Dunlap <rdunlap@xenotime.net>
To: Borislav Petkov <bp@alien8.de>,
Trevor Turner <turn3r.tr3v0r@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: K7/Athlon Optimization Causes Build Fail on Kernel 3.3 i686
Date: Wed, 28 Mar 2012 10:13:31 -0700 [thread overview]
Message-ID: <4F7346BB.9020907@xenotime.net> (raw)
In-Reply-To: <20120328171059.GA7919@x1.osrc.amd.com>
On 03/28/2012 10:10 AM, Borislav Petkov wrote:
> On Wed, Mar 28, 2012 at 09:33:35AM -0700, Trevor Turner wrote:
>> On Wed, Mar 28, 2012 at 04:19, Borislav Petkov <bp@alien8.de> wrote:
>>> Right, can you try this with the upstream kernel, i.e.
>>>
>>> 1. get one from kernel.org
>>> 2. copy the .config into the directory where you've unpacked the sources
>>> 3. do 'make oldconfig' and then 'make menuconfig' and go and select Athlon build
>>> 4. do 'make -j3 > w.log 2>&1' so that you can catch the build output into w.log
>>> which you can send later
>>>
>>> Also, which build tools are you using, simply do
>>>
>>> ./scripts/ver_linux
>>>
>>> in the kernel source directory, catch the output and send it on pls.
>>
>> Here's the output of ver_linux:
>> Linux Dark-Server 3.3.0-1-ck #1 SMP Mon Mar 26 07:53:51 PDT 2012 i686
>> AMD Athlon(TM) MP 2000+ AuthenticAMD GNU/Linux
>>
>
> <snip a _lot_ of output>
>
>> LD drivers/usb/built-in.o
>> LD drivers/built-in.o
>> LD vmlinux.o
>> MODPOST vmlinux.o
>> WARNING: modpost: Found 1 section mismatch(es).
>> To see full details build your kernel with:
>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>> GEN .version
>> CHK include/generated/compile.h
>> UPD include/generated/compile.h
>> CC init/version.o
>> LD init/built-in.o
>> LD .tmp_vmlinux1
>> KSYM .tmp_kallsyms1.S
>> AS .tmp_kallsyms1.o
>> LD .tmp_vmlinux2
>> KSYM .tmp_kallsyms2.S
>> AS .tmp_kallsyms2.o
>> LD vmlinux
>> SYSMAP System.map
>> SYSMAP .tmp_System.map
>> Building modules, stage 2.
>> MODPOST 518 modules
>> CC arch/x86/boot/a20.o
>> AS arch/x86/boot/bioscall.o
>> CC arch/x86/boot/cmdline.o
>> AS arch/x86/boot/copy.o
>> HOSTCC arch/x86/boot/mkcpustr
>> CC arch/x86/boot/cpucheck.o
>> CC arch/x86/boot/early_serial_console.o
>> CC arch/x86/boot/edd.o
>> VOFFSET arch/x86/boot/voffset.h
>> LDS arch/x86/boot/compressed/vmlinux.lds
>> AS arch/x86/boot/compressed/head_32.o
>> CC arch/x86/boot/compressed/misc.o
>> CC arch/x86/boot/main.o
>> CC arch/x86/boot/mca.o
>> CC arch/x86/boot/memory.o
>> CC arch/x86/boot/compressed/string.o
>> CC arch/x86/boot/compressed/cmdline.o
>> CC arch/x86/boot/compressed/early_serial_console.o
>> OBJCOPY arch/x86/boot/compressed/vmlinux.bin
>> HOSTCC arch/x86/boot/compressed/relocs
>> HOSTCC arch/x86/boot/compressed/mkpiggy
>> arch/x86/boot/compressed/relocs.c: In function ‘print_absolute_symbols’:
>> arch/x86/boot/compressed/relocs.c:405:14: warning: variable
>> ‘sh_symtab’ set but not used [-Wunused-but-set-variable]
>> CC arch/x86/boot/compressed/eboot.o
>> AS arch/x86/boot/compressed/efi_stub_32.o
>> RELOCS arch/x86/boot/compressed/vmlinux.relocs
>> GZIP arch/x86/boot/compressed/vmlinux.bin.gz
>> CC crypto/arc4.mod.o
>> CC arch/x86/boot/pm.o
>> AS arch/x86/boot/pmjump.o
>> CC crypto/crc32c.mod.o
>> CC arch/x86/boot/printf.o
>> CC crypto/deflate.mod.o
>> CC arch/x86/boot/regs.o
>> CC arch/x86/boot/string.o
>> CC arch/x86/boot/tty.o
>> CC crypto/des_generic.mod.o
>> MKPIGGY arch/x86/boot/compressed/piggy.S
>> AS arch/x86/boot/compressed/piggy.o
>> CC arch/x86/boot/video.o
>> CC crypto/ecb.mod.o
>> arch/x86/boot/compressed/eboot.o: In function `efi_main':
>> eboot.c:(.text+0x1530): undefined reference to `_mmx_memcpy'
>> eboot.c:(.text+0x17d0): undefined reference to `_mmx_memcpy'
>> make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 1
>> make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
>> make[1]: *** Waiting for unfinished jobs....
>
> This is the problem and I was able to reproduce it on a similar box
> here:
Yes, that's the build error that I got also.
> processor : 0
> vendor_id : AuthenticAMD
> cpu family : 6
> model : 6
> model name : AMD Athlon(tm) XP 1800+
> stepping : 2
> cpu MHz : 1533.265
> cache size : 256 KB
>
> It should be fixed by disabling
>
> CONFIG_EFI=y
> CONFIG_EFI_STUB=y
>
> in your config. K7 and EFI are from different epochs anyway and cannot
> obviously be enabled both on the same system with the current Kconfig
> for EFI.
but the Kconfig files shouldn't allow such a failing .config to be
created, or the Makefiles are inadequate, or <mumble something>....
:(
--
~Randy
next prev parent reply other threads:[~2012-03-28 17:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 13:56 K7/Athlon Optimization Causes Build Fail on Kernel 3.3 i686 Trevor Turner
2012-03-27 17:29 ` Randy Dunlap
2012-03-28 0:03 ` Trevor Turner
2012-03-28 11:19 ` Borislav Petkov
2012-03-28 16:33 ` Trevor Turner
2012-03-28 17:10 ` Borislav Petkov
2012-03-28 17:13 ` Randy Dunlap [this message]
2012-03-28 17:27 ` Borislav Petkov
2012-03-29 7:48 ` Borislav Petkov
2012-03-29 8:14 ` Matt Fleming
2012-03-29 10:48 ` Borislav Petkov
2012-03-29 18:21 ` Trevor Turner
2012-03-29 18:28 ` H. Peter Anvin
2012-03-29 20:46 ` Borislav Petkov
2012-03-29 20:49 ` H. Peter Anvin
2012-03-30 7:47 ` Borislav Petkov
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=4F7346BB.9020907@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=turn3r.tr3v0r@gmail.com \
/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