gcc 4.0.0 and xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Flavio Leitner
Hello!
I tried to compile xen 2.0.6 with gcc 4.0.0 and got lots of warnings like:
'warning: pointer targets in passing argument X of 'function' differ in signedness'
I am seeing the same thing on xen-unstable (xen devel 3.0) and GCC 4.0.0 on a FC4 platform.
I submitted a defect on the Xensource Bugzilla, "Bugzilla Bug 73 gcc4 build break ...", to track this issue.
Quoted 3 lines
Is there any intention of compile xen stable/unstable with gcc 4.0.0?
Thanks!
Signature · 8 lines
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
EuripidesThis problem has been corrected. Fix is in the latest BK source tree.
Quoted 18 lines · David F Barrera
Quoted 9 lines · Flavio Leitner
Hello!
I tried to compile xen 2.0.6 with gcc 4.0.0 and got lots of warnings like:
'warning: pointer targets in passing argument X of 'function' differ in signedness'
I am seeing the same thing on xen-unstable (xen devel 3.0) and GCC 4.0.0 on a FC4 platform.
I submitted a defect on the Xensource Bugzilla, "Bugzilla Bug 73 gcc4 build break ...", to track this issue.Quoted 3 lines
Is there any intention of compile xen stable/unstable with gcc 4.0.0?
Thanks!
Signature · 8 lines
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
EuripidesI checkout bktree from bk://xen.bkbits.net/xeno-unstable.bk and now I'm getting these messages:
make world or make dist
<snip>
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe -I/home/fbl/xeno-unstable.bk/xen/include -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-generic -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c i8259.c -o i8259.o
{standard input}: Assembler messages:
{standard input}:6: Error: suffix or operands invalid for mov' {standard input}:6: Error: suffix or operands invalid for mov' {standard input}:6: Error: suffix or operands invalid for mov' {standard input}:6: Error: suffix or operands invalid for mov' {standard input}:1296: Error: suffix or operands invalid for mov' {standard input}:1296: Error: suffix or operands invalid for mov' <snip>
Quoted 36 lines · David F Barrera
This problem has been corrected. Fix is in the latest BK source tree.
Quoted 18 lines · David F Barrera
Quoted 9 lines · Flavio Leitner
Hello!
I tried to compile xen 2.0.6 with gcc 4.0.0 and got lots of warnings like:
'warning: pointer targets in passing argument X of 'function' differ in signedness'
I am seeing the same thing on xen-unstable (xen devel 3.0) and GCC 4.0.0 on a FC4 platform.
I submitted a defect on the Xensource Bugzilla, "Bugzilla Bug 73 gcc4 build break ...", to track this issue.Quoted 3 lines
Is there any intention of compile xen stable/unstable with gcc 4.0.0?
Thanks!
Signature · 14 lines
Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides _______________________________________________ Xen-users mailing list [email protected] http://lists.xensource.com/xen-users
Signature · 2 lines
Flávio Bruno Leitner <[email protected]> [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]
More info below where is failing.
Quoted 14 lines · Flavio Leitner
I checkout bktree from bk://xen.bkbits.net/xeno-unstable.bk and now I'm getting these messages:
make world or make dist
<snip>
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe(quoted diff) +0
-5-I/home/fbl/xeno-unstable.bk/xen/include -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-generic -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c i8259.c -o i8259.o
Quoted 8 lines
{standard input}: Assembler messages:
{standard input}:6: Error: suffix or operands invalid formov' {standard input}:6: Error: suffix or operands invalid formov' {standard input}:6: Error: suffix or operands invalid formov' {standard input}:6: Error: suffix or operands invalid formov' {standard input}:1296: Error: suffix or operands invalid formov' {standard input}:1296: Error: suffix or operands invalid formov' <snip>
Gcc 4.0.0
Binutils 2.16.90.0.2
The assembler output:
.file "i8259.c"
#APP
.align 16,0x90common_interrupt:
cld;pushl %eax;pushl %ebp;pushl %edi;pushl %esi;pushl %edx;pushl %ecx;pushl %ebx;testl $0x00020000,40(%esp);jz 2f;call setup_vm86_frame;jmp 3f;2:testb $3,36(%esp);jz 1f;movl %ds,56(%esp);movl %es,52(%esp);movl %fs,60(%esp);movl %gs,64(%esp);3:movl $(0xe010),%eax;movl %eax,%ds;movl %eax,%es;1:movl %esp,%eax
pushl %eax
call do_IRQ
addl $4,%esp
jmp ret_from_intr<snip>
spurious_interrupt:
pushl $0xff<<16
cld;pushl %eax;pushl %ebp;pushl %edi;pushl %esi;pushl %edx;pushl %ecx;pushl %ebx;testl $0x00020000,40(%esp);jz 2f;call setup_vm86_frame;jmp 3f;2:testb $3,36(%esp);jz 1f;movl %ds,56(%esp);movl %es,52(%esp);movl %fs,60(%esp);movl %gs,64(%esp);3:movl $(0xe010),%eax;movl %eax,%ds;movl %eax,%es;1:call smp_spurious_interrupt
jmp ret_from_intr#NO_APP
Signature · 2 lines
Flávio Bruno Leitner <[email protected]> [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]
Quoted 21 lines · Flavio Leitner
More info below where is failing.
Quoted 17 lines · Flavio Leitner
I checkout bktree from bk://xen.bkbits.net/xeno-unstable.bk and now I'm getting these messages:
make world or make dist
<snip>
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe(quoted diff) +0
-5-I/home/fbl/xeno-unstable.bk/xen/include -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-generic -I/home/fbl/xeno-unstable.bk/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c i8259.c -o i8259.o{standard input}: Assembler messages:
{standard input}:6: Error: suffix or operands invalid formov' {standard input}:6: Error: suffix or operands invalid formov'
Quoted 8 lines
Quoted 5 lines
{standard input}:6: Error: suffix or operands invalid for
mov' {standard input}:6: Error: suffix or operands invalid formov' {standard input}:1296: Error: suffix or operands invalid formov' {standard input}:1296: Error: suffix or operands invalid formov' <snip>Gcc 4.0.0
Binutils 2.16.90.0.2
these binutils version are unstable CVS (not a good idea to have that IMHO)
and as far as I remember they remove support for "movl %ds, ...". now is must use: "mov %ds, ..."
does the following patch fix your problems ?
xen/include/asm-x86/x86_32/asm_defns.h +4 -4
@@ -19,10 +19,10 @@"jmp 3f;" \ "2:testb $3,"STR(UREGS_cs)"(%esp);" \"jz 1f;" \ - "movl %ds,"STR(UREGS_ds)"(%esp);" \ - "movl %es,"STR(UREGS_es)"(%esp);" \ - "movl %fs,"STR(UREGS_fs)"(%esp);" \ - "movl %gs,"STR(UREGS_gs)"(%esp);" \ + "mov %ds,"STR(UREGS_ds)"(%esp);" \ + "mov %es,"STR(UREGS_es)"(%esp);" \ + "mov %fs,"STR(UREGS_fs)"(%esp);" \ + "mov %gs,"STR(UREGS_gs)"(%esp);" \"3:" #define SAVE_ALL_NOSEGREGS(_reg) \
Signature · 1 line
Vincent Hanquez
Quoted 2 lines
and as far as I remember they remove support for "movl %ds, ...". now is must use: "mov %ds, ..."
Yes, I found this on google.
http://www.kernel.org/pub/linux/devel/binutils/release.binutils-2.16.90.0.2
Quoted 1 line
does the following patch fix your problems ?
Part of it because there are more places. Thanks!
Well, now it breaks because of warnings.
===== xen/arch/x86/x86_32/entry.S 1.112 vs edited =====
xen/arch/x86/x86_32/entry.S +8 -8
@@ -176,10 +176,10 @@ restore_all_guest: testl $X86_EFLAGS_VM,UREGS_eflags(%esp) jnz restore_all_vm86 -FLT1: movl UREGS_ds(%esp),%ds -FLT2: movl UREGS_es(%esp),%es -FLT3: movl UREGS_fs(%esp),%fs -FLT4: movl UREGS_gs(%esp),%gs +FLT1: mov UREGS_ds(%esp),%ds +FLT2: mov UREGS_es(%esp),%es +FLT3: mov UREGS_fs(%esp),%fs +FLT4: mov UREGS_gs(%esp),%gs restore_all_vm86: popl %ebx popl %ecx
@@ -306,7 +306,7 @@ testl $(2|X86_EFLAGS_VM),%ecx jz ring1 /* jump if returning to an existing ring-1 activation */ movl VCPU_kernel_sp(%ebx),%esi -FLT6: movl VCPU_kernel_ss(%ebx),%gs +FLT6: mov VCPU_kernel_ss(%ebx),%gs testl $X86_EFLAGS_VM,UREGS_eflags+4(%esp) jz nvm86_1 subl $16,%esi /* push ES/DS/FS/GS (VM86 stack frame) */
@@ -326,7 +326,7 @@ jmp 1f ring1: /* obtain ss/esp from oldss/oldesp -- a ring-1 activation exists */ movl UREGS_esp+4(%esp),%esi -FLT13: movl UREGS_ss+4(%esp),%gs +FLT13: mov UREGS_ss+4(%esp),%gs 1: /* Construct a stack frame: EFLAGS, CS/EIP */ movb TRAPBOUNCE_flags(%edx),%cl subl $12,%esi
@@ -383,7 +383,7 @@ nvm86_3:/* Rewrite our stack frame and return to ring 1. */ /* IA32 Ref. Vol. 3: TF, VM, RF and NT flags are cleared on trap. */ andl $0xfffcbeff,UREGS_eflags+4(%esp) - movl %gs,UREGS_ss+4(%esp) + mov %gs,UREGS_ss+4(%esp) movl %esi,UREGS_esp+4(%esp) movzwl TRAPBOUNCE_cs(%edx),%eax movl %eax,UREGS_cs+4(%esp)
@@ -670,7 +670,7 @@ # GS:ESI == Ring-1 stack activation movl UREGS_esp(%esp),%esi -VFLT1: movl UREGS_ss(%esp),%gs +VFLT1: mov UREGS_ss(%esp),%gs # ES:EDI == Ring-0 stack activation leal UREGS_eip(%esp),%edi
===== xen/include/asm-x86/x86_32/asm_defns.h 1.10 vs edited =====
xen/include/asm-x86/x86_32/asm_defns.h +12 -12
@@ -19,10 +19,10 @@"jmp 3f;" \ "2:testb $3,"STR(UREGS_cs)"(%esp);" \"jz 1f;" \ - "movl %ds,"STR(UREGS_ds)"(%esp);" \ - "movl %es,"STR(UREGS_es)"(%esp);" \ - "movl %fs,"STR(UREGS_fs)"(%esp);" \ - "movl %gs,"STR(UREGS_gs)"(%esp);" \ + "mov %ds,"STR(UREGS_ds)"(%esp);" \ + "mov %es,"STR(UREGS_es)"(%esp);" \ + "mov %fs,"STR(UREGS_fs)"(%esp);" \ + "mov %gs,"STR(UREGS_gs)"(%esp);" \"3:" #define SAVE_ALL_NOSEGREGS(_reg) \
@@ -31,8 +31,8 @@#define SET_XEN_SEGMENTS (_reg) \ "movl $("STR(__HYPERVISOR_DS)"),%e"STR(_reg)"x;" \ - "movl %e"STR(_reg)"x,%ds;" \ - "movl %e"STR(_reg)"x,%es;" + "mov %e"STR(_reg)"x,%ds;" \ + "mov %e"STR(_reg)"x,%es;"#define SAVE_ALL (_reg) \ __SAVE_ALL_PRE \
@@ -56,10 +56,10 @@ jmp 3f; \ 2:testb $3,UREGS_cs(%esp); \ jz 1f; \ - movl %ds,UREGS_ds(%esp); \ - movl %es,UREGS_es(%esp); \ - movl %fs,UREGS_fs(%esp); \ - movl %gs,UREGS_gs(%esp); \ + mov %ds,UREGS_ds(%esp); \ + mov %es,UREGS_es(%esp); \ + mov %fs,UREGS_fs(%esp); \ + mov %gs,UREGS_gs(%esp); \ 3:#define SAVE_ALL_NOSEGREGS (_reg) \
@@ -68,8 +68,8 @@#define SET_XEN_SEGMENTS (_reg) \ movl $(__HYPERVISOR_DS),%e ## _reg ## x; \ - movl %e ## _reg ## x,%ds; \ - movl %e ## _reg ## x,%es; + mov %e ## _reg ## x,%ds; \ + mov %e ## _reg ## x,%es;#define SAVE_ALL (_reg) \ __SAVE_ALL_PRE \
Signature · 2 lines
Flávio Bruno Leitner <[email protected]> [0EA2 7F40 4CF4 1E63 4AF6 33C0 3E10 E205 F251 EDDA]
Quoted 5 lines · Flavio Leitner
Quoted 1 line
does the following patch fix your problems ?
Part of it because there are more places. Thanks!
Well, now it breaks because of warnings.
Applied thanks.
please don't forget a Signed-off-by line next time.
Signature · 1 line
Vincent Hanquez
I am getting gcc 4.0 errors on xen-unstable, x86_64:
(The last changeset on the source that I am using was ChangeSet 2005/06/10 10:34:30+01:00 [email protected])
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -Wall -g -pipe -Wp,- D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE -fPIC -m64 -fPIC - I../../tools/python/xen/lowlevel/xu -I../../tools/libxc - I../../tools/xenstore -I../../tools/xcs -Ixen/lowlevel/xs - I/usr/include/python2.4 -c xen/lowlevel/xs/xs.c -o build/temp.linux- x86_64-2.4/xen/lowlevel/xs/xs.o -fno-strict-aliasing -Wall -Werror
cc1: warnings being treated as errorsxen/lowlevel/xs/xs.c: In function ‘xspy_read’:xen/lowlevel/xs/xs.c:96: warning: pointer targets in passing argument 3 of ‘xs_read’ differ in signednessxen/lowlevel/xs/xs.c: In function ‘xspy_ls’:xen/lowlevel/xs/xs.c:144: warning: pointer targets in passing argument 3 of ‘xs_directory’ differ in signednessxen/lowlevel/xs/xs.c: In function ‘xspy_get_permissions’:xen/lowlevel/xs/xs.c:193: warning: pointer targets in passing argument 3 of ‘xs_get_permissions’ differ in signedness
error: command 'gcc' failed with exit status 1
make[3]: *** [build] Error 1
make[3]: Leaving directory `/tmp/xen-unstable/tools/python' make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/xen-unstable/tools' make[1]: *** [tools] Error 2
make[1]: Leaving directory `/tmp/xen-unstable'
make: *** [world] Error 2
Quoted 11 lines · Vincent Hanquez
Quoted 5 lines · Flavio Leitner
Quoted 1 line
does the following patch fix your problems ?
Part of it because there are more places. Thanks!
Well, now it breaks because of warnings.
Applied thanks.
please don't forget a Signed-off-by line next time.
Signature · 8 lines
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
EuripidesQuoted 4 lines · David F Barrera
I am getting gcc 4.0 errors on xen-unstable,
x86_64:(The last changeset on the source that I am using was ChangeSet 2005/06/10 10:34:30+01:00 [email protected])
thoses warning has been corrected already.
try to pull a new version.
Signature · 1 line
Vincent Hanquez