qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] KVM on PPC host


From: G 3
Subject: Re: [Qemu-ppc] KVM on PPC host
Date: Sat, 20 Jan 2018 15:15:22 -0500

>>> On 16/01/18 12:06, Jd Lyons wrote:
>>>
>>>> First, it seems someone changed something in the master in the last
>>>> few days that broke linking when building on linux PPC.
>>>> I pulled the master a few days ago, and it still builds and links
>>>> fine, but something has broken it now, please fix.
>>>>   LINK    ppc-softmmu/qemu-system-ppc
>>>> ../migration/postcopy-ram.o: In function `mark_postcopy_blocktime_end':
>>>> /home/jam/qemu2/qemu-master/migration/postcopy-ram.c:717: undefined
>>>> reference to `__atomic_fetch_add_8'
>>>> /home/jam/qemu2/qemu-master/migration/postcopy-ram.c:738: undefined
>>>> reference to `__atomic_fetch_add_8'
>>>> ../migration/postcopy-ram.o: In function
>>>> `mark_postcopy_blocktime_begin':
>>>> /home/jam/qemu2/qemu-master/migration/postcopy-ram.c:651: undefined
>>>> reference to `__atomic_exchange_8'
>>>> /home/jam/qemu2/qemu-master/migration/postcopy-ram.c:652: undefined
>>>> reference to `__atomic_exchange_8'
>>>> /home/jam/qemu2/qemu-master/migration/postcopy-ram.c:661: undefined
>>>> reference to `__atomic_exchange_8'
>>>> collect2: error: ld returned 1 exit status
>>>> Makefile:193: recipe for target 'qemu-system-ppc' failed
>>>> make[1]: *** [qemu-system-ppc] Error 1
>>>> Makefile:387: recipe for target 'subdir-ppc-softmmu' failed
>>>> make: *** [subdir-ppc-softmmu] Error 2
>>>
>>> Unless someone else is aware, you might need to bisect this. Perhaps
>>> post the above output along with compiler and version to qemu-devel
>>> as it could easily have been introduced via a non-PPC patch?
>>
>> I think this was something I did, rather than a patch, unless someone
>> removed -wl or some such from the LDFLAGS. At any rate, I moved from
>> Debian 8.10 to Ubuntu Mate 16.04 LTS, and I no longer get link errors
>> from the master.

I am also using Ubuntu Mate 16.04 and am seeing these missing atomic_* symbols. Here is the info on my system:

iMac G5

$ lsb_release -a:
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:    xenial

$ gcc -v:
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

What version of GCC are you using?

I have tried adding -latomic and -wl to the --extra-ldflags options without any success. It only causes other atomic_* functions to fail.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]