qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [qemu-kvm] build fail on i386 RHEL5u4
@ 2010-08-11  1:49 Hao, Xudong
  2010-08-15 15:30 ` [Qemu-devel] " Avi Kivity
  0 siblings, 1 reply; 6+ messages in thread
From: Hao, Xudong @ 2010-08-11  1:49 UTC (permalink / raw)
  To: kvm@vger.kernel.org, qemu-devel@nongnu.org

Hi, 
Recently I build qemu-kvm on 32bit RHEL5u4/RHEL5u5, it will fail on fuction "vhost_dev_sync_region". But RHEL5u1 system is fine to build.
Did anyone meet similar issue?

qemu-kvm commit: 59d71ddb432db04b57ee2658ce50a3e35d7db97e

build error:
...
  CC    x86_64-softmmu/i8254.o
  CC    x86_64-softmmu/i8254-kvm.o
  CC    x86_64-softmmu/device-assignment.o
  LINK  x86_64-softmmu/qemu-system-x86_64
vhost.o: In function `vhost_dev_sync_region':
/home/source/qemu-kvm/hw/vhost.c:47: undefined reference to `__sync_fetch_and_and_4'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2


Best Regards,
Xudong Hao

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: [qemu-kvm] build fail on i386 RHEL5u4
  2010-08-11  1:49 [Qemu-devel] [qemu-kvm] build fail on i386 RHEL5u4 Hao, Xudong
@ 2010-08-15 15:30 ` Avi Kivity
  2010-08-16  1:27   ` [Qemu-devel] " Hao, Xudong
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2010-08-15 15:30 UTC (permalink / raw)
  To: Hao, Xudong; +Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org

  On 08/11/2010 04:49 AM, Hao, Xudong wrote:
> Hi,
> Recently I build qemu-kvm on 32bit RHEL5u4/RHEL5u5, it will fail on fuction "vhost_dev_sync_region". But RHEL5u1 system is fine to build.
> Did anyone meet similar issue?
>
> qemu-kvm commit: 59d71ddb432db04b57ee2658ce50a3e35d7db97e
>
> build error:
> ...
>    CC    x86_64-softmmu/i8254.o
>    CC    x86_64-softmmu/i8254-kvm.o
>    CC    x86_64-softmmu/device-assignment.o
>    LINK  x86_64-softmmu/qemu-system-x86_64
> vhost.o: In function `vhost_dev_sync_region':
> /home/source/qemu-kvm/hw/vhost.c:47: undefined reference to `__sync_fetch_and_and_4'
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-system-x86_64] Error 1
> make: *** [subdir-x86_64-softmmu] Error 2
>

Appears to be a gcc bug.  I opened 
https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this.

Meanwhile, installing the gcc44 package and building with it 
(./configure --cc=gcc44) appears to work.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] RE: [qemu-kvm] build fail on i386 RHEL5u4
  2010-08-15 15:30 ` [Qemu-devel] " Avi Kivity
@ 2010-08-16  1:27   ` Hao, Xudong
  2010-08-16  8:46     ` [Qemu-devel] " Avi Kivity
  0 siblings, 1 reply; 6+ messages in thread
From: Hao, Xudong @ 2010-08-16  1:27 UTC (permalink / raw)
  To: Avi Kivity; +Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org

Avi Kivity wrote:
>   On 08/11/2010 04:49 AM, Hao, Xudong wrote:
>> Hi,
>> Recently I build qemu-kvm on 32bit RHEL5u4/RHEL5u5, it will fail on
>> fuction "vhost_dev_sync_region". But RHEL5u1 system is fine to
>> build. Did anyone meet similar issue? 
>> 
>> qemu-kvm commit: 59d71ddb432db04b57ee2658ce50a3e35d7db97e
>> 
>> build error:
>> ...
>>    CC    x86_64-softmmu/i8254.o
>>    CC    x86_64-softmmu/i8254-kvm.o
>>    CC    x86_64-softmmu/device-assignment.o
>>    LINK  x86_64-softmmu/qemu-system-x86_64
>> vhost.o: In function `vhost_dev_sync_region':
>> /home/source/qemu-kvm/hw/vhost.c:47: undefined reference to
>> `__sync_fetch_and_and_4' 
>> collect2: ld returned 1 exit status
>> make[1]: *** [qemu-system-x86_64] Error 1
>> make: *** [subdir-x86_64-softmmu] Error 2
>> 
> 
> Appears to be a gcc bug.  I opened
> https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this.
> 
> Meanwhile, installing the gcc44 package and building with it
> (./configure --cc=gcc44) appears to work.

Avi,
Gcc44 works for me.
I saw Jakub marked this bug closed with "only i486 support that, but RHEL5 use -march=i386", so do we have ongoing fix on qemu-kvm? 

Thanks,
Xudong

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: [qemu-kvm] build fail on i386 RHEL5u4
  2010-08-16  1:27   ` [Qemu-devel] " Hao, Xudong
@ 2010-08-16  8:46     ` Avi Kivity
  2010-08-17  9:30       ` Avi Kivity
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2010-08-16  8:46 UTC (permalink / raw)
  To: Hao, Xudong; +Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org

  On 08/16/2010 04:27 AM, Hao, Xudong wrote:
>
>> Appears to be a gcc bug.  I opened
>> https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this.
>>
>> Meanwhile, installing the gcc44 package and building with it
>> (./configure --cc=gcc44) appears to work.
> Avi,
> Gcc44 works for me.
> I saw Jakub marked this bug closed with "only i486 support that, but RHEL5 use -march=i386", so do we have ongoing fix on qemu-kvm?

Should be easy to add a ./configure test for this.


-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: [qemu-kvm] build fail on i386 RHEL5u4
  2010-08-16  8:46     ` [Qemu-devel] " Avi Kivity
@ 2010-08-17  9:30       ` Avi Kivity
  2010-08-18  0:59         ` [Qemu-devel] " Hao, Xudong
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2010-08-17  9:30 UTC (permalink / raw)
  To: Hao, Xudong; +Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org

  On 08/16/2010 11:46 AM, Avi Kivity wrote:
>  On 08/16/2010 04:27 AM, Hao, Xudong wrote:
>>
>>> Appears to be a gcc bug.  I opened
>>> https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this.
>>>
>>> Meanwhile, installing the gcc44 package and building with it
>>> (./configure --cc=gcc44) appears to work.
>> Avi,
>> Gcc44 works for me.
>> I saw Jakub marked this bug closed with "only i486 support that, but 
>> RHEL5 use -march=i386", so do we have ongoing fix on qemu-kvm?
>
> Should be easy to add a ./configure test for this.
>
>

Or, just use --extra-cflags=-march=i686 or similar.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] RE: [qemu-kvm] build fail on i386 RHEL5u4
  2010-08-17  9:30       ` Avi Kivity
@ 2010-08-18  0:59         ` Hao, Xudong
  0 siblings, 0 replies; 6+ messages in thread
From: Hao, Xudong @ 2010-08-18  0:59 UTC (permalink / raw)
  To: Avi Kivity; +Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org

Avi Kivity wrote:
>   On 08/16/2010 11:46 AM, Avi Kivity wrote:
>>  On 08/16/2010 04:27 AM, Hao, Xudong wrote:
>>> 
>>>> Appears to be a gcc bug.  I opened
>>>> https://bugzilla.redhat.com/show_bug.cgi?id=624279 to track this.
>>>> 
>>>> Meanwhile, installing the gcc44 package and building with it
>>>> (./configure --cc=gcc44) appears to work.
>>> Avi,
>>> Gcc44 works for me.
>>> I saw Jakub marked this bug closed with "only i486 support that, but
>>> RHEL5 use -march=i386", so do we have ongoing fix on qemu-kvm?
>> 
>> Should be easy to add a ./configure test for this.
>> 
>> 
> 
> Or, just use --extra-cflags=-march=i686 or similar.

Yes, both of two methods can work.

Thanks,
Xudong

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-18  0:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11  1:49 [Qemu-devel] [qemu-kvm] build fail on i386 RHEL5u4 Hao, Xudong
2010-08-15 15:30 ` [Qemu-devel] " Avi Kivity
2010-08-16  1:27   ` [Qemu-devel] " Hao, Xudong
2010-08-16  8:46     ` [Qemu-devel] " Avi Kivity
2010-08-17  9:30       ` Avi Kivity
2010-08-18  0:59         ` [Qemu-devel] " Hao, Xudong

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).