[LLVMbugs] [Bug 9897] New: "File format not recognized" when compiling with -O4

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 11 01:05:41 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9897

           Summary: "File format not recognized" when compiling with -O4
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bartosz.szurgot at pwr.wroc.pl
                CC: llvmbugs at cs.uiuc.edu


$ /opt/clang_trunk/bin/clang -O3 bug.c # OK

$ /opt/clang_trunk/bin/clang -O4 bug.c
/tmp/cc-88IrUz.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)

$ /opt/clang_trunk/bin/clang -O4 -v bug.c
clang version 3.0 (trunk 131177)
Target: x86_64-unknown-linux-gnu
Thread model: posix
 "/opt/clang_trunk/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu
-emit-llvm-bc -disable-free -main-file-name bug.c -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21.0.20110327
-momit-leaf-frame-pointer -v -resource-dir
/opt/clang_trunk/bin/../lib/clang/3.0 -O3 -ferror-limit 19 -fmessage-length 147
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ApukqU.o
-x c bug.c
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on
x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/clang_trunk/bin/../lib/clang/3.0/include
 /usr/include
End of search list.
 "/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out
/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-linux-gnu/4.5.2/crtbegin.o
-L/usr/lib/gcc/x86_64-linux-gnu/4.5.2
-L/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../..
/tmp/cc-ApukqU.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.5.2/crtend.o
/usr/lib/gcc/x86_64-linux-gnu/4.5.2/../../../../lib64/crtn.o
/tmp/cc-ApukqU.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list