[llvm-dev] GCC prerequisites for building LLVM head?
Martin J. O'Riordan via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 7 06:20:26 PDT 2016
That is a useful URL thanks, and the versions of GCC I am using predate the fix in the ticket.
Curious though, because both Linux and Cygwin are building LLVM using the host configuration, and both provide a full 'glibc' implementation. This could be a CMake/Cygwin problem that I am experiencing - I had to build CMake v3.5.2 from source using the usual 'configure/make/install' process, but it is not an official build from either Kitware (not available) or from the Cygwin distribution (too old).
I did try to build LLVM at revision #272991 on Linux (CentOS) but our setup has GCC v4.8.5 20150623 and not v4.9.3 as I previously thought. It did not get as far as building 'sancov.cc' though, and died with:
[ 57%] Copying clang's immintrin.h...
make: *** No rule to make target `/work/dub44/martino/WORK/Compilers/llvmHead/llvm/tools/clang/lib/Headers/intrin.h', needed by `lib/clang/3.9.0/include/intrin.h'. Stop.
I haven't investigated this yet, but it is quite likely that the snapshot I took at revision #272991 was not yet BuildBot clean, so I will update to the head revision tomorrow and merge over the weekend and try again.
From: Anton Korobeynikov [mailto:anton at korobeynikov.info]
Sent: 06 July 2016 21:02
To: Martin.ORiordan at movidius.com
Cc: Renato Golin; LLVM Developers
Subject: Re: [llvm-dev] GCC prerequisites for building LLVM head?
Looks like known libstdc++ problem. See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58393 and around.
On Wed, Jul 6, 2016 at 9:43 PM, Martin J. O'Riordan via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I've no idea, but without it, the 'std::to_string' definitions are not enabled!
> -----Original Message-----
> From: Renato Golin [mailto:renato.golin at linaro.org]
> Sent: 06 July 2016 19:35
> To: Martin.ORiordan at movidius.com
> Cc: LLVM Developers <llvm-dev at lists.llvm.org>
> Subject: Re: [llvm-dev] GCC prerequisites for building LLVM head?
> On 6 July 2016 at 19:02, Martin J. O'Riordan <martin.oriordan at movidius.com> wrote:
>> I am actually getting the same problem with GCC v4.9.3 on CentOS, but for both Cygwin and Linux adding '-D_GLIBCXX_USE_C99' to the '-DCMAKE_CXX_FLAGS:STRING=' flag during configuration cured the problem.
> Right, I don't use that flag, why do you need that?
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
With best regards, Anton Korobeynikov
Department of Statistical Modelling, Saint Petersburg State University
More information about the llvm-dev