[llvm-dev] unable to compile llvm with gcc 4.7.4

via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 12 06:26:12 PDT 2016


On Wed, Oct 12, 2016 at 10:28:36AM +0200, Antoine Pitrou via llvm-dev wrote:
> On Tue, 11 Oct 2016 13:46:35 -0700
> Michael Kuperstein via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> > To the best of my understanding - because we want to be able to bootstrap
> > clang with the system compiler that ships with various linux and BSD
> > distributions.
> > Windows has no equivalent concept.
> 
> To elaborate on this: if you want to produce binaries compatible with
> old Linux systems, it is pretty much necessary to build on such an old
> Linux system, because otherwise you'll get bitten by glibc ABI issues
> (not to mention libstdc++, but at least you can link libstdc++
> statically).

Then, on the medium term it would be to see if gcc 4.7.4 (the last C
bootstrap-able c++-ish compiler in one step) is phased out from llvm support in
favor of gcc 4.8.

But the short term solution would be to fix current llvm against gcc 4.7.4.

As I said earlier, with the options detailed earlier in this thread, the LTO
cache and some tools have some troubles with gcc 4.7.4.

regards,

-- 
Sylvain


More information about the llvm-dev mailing list