On 17 July 2017 at 20:36, Richard Henderson <r...@twiddle.net> wrote: > On 07/17/2017 12:46 AM, Peter Maydell wrote: >> >> Hi. This fails to link with clang (OSX, linux, freebsd): >> >> Undefined symbols for architecture x86_64: >> "_helper_atomic_cmpxchgq_be_mmu", referenced from: >> _helper_csst in mem_helper.o >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) > > > What os and clang version? > > Because, frankly, I can't even get this far with clang 3.9 as shipped with > fedora 25. As far as I can see top-of-tree doesn't build at all with that > compiler.
This was OSX 10.12.5 (Sierra) running Apple LLVM version 7.0.0 (clang-700.1.76) (running strings on the binary suggests this is based on upstream clang 3.7.0) and Linux Ubuntu x86_64 Xenial running clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final) and FreeBSD 11.0 running FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) If we don't build with clang 3.9 that's worth fixing; it's not in my test set, which will be why the breakage has slipped through. thanks -- PMM