On 07/25/2017 03:06 PM, Thompson, KT wrote: > As reported at https://github.com/LLNL/spack/issues/4883, there appears to be > a problem compiling m4 (version 1.4.18) on Linux with LLVM clang 4.0. The > error is: > > ... > CC m4.o > CC builtin.o > CC debug.o > CC eval.o > CC format.o > CC freeze.o > CC macro.o > CC input.o > CC output.o > CC path.o > CC symtab.o > CCLD m4 > ../lib/libm4.a(xmalloc.o): In function `xnmalloc': > .../m4-1.4.18/lib/xmalloc.c:(.text+0x71): undefined reference to `__muloti4'
That appears to be a bug in clang. > > Is there a known work around or patch to resolve this issue? This same > version of m4 appears to compile w/o issue for several versions of gcc. I don't know if the bug has already been fixed in gnulib (the provider for xmalloc.c) - if so, then m4 will be fixed the next time we update to newer gnulib and release an updated m4 (which may be sooner rather than later, given that clang is a popular compiler, in spite of the fact that although it is open source, it does not protect your freedoms like gcc). In the meantime, I'm adding gnulib in cc to see if this is a known issue. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature