PPC build errors in CVS
PPC compiling has been broken for me in CVS for a few days and is getting worse. I'm running Red Hat 9.
make -C i386-linux-user all
make[1]: Entering directory `/home/wine/qemu/i386-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/i386-linux-user'
make -C arm-linux-user all
make[1]: Entering directory `/home/wine/qemu/arm-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/arm-linux-user'
make -C armeb-linux-user all
make[1]: Entering directory `/home/wine/qemu/armeb-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/armeb-linux-user'
make -C sparc-linux-user all
make[1]: Entering directory `/home/wine/qemu/sparc-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/sparc-linux-user'
make -C ppc-linux-user all
make[1]: Entering directory `/home/wine/qemu/ppc-linux-user'
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/wine/qemu/target-ppc -I/home/wine/qemu -I/home/wine/qemu/linux-user -I/home/wine/qemu/linux-user/ppc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/wine/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/wine/qemu/slirp -c -o translate.o /home/wine/qemu/target-ppc/translate.c/home/wine/qemu/target-ppc/translate.c:6833:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate.c:6832:56: unterminated argument list invoking macro "unlikely" /home/wine/qemu/target-ppc/translate.c: In function `gen_intermediate_code_internal':/home/wine/qemu/target-ppc/translate.c:6834: `unlikely' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate.c:6834: (Each undeclared identifier is reported only once /home/wine/qemu/target-ppc/translate.c:6834: for each function it appears in.) /home/wine/qemu/target-ppc/translate.c:6834: parse error before "ctx" /home/wine/qemu/target-ppc/translate.c:6838: parse error before ')' token /home/wine/qemu/target-ppc/translate.c:6839: warning: no return statement in function returning non-void /home/wine/qemu/target-ppc/translate.c: At top level:/home/wine/qemu/target-ppc/translate.c:6839: parse error before "while" /home/wine/qemu/target-ppc/translate.c:6856: warning: type defaults to int' in declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: conflicting types for gen_op_exit_tb' gen-op.h:2743: previous declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6857: parse error before '}' token /home/wine/qemu/target-ppc/translate.c:6858: warning: type defaults to int' in declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: conflicting types for gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:51: previous declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6859: parse error before "if" /home/wine/qemu/target-ppc/translate.c:6870: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6870: warning: type defaults to int' in declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: conflicting types for cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6555: previous declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6874: warning: type defaults to int' in declaration of flags' /home/wine/qemu/target-ppc/translate.c:6874: `env' undeclared here (not in a function) /home/wine/qemu/target-ppc/translate.c:6874: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6875: parse error before '|=' token /home/wine/qemu/target-ppc/translate.c:6876: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6877: parse error before '.' token /home/wine/qemu/target-ppc/translate.c:6877: warning: type defaults to int' in declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: conflicting types for target_disas' ../disas.h:6: previous declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6878: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6878: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: conflicting types for built-in function fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6882: warning: type defaults to int' in declaration of dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: parameter names (without types) in function declaration /home/wine/qemu/target-ppc/translate.c:6882: conflicting types for dump_ops' ../exec-all.h:99: previous declaration of `dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6883: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6883: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6883: warning: data definition has no type or storage class make[1]: *** [translate.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/wine/qemu/ppc-linux-user'
make: *** [subdir-ppc-linux-user] Error 2
make -C mips-linux-user all
make[1]: Entering directory `/home/wine/qemu/mips-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mips-linux-user'
make -C mipsel-linux-user all
make[1]: Entering directory `/home/wine/qemu/mipsel-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mipsel-linux-user'
make -C m68k-linux-user all
make[1]: Entering directory `/home/wine/qemu/m68k-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/m68k-linux-user'
make -C alpha-linux-user all
make[1]: Entering directory `/home/wine/qemu/alpha-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/alpha-linux-user'
make -C ppc64-linux-user all
make[1]: Entering directory `/home/wine/qemu/ppc64-linux-user'
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/wine/qemu/target-ppc -I/home/wine/qemu -I/home/wine/qemu/linux-user -I/home/wine/qemu/linux-user/ppc64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/wine/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/wine/qemu/slirp -c -o translate.o /home/wine/qemu/target-ppc/translate.c
In file included from /home/wine/qemu/target-ppc/translate.c:6539:/home/wine/qemu/target-ppc/translate_init.c:4053:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate_init.c:4052:55: unterminated argument list invoking macro "spr_register" In file included from /home/wine/qemu/target-ppc/translate.c:6539:/home/wine/qemu/target-ppc/translate_init.c: In function `init_proc_970':/home/wine/qemu/target-ppc/translate_init.c:4054: `spr_register' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate_init.c:4054: (Each undeclared identifier is reported only once /home/wine/qemu/target-ppc/translate_init.c:4054: for each function it appears in.) /home/wine/qemu/target-ppc/translate_init.c:4054: parse error before numeric constant /home/wine/qemu/target-ppc/translate_init.c:4126:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate_init.c:4125:55: unterminated argument list invoking macro "spr_register" In file included from /home/wine/qemu/target-ppc/translate.c:6539:/home/wine/qemu/target-ppc/translate_init.c: In function `init_proc_970FX':/home/wine/qemu/target-ppc/translate_init.c:4127: `spr_register' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate_init.c:4127: parse error before numeric constant /home/wine/qemu/target-ppc/translate_init.c:4199:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate_init.c:4198:55: unterminated argument list invoking macro "spr_register" In file included from /home/wine/qemu/target-ppc/translate.c:6539:/home/wine/qemu/target-ppc/translate_init.c: In function `init_proc_970GX':/home/wine/qemu/target-ppc/translate_init.c:4200: `spr_register' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate_init.c:4200: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6833:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate.c:6832:56: unterminated argument list invoking macro "unlikely" /home/wine/qemu/target-ppc/translate.c: In function `gen_intermediate_code_internal':/home/wine/qemu/target-ppc/translate.c:6834: `unlikely' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate.c:6834: parse error before "ctx" /home/wine/qemu/target-ppc/translate.c:6838: parse error before ')' token /home/wine/qemu/target-ppc/translate.c:6839: warning: no return statement in function returning non-void /home/wine/qemu/target-ppc/translate.c: At top level:/home/wine/qemu/target-ppc/translate.c:6839: parse error before "while" /home/wine/qemu/target-ppc/translate.c:6856: warning: type defaults to int' in declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: conflicting types for gen_op_exit_tb' gen-op.h:2764: previous declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6857: parse error before '}' token /home/wine/qemu/target-ppc/translate.c:6858: warning: type defaults to int' in declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: conflicting types for gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:51: previous declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6859: parse error before "if" /home/wine/qemu/target-ppc/translate.c:6870: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6870: warning: type defaults to int' in declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: conflicting types for cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6555: previous declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6874: warning: type defaults to int' in declaration of flags' /home/wine/qemu/target-ppc/translate.c:6874: `env' undeclared here (not in a function) /home/wine/qemu/target-ppc/translate.c:6874: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6875: parse error before '|=' token /home/wine/qemu/target-ppc/translate.c:6876: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6877: parse error before '.' token /home/wine/qemu/target-ppc/translate.c:6877: warning: type defaults to int' in declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: conflicting types for target_disas' ../disas.h:6: previous declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6878: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6878: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: conflicting types for built-in function fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6882: warning: type defaults to int' in declaration of dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: parameter names (without types) in function declaration /home/wine/qemu/target-ppc/translate.c:6882: conflicting types for dump_ops' ../exec-all.h:99: previous declaration of `dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6883: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6883: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6883: warning: data definition has no type or storage class make[1]: *** [translate.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/wine/qemu/ppc64-linux-user'
make: *** [subdir-ppc64-linux-user] Error 2
make -C sh4-linux-user all
make[1]: Entering directory `/home/wine/qemu/sh4-linux-user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/sh4-linux-user'
make -C i386-softmmu all
make[1]: Entering directory `/home/wine/qemu/i386-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/i386-softmmu'
make -C ppc-softmmu all
make[1]: Entering directory `/home/wine/qemu/ppc-softmmu'
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/wine/qemu/target-ppc -I/home/wine/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/wine/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/wine/qemu/slirp -c -o translate.o /home/wine/qemu/target-ppc/translate.c/home/wine/qemu/target-ppc/translate.c:6833:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate.c:6832:56: unterminated argument list invoking macro "unlikely" /home/wine/qemu/target-ppc/translate.c: In function `gen_intermediate_code_internal':/home/wine/qemu/target-ppc/translate.c:6836: `unlikely' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate.c:6836: (Each undeclared identifier is reported only once /home/wine/qemu/target-ppc/translate.c:6836: for each function it appears in.) /home/wine/qemu/target-ppc/translate.c:6836: parse error before "ctx" /home/wine/qemu/target-ppc/translate.c:6838: parse error before ')' token /home/wine/qemu/target-ppc/translate.c:6839: warning: no return statement in function returning non-void /home/wine/qemu/target-ppc/translate.c: At top level:/home/wine/qemu/target-ppc/translate.c:6839: parse error before "while" /home/wine/qemu/target-ppc/translate.c:6856: warning: type defaults to int' in declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: conflicting types for gen_op_exit_tb' gen-op.h:2743: previous declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6857: parse error before '}' token /home/wine/qemu/target-ppc/translate.c:6858: warning: type defaults to int' in declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: conflicting types for gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:51: previous declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6859: parse error before "if" /home/wine/qemu/target-ppc/translate.c:6870: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6870: warning: type defaults to int' in declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: conflicting types for cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6555: previous declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6874: warning: type defaults to int' in declaration of flags' /home/wine/qemu/target-ppc/translate.c:6874: `env' undeclared here (not in a function) /home/wine/qemu/target-ppc/translate.c:6874: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6875: parse error before '|=' token /home/wine/qemu/target-ppc/translate.c:6876: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6877: parse error before '.' token /home/wine/qemu/target-ppc/translate.c:6877: warning: type defaults to int' in declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: conflicting types for target_disas' ../disas.h:6: previous declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6878: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6878: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: conflicting types for built-in function fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6882: warning: type defaults to int' in declaration of dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: parameter names (without types) in function declaration /home/wine/qemu/target-ppc/translate.c:6882: conflicting types for dump_ops' ../exec-all.h:99: previous declaration of `dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6883: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6883: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6883: warning: data definition has no type or storage class make[1]: *** [translate.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/wine/qemu/ppc-softmmu'
make: *** [subdir-ppc-softmmu] Error 2
make -C sparc-softmmu all
make[1]: Entering directory `/home/wine/qemu/sparc-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/sparc-softmmu'
make -C x86_64-softmmu all
make[1]: Entering directory `/home/wine/qemu/x86_64-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/x86_64-softmmu'
make -C mips-softmmu all
make[1]: Entering directory `/home/wine/qemu/mips-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mips-softmmu'
make -C mipsel-softmmu all
make[1]: Entering directory `/home/wine/qemu/mipsel-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mipsel-softmmu'
make -C mips64-softmmu all
make[1]: Entering directory `/home/wine/qemu/mips64-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mips64-softmmu'
make -C mips64el-softmmu all
make[1]: Entering directory `/home/wine/qemu/mips64el-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/mips64el-softmmu'
make -C arm-softmmu all
make[1]: Entering directory `/home/wine/qemu/arm-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/arm-softmmu'
make -C ppc64-softmmu all
make[1]: Entering directory `/home/wine/qemu/ppc64-softmmu'
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/wine/qemu/target-ppc -I/home/wine/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/wine/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/wine/qemu/slirp -c -o translate.o /home/wine/qemu/target-ppc/translate.c/home/wine/qemu/target-ppc/translate.c:6833:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate.c:6832:56: unterminated argument list invoking macro "unlikely" /home/wine/qemu/target-ppc/translate.c: In function `gen_intermediate_code_internal':/home/wine/qemu/target-ppc/translate.c:6836: `unlikely' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate.c:6836: (Each undeclared identifier is reported only once /home/wine/qemu/target-ppc/translate.c:6836: for each function it appears in.) /home/wine/qemu/target-ppc/translate.c:6836: parse error before "ctx" /home/wine/qemu/target-ppc/translate.c:6838: parse error before ')' token /home/wine/qemu/target-ppc/translate.c:6839: warning: no return statement in function returning non-void /home/wine/qemu/target-ppc/translate.c: At top level:/home/wine/qemu/target-ppc/translate.c:6839: parse error before "while" /home/wine/qemu/target-ppc/translate.c:6856: warning: type defaults to int' in declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: conflicting types for gen_op_exit_tb' gen-op.h:2764: previous declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6857: parse error before '}' token /home/wine/qemu/target-ppc/translate.c:6858: warning: type defaults to int' in declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: conflicting types for gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:51: previous declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6859: parse error before "if" /home/wine/qemu/target-ppc/translate.c:6870: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6870: warning: type defaults to int' in declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: conflicting types for cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6555: previous declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6874: warning: type defaults to int' in declaration of flags' /home/wine/qemu/target-ppc/translate.c:6874: `env' undeclared here (not in a function) /home/wine/qemu/target-ppc/translate.c:6874: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6875: parse error before '|=' token /home/wine/qemu/target-ppc/translate.c:6876: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6877: parse error before '.' token /home/wine/qemu/target-ppc/translate.c:6877: warning: type defaults to int' in declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: conflicting types for target_disas' ../disas.h:6: previous declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6878: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6878: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: conflicting types for built-in function fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6882: warning: type defaults to int' in declaration of dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: parameter names (without types) in function declaration /home/wine/qemu/target-ppc/translate.c:6882: conflicting types for dump_ops' ../exec-all.h:99: previous declaration of `dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6883: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6883: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6883: warning: data definition has no type or storage class make[1]: *** [translate.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/wine/qemu/ppc64-softmmu'
make: *** [subdir-ppc64-softmmu] Error 2
make -C ppcemb-softmmu all
make[1]: Entering directory `/home/wine/qemu/ppcemb-softmmu'
gcc -Wall -O2 -g -fno-strict-aliasing -I. -I.. -I/home/wine/qemu/target-ppc -I/home/wine/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/wine/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/wine/qemu/slirp -c -o translate.o /home/wine/qemu/target-ppc/translate.c/home/wine/qemu/target-ppc/translate.c:6833:1: directives may not be used inside a macro argument /home/wine/qemu/target-ppc/translate.c:6832:56: unterminated argument list invoking macro "unlikely" /home/wine/qemu/target-ppc/translate.c: In function `gen_intermediate_code_internal':/home/wine/qemu/target-ppc/translate.c:6836: `unlikely' undeclared (first use in this function) /home/wine/qemu/target-ppc/translate.c:6836: (Each undeclared identifier is reported only once /home/wine/qemu/target-ppc/translate.c:6836: for each function it appears in.) /home/wine/qemu/target-ppc/translate.c:6836: parse error before "ctx" /home/wine/qemu/target-ppc/translate.c:6838: parse error before ')' token /home/wine/qemu/target-ppc/translate.c:6839: warning: no return statement in function returning non-void /home/wine/qemu/target-ppc/translate.c: At top level:/home/wine/qemu/target-ppc/translate.c:6839: parse error before "while" /home/wine/qemu/target-ppc/translate.c:6856: warning: type defaults to int' in declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: conflicting types for gen_op_exit_tb' gen-op.h:3383: previous declaration of gen_op_exit_tb' /home/wine/qemu/target-ppc/translate.c:6856: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6857: parse error before '}' token /home/wine/qemu/target-ppc/translate.c:6858: warning: type defaults to int' in declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: conflicting types for gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:51: previous declaration of gen_opc_ptr' /home/wine/qemu/target-ppc/translate.c:6858: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6859: parse error before "if" /home/wine/qemu/target-ppc/translate.c:6870: parse error before numeric constant /home/wine/qemu/target-ppc/translate.c:6870: warning: type defaults to int' in declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: conflicting types for cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6555: previous declaration of cpu_dump_state' /home/wine/qemu/target-ppc/translate.c:6870: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6874: warning: type defaults to int' in declaration of flags' /home/wine/qemu/target-ppc/translate.c:6874: `env' undeclared here (not in a function) /home/wine/qemu/target-ppc/translate.c:6874: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6875: parse error before '|=' token /home/wine/qemu/target-ppc/translate.c:6876: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6877: parse error before '.' token /home/wine/qemu/target-ppc/translate.c:6877: warning: type defaults to int' in declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: conflicting types for target_disas' ../disas.h:6: previous declaration of target_disas' /home/wine/qemu/target-ppc/translate.c:6877: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6878: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6878: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: conflicting types for built-in function fprintf' /home/wine/qemu/target-ppc/translate.c:6878: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6882: warning: type defaults to int' in declaration of dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: parameter names (without types) in function declaration /home/wine/qemu/target-ppc/translate.c:6882: conflicting types for dump_ops' ../exec-all.h:99: previous declaration of `dump_ops' /home/wine/qemu/target-ppc/translate.c:6882: warning: data definition has no type or storage class /home/wine/qemu/target-ppc/translate.c:6883: parse error before string constant /home/wine/qemu/target-ppc/translate.c:6883: warning: type defaults to int' in declaration of fprintf' /home/wine/qemu/target-ppc/translate.c:6883: warning: data definition has no type or storage class make[1]: *** [translate.o] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/wine/qemu/ppcemb-softmmu'
make: *** [subdir-ppcemb-softmmu] Error 2
make -C m68k-softmmu all
make[1]: Entering directory `/home/wine/qemu/m68k-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/m68k-softmmu'
make -C sh4-softmmu all
make[1]: Entering directory `/home/wine/qemu/sh4-softmmu'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/wine/qemu/sh4-softmmu'
make: Target `all' not remade because of errors.
Quoted 4 lines · Robert Reif
PPC compiling has been broken for me in CVS for a few days and is getting worse.
I'm running Red Hat 9.
plain text document attachment (ppc.errors.txt)
The current CVS builds here, at least on amd64 and x86. But Red Hat as a long tradition of buggy compilers, it seems...
As I usually use gcc 3.4.6, I just tried with official gcc 4.1.1, 4.1.2 and 4.2.0 and it this file (target-ppc/translate.c) still compiles (with a lot of warnings though).
I also took a look in C 99 specification and I saw no restriction on writing:
do_this(a,
#ifdef _this_is_defined b, #else c, #endif d);
when do_this() is defined as a macro.
May I suggest you to use a C99 compliant compiler ?
I don't feel like making my code less readable just because some use buggy compilers. (but if someone tells me what in the ISO C specification, that I would have missed, explicitelly forbids this).
[...]
Signature · 2 lines
J. Mayer <[email protected]> Never organized
Quoted 9 lines · J. Mayer
I also took a look in C 99 specification and I saw no restriction on writing:
do_this(a,#ifdef _this_is_defined b, #else c, #endif d);
Quoted 6 lines
when
do_this()is defined as a macro.May I suggest you to use a C99 compliant compiler ?
I don't feel like making my code less readable just because some use buggy compilers. (but if someone tells me what in the ISO C specification, that I would have missed, explicitelly forbids this).
I'm pretty sure that it was either forbidden or unspecified, at least in C89. I didn't check C99.
http://gcc.gnu.org/ml/gcc/1999-07n/msg00243.html
Quoted 3 lines
ISO says in 6.8.3 (Macro replacement): "If there are sequences of preprocessing tokens within the list of arguments that would otherwise act as preprocessing directives, the behavior is undefined."
GCC did not support it until here:
http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01874.html
Signature · 2 lines
Daniel Jacobowitz CodeSourcery
Quoted 12 lines · Daniel Jacobowitz
Quoted 11 lines · J. Mayer
I also took a look in C 99 specification and I saw no restriction on writing:
do_this(a,#ifdef _this_is_defined b, #else c, #endif d);when
do_this()is defined as a macro.
Quoted 7 lines
Quoted 4 lines
May I suggest you to use a C99 compliant compiler ?
I don't feel like making my code less readable just because some use buggy compilers. (but if someone tells me what in the ISO C specification, that I would have missed, explicitelly forbids this).I'm pretty sure that it was either forbidden or unspecified, at least in C89. I didn't check C99.
OK, then...
I'm trying a work-around that should not make the code too ugly...
[...]
Signature · 2 lines
J. Mayer <[email protected]> Never organized