Hi On Wed, Feb 7, 2018 at 1:05 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: > On 07/02/2018 12:55, Peter Maydell wrote: >> On 6 February 2018 at 20:37, Paolo Bonzini <pbonz...@redhat.com> wrote: >>> On 06/02/2018 20:18, Peter Maydell wrote: >>>> Hi. I'm afraid this fails to build the all-linux-static config: >>>> >>>> LINK ivshmem-client >>>> [usual linker gripes about getpwuid &c in static binaries deleted] >>>> /usr/lib/gcc/x86_64-linux-gnu/5/libubsan.a(sanitizer_linux_libcdep.o): >>>> In function `__sanitizer::SetEnv(cha >>>> r const*, char const*)': >>>> (.text+0x41b): undefined reference to `dlsym' >>>> /usr/lib/gcc/x86_64-linux-gnu/5/libubsan.a(sanitizer_linux_libcdep.o): >>>> In function `__sanitizer::InitTlsSiz >>>> e()': >>>> (.text+0x553): undefined reference to `dlsym' >>>> collect2: error: ld returned 1 exit status >>> >>> Uhm, what is all-linux-static? Is it using --enable-debug? >> >> Yeah, it's a config with --enable-debug --static --disable-system > > Ok, I'll drop the change to enable --enable-sanitizers when you give > --enable-debug. It's premature.
It is a bit weird that this is not caught during configure time, that does check static compilation (when --static) with the sanitizers. What is the host? is there a docker check to reproduce? -- Marc-André Lureau