* [Qemu-devel] Link error with github source
@ 2017-07-13 12:51 Nigel Horne
2017-07-13 12:57 ` Peter Maydell
0 siblings, 1 reply; 6+ messages in thread
From: Nigel Horne @ 2017-07-13 12:51 UTC (permalink / raw)
To: qemu-devel
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
-Nigel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Link error with github source
2017-07-13 12:51 [Qemu-devel] Link error with github source Nigel Horne
@ 2017-07-13 12:57 ` Peter Maydell
2017-07-13 12:59 ` Nigel Horne
0 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2017-07-13 12:57 UTC (permalink / raw)
To: Nigel Horne
Cc: QEMU Developers, Emilio G. Cota, Paolo Bonzini, Richard Henderson
On 13 July 2017 at 13:51, Nigel Horne <njh@bandsman.co.uk> 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?
thanks
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Link error with github source
2017-07-13 12:57 ` Peter Maydell
@ 2017-07-13 12:59 ` Nigel Horne
2017-07-13 13:25 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 6+ messages in thread
From: Nigel Horne @ 2017-07-13 12:59 UTC (permalink / raw)
To: QEMU Developers
On 7/13/17 8:57 AM, Peter Maydell wrote:
> On 13 July 2017 at 13:51, Nigel Horne <njh@bandsman.co.uk> 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.
-Nigel
>
> thanks
> -- PMM
--
Nigel Horne
Conductor: Rockville Brass Band, Washington Metropolitan GSO
@nigelhorne | fb/nigel.horne | bandsman.co.uk | concert-bands.co.uk | www.nigelhorne.com
Unless it's for my eyes only, please use "reply all"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Link error with github source
2017-07-13 12:59 ` Nigel Horne
@ 2017-07-13 13:25 ` Philippe Mathieu-Daudé
2017-07-13 13:34 ` Nigel Horne
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-07-13 13:25 UTC (permalink / raw)
To: Nigel Horne, QEMU Developers
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 <njh@bandsman.co.uk> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Qemu-devel] Link error with github source
2017-07-13 13:25 ` Philippe Mathieu-Daudé
@ 2017-07-13 13:34 ` Nigel Horne
2017-07-13 13:41 ` Nigel Horne
0 siblings, 1 reply; 6+ messages in thread
From: Nigel Horne @ 2017-07-13 13:34 UTC (permalink / raw)
To: QEMU Developers
Thanks for running with this. I'm starting to suspect that my set-up is
broken and I'm trying to mix and match gcc-6 and 7.
My CFLAGS are:
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2 -W -Wformat=2 -Wswitch
-Wshadow -Wwrite-strings -Wuninitialized -Wall -pipe
-fomit-frame-pointer -D_FORTIFY_SOURCE=2 -Wpointer-arith
-Wstrict-prototypes -fstack-protector -Wstack-protector -Wextra
-Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization
-Wendif-labels -Wfloat-equal -Wformat-nonliteral -Winline
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wundef -Wformat-security -ftree-vectorize -msse
-mfpmath=sse -msse2 -mssse3 -msse4.1 -msse4.2 -fdiagnostics-color=auto
-mtune=native -march=native
My configure options are:
# QEMU configure log Fri 7 Jul 11:31:59 EDT 2017
# Configured with: './configure' '--enable-linux-aio' '--enable-kvm'
'--enable-curses'
I'm going to explicitly add '-cc=gcc-7' and see if that helps.
-Nigel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-07-13 13:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-13 12:51 [Qemu-devel] Link error with github source Nigel Horne
2017-07-13 12:57 ` Peter Maydell
2017-07-13 12:59 ` Nigel Horne
2017-07-13 13:25 ` Philippe Mathieu-Daudé
2017-07-13 13:34 ` Nigel Horne
2017-07-13 13:41 ` Nigel Horne
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).