qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kurt B Cox <kurtbcox@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Compile failure of 0.7.2 with gcc 4.0.1
Date: Sun, 20 Nov 2005 13:45:01 -0700	[thread overview]
Message-ID: <dlqn8h$h2d$1@sea.gmane.org> (raw)
In-Reply-To: <4380BE6E.5070100@hermes.cam.ac.uk>

Richard Neill wrote:
> Dear All,
> 
> I thought you might like to know the following:
> 
>  Neither Qemu 0.7.2 nor 0.7.1 will compile under gcc 4.0.1, which is the 
> default under Mandrake 2006. It works fine with the older 3.3.6 though.
> 
> Here are the relevant bits of the output. I've cut all the irrelvant 
> bits, but I'm including the warnings in case they are useful. However, 
> the important bit is near the end. (I've separated the paragraph for 
> clarity.) The actual error is this:
> 
>     /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h:574:
>     error: unable to find a register to spill in class 'GENERAL_REGS'
> 
> 
> Hope that's useful.
> 
> Best wishes,
> 
> Richard
> 
> 
> ---------------------------------------------------------
> 
> dyngen.c: In function 'load_object':
> dyngen.c:508: warning: pointer targets in assignment differ in signedness
> dyngen.c:544: warning: pointer targets in assignment differ in signedness
> gcc -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing  -g -D_GNU_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c 
> block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c 
> block-dmg.c block-bochs.c block-vpc.c block-vvfat.c -lz
> block-cloop.c: In function 'cloop_read_block':
> block-cloop.c:116: warning: pointer targets in assignment differ in 
> signedness
> block-cloop.c:118: warning: pointer targets in assignment differ in 
> signedness
> block-dmg.c: In function 'dmg_read_chunk':
> block-dmg.c:231: warning: pointer targets in assignment differ in 
> signedness
> block-dmg.c:233: warning: pointer targets in assignment differ in 
> signedness
> block-vpc.c: In function 'vpc_probe':
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> 'strlen' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> 'strlen' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> '__builtin_strcmp' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> 'strlen' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> '__builtin_strcmp' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> '__builtin_strcmp' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> '__builtin_strcmp' differ in signedness
> block-vpc.c:84: warning: pointer targets in passing argument 1 of 
> 'strncmp' differ in signedness
> block-vvfat.c: In function 'create_long_filename':
> block-vvfat.c:325: warning: pointer targets in passing argument 1 of 
> 'short2long_name' differ in signedness
> block-vvfat.c: In function 'fat_get':
> block-vvfat.c:393: warning: pointer targets in initialization differ in 
> signedness
> block-vvfat.c: In function 'long2unix_name':
> block-vvfat.c:446: warning: pointer targets in passing argument 1 of 
> '__builtin_strncpy' differ in signedness
> block-vvfat.c:446: warning: pointer targets in passing argument 2 of 
> '__builtin_strncpy' differ in signedness
> block-vvfat.c:453: warning: pointer targets in passing argument 1 of 
> '__builtin_strncpy' differ in signedness
> block-vvfat.c:453: warning: pointer targets in passing argument 2 of 
> '__builtin_strncpy' differ in signedness
> block-vvfat.c: In function 'create_short_filename':
> block-vvfat.c:492: warning: pointer targets in passing argument 1 of 
> '__builtin_strncpy' differ in signedness
> block-vvfat.c: In function 'init_directory':
> block-vvfat.c:719: warning: pointer targets in passing argument 1 of 
> 'snprintf' differ in signedness
> block-vvfat.c: In function 'vvfat_write':
> block-vvfat.c:1620: warning: pointer targets in passing argument 1 of 
> 'long2unix_name' differ in signedness
> for d in i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu 
> ppc-softmmu sparc-softmmu x86_64-softmmu mips-softmmu; do \
> 
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c: In function 
> 'load_elf_binary':
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:948: warning: 
> pointer targets in passing argument 1 of 'strncmp' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of 'strlen' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of '__builtin_strcmp' differ in 
> signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/elfload.c:1086: warning: 
> pointer targets in passing argument 1 of 'strncmp' differ in signedness
> 
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c: In function 
> 'do_getsockopt':
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:647: warning: 
> pointer targets in passing argument 5 of 'getsockopt' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:680: warning: 
> pointer targets in passing argument 5 of 'getsockopt' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c: In function 
> 'do_syscall':
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:1750: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:1784: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:1870: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:1871: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2301: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2302: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2303: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2304: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2305: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2306: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2307: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2308: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2309: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2310: warning: 
> pointer targets in passing argument 1 of 'tswap32s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2630: warning: 
> pointer targets in passing argument 1 of 'tswap64s' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2934: warning: 
> pointer targets in passing argument 1 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2934: warning: 
> pointer targets in passing argument 2 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2934: warning: 
> pointer targets in passing argument 3 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2954: warning: 
> pointer targets in passing argument 1 of 'getresgid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2954: warning: 
> pointer targets in passing argument 2 of 'getresgid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:2954: warning: 
> pointer targets in passing argument 3 of 'getresgid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3061: warning: 
> pointer targets in passing argument 1 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3061: warning: 
> pointer targets in passing argument 2 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3061: warning: 
> pointer targets in passing argument 3 of 'getresuid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3079: warning: 
> pointer targets in passing argument 1 of 'getresgid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3079: warning: 
> pointer targets in passing argument 2 of 'getresgid' differ in signedness
> /home/cvsp2/qemu-test/qemu-0.7.2/linux-user/syscall.c:3079: warning: 
> pointer targets in passing argument 3 of 'getresgid' differ in signedness
> 
> /home/cvsp2/qemu-test/qemu-0.7.2/exec.c: In function 'cpu_set_log':
> /home/cvsp2/qemu-test/qemu-0.7.2/exec.c:1257: warning: pointer targets 
> in passing argument 2 of 'setvbuf' differ in signedness
> 
> 
> 
> 
> 
> 
> 
> /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h: In function 
> 'op_pshufw_mmx':
> /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h:574: error: 
> unable to find a register to spill in class 'GENERAL_REGS'
> /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h:574: error: this 
> is the insn:
> (insn:HI 18 17 19 0 
> /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h:569 (set 
> (strict_low_part (subreg:HI (reg/v:DI 63 [ r ]) 0))
>         (mem/s/j:HI (plus:SI (mult:SI (reg:SI 64)
>                     (const_int 2 [0x2]))
>                 (reg/v/f:SI 59 [ s ])) [0 <variable>._w S2 A16])) 41 
> {*movstricthi_1} (insn_list:REG_DEP_TRUE 16 (insn_list:REG_DEP_TRUE 12 
> (insn_list:REG_DEP_TRUE 53 (nil))))
>     (expr_list:REG_DEAD (reg:SI 64)
>         (nil)))
> /home/cvsp2/qemu-test/qemu-0.7.2/target-i386/ops_sse.h:574: confused by 
> earlier errors, bailing out
> make[1]: *** [op.o] Error 1
> make[1]: Leaving directory `/home/cvsp2/qemu-test/qemu-0.7.2/i386-user'
> make: *** [all] Error 1

Gwenole has some gcc4 patches that work for gcc 4.0.3 on my system. 
Check out his post on 2005/11/04.

  parent reply	other threads:[~2005-11-20 20:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-20 18:20 [Qemu-devel] Compile failure of 0.7.2 with gcc 4.0.1 Richard Neill
2005-11-20 18:34 ` Guillaume POIRIER
2005-11-20 20:45 ` Kurt B Cox [this message]
2005-11-20 23:33   ` [Qemu-devel] " Johannes Schindelin
2005-11-22 16:01     ` Kurt B Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dlqn8h$h2d$1@sea.gmane.org' \
    --to=kurtbcox@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).