<html>
    <head>
      <base href="https://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 --- - Unexpected arch error"
   href="https://llvm.org/bugs/show_bug.cgi?id=23415">23415</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unexpected arch error
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vishnusuganth@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>I am trying to build LLVM/Clang-3.6.0 on a Raspberry Pi 1 Development board.
I followed the instructions on the LLVM.org site to build LLVM/Clang from
source.

Here is my configure command:
./configure --prefix=/home/pi/llvm/build --build=armv6l-unknown-linux-gnueabihf
--host=armv6l-unknown-linux-gnueabihf --target=armv6l-unknown-linux-gnueabihf
--with-cpu=arm1176jzf-s --with-float=hard --with-abi=aapcs-vfp --with-fpu=vfp
--enable-targets=arm --enable-optimized --enable-assertions --enable-shared

The Build was successfull.


But when I tried to compile a simple helloworld.c program I am getting
following errors:


pi@raspberrypi ~ $ clang hello.c
Unexpected arch
UNREACHABLE executed at Tools.cpp:7410!
Stack dump:
0.      Program arguments: clang hello.c
1.      Compilation construction
2.      Building compilation jobs
3.      Building compilation jobs
Aborted

pi@raspberrypi ~ $ clang -c hello.c
error: unknown target triple 'armv6l-unknown-linux-gnueabihf', please use
-triple or -arch</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>