qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Link error with github source


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] Link error with github source
Date: Thu, 13 Jul 2017 10:25:23 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi Nigel,

On 07/13/2017 09:59 AM, Nigel Horne wrote:
On 7/13/17 8:57 AM, Peter Maydell wrote:
On 13 July 2017 at 13:51, Nigel Horne <address@hidden> wrote:
The latest version in github fails to link (using gcc-7) with this error:

   LINK    aarch64-softmmu/qemu-system-aarch64
accel/tcg/cputlb.o: In function `helper_atomic_cmpxchgo_le_mmu':
cputlb.c:(.text+0x5f3d): undefined reference to
`__atomic_compare_exchange_16'
accel/tcg/cputlb.o: In function `helper_atomic_cmpxchgo_be_mmu':
cputlb.c:(.text+0x6000): undefined reference to
`__atomic_compare_exchange_16'
accel/tcg/cputlb.o: In function `helper_atomic_ldo_be_mmu':
cputlb.c:(.text+0x602f): undefined reference to `__atomic_load_16'
accel/tcg/cputlb.o: In function `helper_atomic_ldo_le_mmu':
cputlb.c:(.text+0x5f73): undefined reference to `__atomic_load_16'
accel/tcg/cputlb.o: In function `helper_atomic_sto_le_mmu':
cputlb.c:(.text+0x5fa9): undefined reference to `__atomic_store_16'
accel/tcg/cputlb.o: In function `helper_atomic_sto_be_mmu':
cputlb.c:(.text+0x607f): undefined reference to `__atomic_store_16'
collect2: error: ld returned 1 exit status
Makefile:197: recipe for target 'qemu-system-aarch64' failed
make[1]: *** [qemu-system-aarch64] Error 1
Makefile:328: recipe for target 'subdir-aarch64-softmmu' failed
make: *** [subdir-aarch64-softmmu] Error 2
Emilio's recent-ish change (commit f3ced3c5928) maybe?

Nigel -- what host architecture are you building for?
x86_64 - Debian Linux.

can not reproduce, what are your ./configure options?

((f0d2ead97c...))$ head -2 config.log
# QEMU configure log Thu Jul 13 10:08:49 -03 2017
# Configured with: '../configure' '--target-list=aarch64-softmmu,aarch64-linux-user' '--enable-trace-backends=simple' '--disable-docs' '--disable-vnc' '--disable-brlapi' '--disable-bluez' '--disable-smartcard' '--disable-gtk' '--audio-drv-list=pa' '--disable-tpm' '--enable-curses' '--cc=gcc-7'

((f0d2ead97c...))$ make -j5 subdir-aarch64-softmmu
[...]
  CC      aarch64-softmmu/trace/generated-helpers.o
  LINK    aarch64-softmmu/qemu-system-aarch64

((f0d2ead97c...))$ readelf -p .comment aarch64-softmmu/qemu-system-aarch64

String dump of section '.comment':
  [     0]  GCC: (Debian 6.4.0-1) 6.4.0 20170704
  [    25]  GCC: (Debian 7.1.0-9) 7.1.0
  [    41]  GCC: (Debian 6.3.0-18) 6.3.0 20170516

((f0d2ead97c...))$ readelf -wi aarch64-softmmu/qemu-system-aarch64|fgrep DW_AT_producer|cut -d: -f2-|sort -u (indirect string, offset: 0x12026f): GNU C11 6.3.0 20170516 -mtune=generic -march=x86-64 -g -O2 -std=gnu11 -fgnu89-inline -fmerge-all-constants -frounding-math -fPIC -ftls-model=initial-exec (indirect string, offset: 0x57c0): GNU C11 7.1.0 -m64 -mcx16 -mtune=generic -march=x86-64 -g -O2 -fPIE -fno-strict-aliasing -fno-common -fwrapv -fstack-protector-strong (indirect string, offset: 0x72b6e): GNU C++14 6.4.0 20170704 -m64 -mcx16 -mtune=generic -march=x86-64 -g -O2 -fPIE -fno-strict-aliasing -fno-common -fwrapv -fstack-protector-strong (indirect string, offset: 0x7768a): GNU C++14 6.4.0 20170704 -m64 -mcx16 -mtune=generic -march=x86-64 -ggdb -g -fPIE -fno-strict-aliasing -fno-common -fwrapv -fstack-protector-strong (indirect string, offset: 0xcc5ac): GNU C11 7.1.0 -m64 -mcx16 -mtune=generic -march=x86-64 -ggdb -g -fPIE -fno-strict-aliasing -fno-common -fwrapv -fstack-protector-strong

(f0d2ead97c...))$ aarch64-softmmu/qemu-system-aarch64 -version
QEMU emulator version 2.9.50 (v2.9.0-1376-g80f464ef84-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

((f0d2ead97c...))$ apt-cache policy gcc-7
gcc-7:
  Installed: 7.1.0-9
  Candidate: 7.1.0-9
  Version table:
 *** 7.1.0-9 500
        500 http://httpredir.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Regards,

Phil.



reply via email to

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