<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - O4: File format not recognized"
   href="http://llvm.org/bugs/show_bug.cgi?id=15224">15224</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>O4: File format not recognized
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>wbrana@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>compilation of nbench fails when -O4 is used
<a href="http://www.tux.org/~mayer/linux/nbench-byte-2.2.3.tar.gz">http://www.tux.org/~mayer/linux/nbench-byte-2.2.3.tar.gz</a>

# make
clang -Wall -pipe -v -O4 -g0  -march=corei7 -fomit-frame-pointer -funroll-loops
-ffast-math -fno-PIE -fno-exceptions -fno-stack-protector -static     pointer.c
  -o pointer
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-free
-disable-llvm-verifier -main-file-name pointer.c -static-define
-mrelocation-model static -menable-no-infs -menable-no-nans
-menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu corei7 -target-linker-version
2.23.1 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wall -fdebug-compilation-dir /mnt/md3/cache/inst/nbench-byte-2.2.3
-ferror-limit 19 -fmessage-length 317 -funroll-loops -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/pointer-xeWu3U.o -x c pointer.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target
x86_64-pc-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/bin/../lib/clang/3.2/include
 /usr/include
End of search list.
 "/usr/bin/x86_64-pc-linux-gnu-ld" -m elf_x86_64 -static -o pointer
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/crtbeginT.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/crtfastmath.o
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../.. -L/lib -L/usr/lib -plugin
/usr/bin/../lib64/llvm/LLVMgold.so /tmp/pointer-xeWu3U.o --start-group -lgcc
-lgcc_eh -lc --end-group /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/crtend.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../lib64/crtn.o
/tmp/pointer-xeWu3U.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [pointer] Error 1

clang -Wall -pipe -v -O4 -g0  -march=corei7 -fomit-frame-pointer -funroll-loops
-ffast-math -fno-PIE -fno-exceptions -fno-stack-protector -static     pointer.c
  -o pointer
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-free
-disable-llvm-verifier -main-file-name pointer.c -static-define
-mrelocation-model static -menable-no-infs -menable-no-nans
-menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu corei7
-target-linker-version 2.23.1 -momit-leaf-frame-pointer -v -resource-dir
/usr/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wall -fdebug-compilation-dir
/home/inst/nbench-byte-2.2.3 -ferror-limit 19 -fmessage-length 317
-funroll-loops -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/pointer-LihK1H.o -x c pointer.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target
x86_64-pc-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/bin/../lib/clang/3.2/include
 /usr/include
End of search list.
 "/usr/bin/x86_64-pc-linux-gnu-ld" -m elf_x86_64 -static -o pointer
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crt1.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/crtbeginT.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/crtfastmath.o
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../.. -L/lib -L/usr/lib -plugin
/usr/bin/../lib64/llvm/LLVMgold.so /tmp/pointer-LihK1H.o --start-group -lgcc
-lgcc_eh -lc --end-group /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/crtend.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/crtn.o
/tmp/pointer-LihK1H.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [pointer] Error 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>