error:
no member named 'max_align_t' in the global namespace
using ::max_align_t;
~~^
today i tried a fresh ubuntu 14.10 x64 (lastest + updates) default: gcc.4.9.1 installation with clang svn 228566 in a virtual machine
the max_align_t problem does not occure but i was still not able to compile clang out of the box getting this error from make
llvm[2]: Compiling llvm-lto.cpp for Debug+Asserts build
llvm[2]: Linking Debug+Asserts executable llvm-lto
collect2: error: ld terminated with signal 9 [Killed]
/home/test/llvm/Makefile.rules:1427: recipe for target '/home/test/build/Debug+Asserts/bin/llvm-lto' failed
make[2]: *** [/home/test/build/Debug+Asserts/bin/llvm-lto] Error 1
make[2]: Leaving directory '/home/test/build/tools/llvm-lto'
/home/test/llvm/Makefile.rules:873: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/home/test/build/tools'
/home/test/llvm/Makefile.rules:873: recipe for target 'all' failed
make: *** [all] Error 1
i've built svn clang serveral times before on former ubuntu version without any problem
is there something still to fix in the svn version or should i use cmake or is the description
on http://clang.llvm.org/get_started.html only for release revisions?
libstdc++ is designed to work with gcc only. So if you want to avoid
these issues, you either need to patch libstdc++ or use libcxx instead.
While it is true that libstdc++ is developed in parallel with gcc, clang explicitly tries to be able to parse it. If it doesn’t, that’s a clang bug. Patching your system headers isn’t the right thing to do.
you're getting "ld terminated with signal 9 [Killed]" instead.
which suggests that you don't have enough ram (maybe you're using a 32-bit
linux?
i've got an ubuntu 14.10 x64 VM with 4GB of RAM(3GBs free for compile)
- before your post ~2GBs - more RAM is currenlty not possible
that amount of RAM let me compile more then before but still stops with ld terminated with signal 9
what amount of RAM is currently needed for building clang head? it wasn't that much before
I believe the ::max_align_t problem was fixed in http://llvm.org/viewvc/llvm-project?rev=201729&view=rev which is part of
clang 3.5 (but not 3.4). So if you're using a recent clang, you shouldn't
see this problem. It sounds like you're indeed not seeing this problem with
clang head;