Bug#767323: LTO not working: File format not recognized

2014-12-25 Thread Benjamin Kay
TL;DR The problem appears to be related to binutils and not clang. I am having the same problem as the submitter with Clang 3.5.0-9. Compiling the following simple hello world program: #include iostream int main() { std::cout Hello World\n; return 0; } $ clang++ -flto -c hello.cpp $

Bug#767323: LTO not working: File format not recognized

2014-10-30 Thread Eduard Bloch
Package: clang-3.6 Version: 1:3.6~svn218612-1 Severity: normal Hi, I am trying to enable link time optimization with clang++. I have a vague memory of having used it before with 3.4 or 3.5 so I tried again and nope, doesn't work anymore: $ clang++-3.6 -flto