Using gcc 4.9 to build the llvm 3.4 branch fails with the following error: llvm[1]: Compiling APFloat.cpp for Release build [...] /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/cstddef:51:11: error: no member named 'max_align_t' in the global namespace using ::max_align_t; ~~^ gcc 4.8.2's caused no such issue, so it must be a change in 4.9.0/cstddef. To be clear, I have no idea who's at fault (gcc 4.9.0 header or llvm sources), assuming any code is to be blamed (at all).
On Sun, 27 Apr 2014 16:18:52 +0200, Tuncer Ayaz wrote:> Using gcc 4.9 to build the llvm 3.4 branch fails with the following error: > > llvm[1]: Compiling APFloat.cpp for Release build > [...] > /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../include/c++/4.9.0/cstddef:51:11: > error: no member named 'max_align_t' in the global namespace > using ::max_align_t; > ~~^ > > gcc 4.8.2's caused no such issue, so it must be a change in 4.9.0/cstddef. > > To be clear, I have no idea who's at fault (gcc 4.9.0 header or llvm sources), > assuming any code is to be blamed (at all).Explained under "Header <cstddef> changes" in: http://gcc.gnu.org/gcc-4.9/porting_to.html -h
On 4/27/14, Holger Hoffstätte wrote:> On Sun, 27 Apr 2014 16:18:52 +0200, Tuncer Ayaz wrote: > > > Using gcc 4.9 to build the llvm 3.4 branch fails with the > > following error: > > > > llvm[1]: Compiling APFloat.cpp for Release build > > [...] > > /usr/[...]/include/c++/4.9.0/cstddef:51:11: > > error: no member named 'max_align_t' in the global namespace > > using ::max_align_t; > > ~~^ > > > > gcc 4.8.2's caused no such issue, so it must be a change in > > 4.9.0/cstddef. > > > > To be clear, I have no idea who's at fault (gcc 4.9.0 header or > > llvm sources), assuming any code is to be blamed (at all). > > Explained under "Header <cstddef> changes" in: > http://gcc.gnu.org/gcc-4.9/porting_to.htmlThanks for the pointer.