[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed-4.3 build comments
From: |
Paul Eggert |
Subject: |
Re: sed-4.3 build comments |
Date: |
Fri, 6 Jan 2017 13:42:09 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 01/05/2017 04:18 PM, Nelson H. F. Beebe wrote:
> I want to report a clang
> issue that showed up on surprisingly many platforms, and with multiple
> versions of clang, but not with all clangs on all platforms: linking
> with lib/xmalloc.o produces this report:
>
> lib/libsed.a(xmalloc.o): In function `xnmalloc':
> lib/xmalloc.c:(.text+0x71): undefined reference to `__muloti4'
Thanks, this turns out to be LLVM bug 16404, an unfixed bug I wish I'd
known. I installed the attached patches to Gnulib to stop using
integer-overflow builtins on Clang, which should work around the LLVM
bug. In the meantime, on Fedora you can work around the sed problem by
installing the Clang-related compiler-rt package and by building with
LDFLAGS=-rtlib=compiler-rt, admittedly quite an annoyance. (I don't know
why Clang sometimes needs special library support to check for size_t
overflow.)
0001-glob-intprops-xalloc-work-around-Clang-bug.patch
Description: Source code patch
- Re: sed-4.3 build comments,
Paul Eggert <=