https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69953

--- Comment #13 from john.frankish at outlook dot com ---
'Kind of digressing, but when I try with clang, I get this:

$ clang++ -v -flto -O2 -fPIC -shared -nostdlib -std=c++11 foo.ii
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation:
/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0
Selected GCC installation:
/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -flto
-emit-llvm-bc -disable-free -disable-llvm-verifier -main-file-name clang.ii
-mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.25.1 -momit-leaf-frame-pointer -v
-dwarf-column-info -resource-dir /usr/local/bin/../lib/clang/3.7.0 -O2
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir /usr/src -ferror-limit 19
-fmessage-length 134 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o /tmp/clang-920273.o -x c++-cpp-output clang.ii
clang -cc1 version 3.7.0 based upon LLVM 3.7.0 default target
x86_64-unknown-linux-gnu
#include "..." search starts here:
End of search list.
 "/usr/local/bin/ld" --eh-frame-hdr -m elf_x86_64 -shared -o a.out
-L/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0 -L/lib/../lib64
-L/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../..
-L/usr/local/bin/../lib -L/lib -L/usr/lib -plugin
/usr/local/bin/../lib/LLVMgold.so -plugin-opt=mcpu=x86-64 /tmp/clang-920273.o
/tmp/clang-920273.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reply via email to