Bug 846257 - FTBFS: Bad assembler expressions
Summary: FTBFS: Bad assembler expressions
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: ppc
OS: Linux
high
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-07 09:26 UTC by Karsten Hopp
Modified: 2012-08-07 14:06 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-07 14:06:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2012-08-07 09:26:21 UTC
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
2.
3.
  
Actual results:
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=656110

Comment 1 Josh Boyer 2012-08-07 14:06:24 UTC
This was fixed with:

commit ad36cb0d1d3e2b7f161cd33932433f9349cade1e
Author: Alexander Graf <agraf>
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
    enabled.
    
    Signed-off-by: Alexander Graf <agraf>
    Signed-off-by: Benjamin Herrenschmidt <benh.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.