Bug 846257 - FTBFS: Bad assembler expressions
FTBFS: Bad assembler expressions
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
ppc Linux
high Severity high
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-08-07 05:26 EDT by Karsten Hopp
Modified: 2012-08-07 10:06 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-07 10:06:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Karsten Hopp 2012-08-07 05:26:21 EDT
Description of problem:
kernel-3.6.0-0.rc0.git1.2.fc18 fails to build on PPC (32bit):

Checking prom_init.o symbol 'strncmp'
Checking prom_init.o symbol 'strstr'
In file included from arch/powerpc/kernel/head_32.S:882:0:
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:70:0: warning: "MTMSR_EERI" redefined [enabled by default]
In file included from arch/powerpc/kernel/head_32.S:32:0:
/builddir/build/BUILD/kernel-3.5.fc18/linux-3.6.0-0.rc0.git1.2.fc18.ppc/arch/powerpc/include/asm/ppc_asm.h:490:0: note: this is the location of the previous definition
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S: Assembler messages:
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: bad expression
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: missing ')'
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: syntax error; found `r', expected `,'
arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: junk at end of line: `r9)'
arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: bad expression
arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: missing ')'
arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: syntax error; found `r', expected `,'
arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: junk at end of line: `r6)'
make[1]: *** [arch/powerpc/kernel/head_32.o] Error 1
make: *** [arch/powerpc/kernel] Error 2

Steps to Reproduce:
1. ppc-koji build --scratch f18 kernel-3.6.0-0.rc0.git1.2.fc18.src.rpm
Actual results:
Comment 1 Josh Boyer 2012-08-07 10:06:24 EDT
This was fixed with:

commit ad36cb0d1d3e2b7f161cd33932433f9349cade1e
Author: Alexander Graf <agraf@suse.de>
Date:   Mon Jul 30 12:32:59 2012 +0000

    powerpc/kvm/book3s_32: Fix MTMSR_EERI macro
    Commit b38c77d82e4 moved the MTMSR_EERI macro from the KVM code to generic
    ppc_asm.h code. However, while adding it in the headers for the ppc32 case,
    it missed out to remove the former definition in the KVM code.
    This patch fixes compilation on server type PPC32 targets with CONFIG_KVM
    Signed-off-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

which is in 3.6-rc1.  Already in rawhide.

Note You need to log in before you can comment on or make changes to this bug.