Description of problem: DEBUG: /usr/bin/../lib/gcc/x86_64-redhat-linux/4.9.0/../../../../include/c++/4.9.0/cstddef:51:11: error: no member named 'max_align_t' in the global namespace DEBUG: using ::max_align_t; DEBUG: ~~^ Version-Release number of selected component (if applicable): clang-3.4-6.fc21.x86_64 How reproducible: 100% Steps to Reproduce: 1.try to build new libclc with clang 3.4 and gcc 4.9 (rawhide) Actual results: http://kojipkgs.fedoraproject.org//work/tasks/4615/6794615/build.log Expected results: build passed OK Additional info: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744792 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744872
Hey, this is also blocking libclc updates, which basically prevents supporting newer AMD APUs in rawhide/f21.
Probably is a fix: http://reviews.llvm.org/rL201729
yes. this patch applied by upstream, but have not backported to 3.4.1, so we should apply it ourself. https://github.com/llvm-mirror/clang/commit/88ede395cf896c0a14299be553b6084aa6a5e50d
*** Bug 1120995 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Another problem with clang and libstd++ on Fedora 22: main.cpp: example from http://en.cppreference.com/w/cpp/utility/functional/function/target $ clang++ -std=c++11 main.cpp main.cpp:9:13: error: no member named 'target' in 'std::function<int (int, int)>' if (arg.target<std::plus<int>>()) ~~~ ^ main.cpp:9:34: error: expected '(' for function-style cast or type construction if (arg.target<std::plus<int>>()) ~~~~~~~~~~~~~~^ [...] It compiles fine in their web interface with clang and c++11 enabled. G++ also works on Fedora 22. Seems that the __cpp_rtti #define is missing. Adding it manually makes the code compile.