bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed-4.3 build comments


From: Nelson H. F. Beebe
Subject: Re: sed-4.3 build comments
Date: Fri, 6 Jan 2017 17:01:10 -0700

Paul Eggert writes today about the missing __muloti4() in clang builds
on numerous platforms:

>> 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, ....

I looked at the description of that bug at

        https://llvm.org/bugs/show_bug.cgi?id=16404

and find that I share the annoyance of many of the posters in a
compiler's being unable to find its own libraries.

Nevertheless, I just started a series of 106 builds of sed-4.3.p2
(containing the patches

        0001-dfa-fix-return-typo.patch
        0001-localename-tests-port-to-NetBSD-7.patch

) using clang, launched like this:

        build-all -u clang-all --env LDFLAGS=--rtlib=compiler-rt sed-4.3.p2

Several are still in progress, but of the ones that have completed, it
seems that the LDFLAGS value does the trick of getting a successful
build.

Because I expect to be using clang for builds of many other packages,
I'm adding that LDFLAGS settings to the configuration files for
build-all for all those on which it solves the problem.

Although sed's configure script could check for clang and the 128-bit
multiply that triggers the missing function problem, it would seem
better to have autoconf handle that, in view of the reticence of the
clang developers to repair their clear error.  However, getting a new
autoconf pushed to developer sites is a huge task, so I'm just going
to supply the fix locally for my build-all procedures.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]