Skip to contentSkip to conversation

bad register name `%sil' when building debug enabled xen 3.3.1 with gcc 4.4.0 on fedora 11

DISCUSSION Pasi Kärkkäinen 2 participants 5 messages May 4, 2009 – May 5, 2009

lore
Share & tools
lore
#0 lore raw

Hello!

Has anyone seen this error?:

traps.c: Assembler messages:
traps.c:1343: Error: bad register name `%sil'
make[4]: *** [traps.o] Error 1
make[4]: Leaving directory `/root/rpmbuild/BUILD/xen-3.3.1/xen/arch/x86' make[3]: *** [/root/rpmbuild/BUILD/xen-3.3.1/xen/arch/x86/built_in.o] Error 2

I'm trying to rebuild Fedora xen-3.3.1-11.fc11.src.rpm with debugging enabled ("debug=y verbose=y crash_debug=y").

Normal non-debug build succeeds fine without errors.. gcc bug? xen bug?

Thanks!

-- Pasi

#1 lore raw
Quoted 10 lines · Pasi Kärkkäinen

Hello!

Has anyone seen this error?:

traps.c: Assembler messages:
traps.c:1343: Error: bad register name `%sil'
make[4]: *** [traps.o] Error 1
make[4]: Leaving directory `/root/rpmbuild/BUILD/xen-3.3.1/xen/arch/x86' make[3]: *** [/root/rpmbuild/BUILD/xen-3.3.1/xen/arch/x86/built_in.o] Error 2

Quoted 5 lines

I'm trying to rebuild Fedora xen-3.3.1-11.fc11.src.rpm with debugging enabled ("debug=y verbose=y crash_debug=y").

Normal non-debug build succeeds fine without errors.. gcc bug? xen bug?

# gcc --version
gcc (GCC) 4.4.0 20090427 (Red Hat 4.4.0-3)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- Pasi

Quoted 8 lines

Thanks!

-- Pasi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Pasi Kärkkäinen
Quoted 4 lines · Pasi Kärkkäinen

I'm trying to rebuild Fedora xen-3.3.1-11.fc11.src.rpm with debugging enabled ("debug=y verbose=y crash_debug=y").

Normal non-debug build succeeds fine without errors.. gcc bug? xen bug?

A couple of asm constraints should be "=qm" rather than "=rm". I will fix for 3.4.0 and 3.3.1. You can use the attached patch to fix your build.

-- Keir

# HG changeset patch
# User Keir Fraser <[email protected]> # Date 1241473938 -3600
# Node ID 7a73e3aeb2244e1b9754cbea44cd61cfd594e88d # Parent f80cf52a4fb6bae6a9f023425ff8e7a9f3ea726a
x86: Fix a couple of asm constraints.

xen/arch/x86/traps.c +2 -2
diff -r f80cf52a4fb6 -r 7a73e3aeb224 xen/arch/x86/traps.c
@@ -1364,11 +1364,11 @@
 
             asm volatile (
                 "larl %2,%0 ; setz %1"
-                : "=r" (a), "=rm" (valid) : "rm" (sel));
+                : "=r" (a), "=qm" (valid) : "rm" (sel));
             BUG_ON(valid && ((a & 0x00f0ff00) != *ar));
             asm volatile (
                 "lsll %2,%0 ; setz %1"
-                : "=r" (l), "=rm" (valid) : "rm" (sel));
+                : "=r" (l), "=qm" (valid) : "rm" (sel));
             BUG_ON(valid && (l != *limit));
         }
 #endif

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 10 lines · Keir Fraser
Quoted 4 lines · Pasi Kärkkäinen

I'm trying to rebuild Fedora xen-3.3.1-11.fc11.src.rpm with debugging enabled ("debug=y verbose=y crash_debug=y").

Normal non-debug build succeeds fine without errors.. gcc bug? xen bug?

A couple of asm constraints should be "=qm" rather than "=rm". I will fix for 3.4.0 and 3.3.1. You can use the attached patch to fix your build.

Thanks!

I'll try the patch later today.

-- Pasi

#4 lore raw
Quoted 8 lines · Pasi Kärkkäinen
Quoted 7 lines · Keir Fraser
Quoted 4 lines · Pasi Kärkkäinen

I'm trying to rebuild Fedora xen-3.3.1-11.fc11.src.rpm with debugging enabled ("debug=y verbose=y crash_debug=y").

Normal non-debug build succeeds fine without errors.. gcc bug? xen bug?

Quoted 8 lines
Quoted 3 lines

A couple of asm constraints should be "=qm" rather than "=rm". I will fix for 3.4.0 and 3.3.1. You can use the attached patch to fix your build.

Thanks!

I'll try the patch later today.

And indeed, the attached patch fixes the problem!

Thanks again.

Now back to debugging pv_ops dom0 kernels :-)

-- Pasi