<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 --- - Can't build compiler-rt as part of llvm"
   href="http://llvm.org/bugs/show_bug.cgi?id=21384">21384</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't build compiler-rt as part of llvm
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>compiler-rt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pprkut@slackware.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'm trying to build llvm with compiler-rt in the tree, similar to how it is
described at <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a> but using the official
release tarballs instead of svn checkouts.

I'm compiling on a Slackware-current system (the tree leading up to the next
release) using glibc-2.20. I tried working around the error by adding
-I/usr/include to the CFLAGS, but while the compile commands for llvm and clang
picked that up just fine, it's completely ignored by compiler-rt. My next best
guess is that it's failing because stdint.h is missing in SKDs/linux.

This is the error I'm getting:

  COMPILE:   clang_linux/builtins-x86_64/x86_64:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/addvdi3.c
/tmp/llvm-3.5.0.src/Release/bin/clang -fPIC
-I/tmp/llvm-3.5.0.src/projects/compiler-rt/lib
-I/tmp/llvm-3.5.0.src/projects/compiler-rt/include -Wall -Werror -O3
-fomit-frame-pointer -m64
--sysroot=/tmp/llvm-3.5.0.src/projects/compiler-rt/SDKs/linux -c -o
/tmp/llvm-3.5.0.src/tools/clang/runtime/compiler-rt/clang_linux/builtins-x86_64/x86_64/SubDir.lib__builtins/addvdi3.o
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/addvdi3.c
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/adddf3.c:16:
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/fp_add_impl.inc:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/fp_lib.h:24:10: fatal
error: 'stdint.h' file not found
#include <stdint.h>
         ^
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/absvdi2.c:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/int_lib.h:51:12: fatal
error: 'stdint.h' file not found
#  include <stdint.h>
           ^
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/absvsi2.c:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/int_lib.h:51:12: fatal
error: 'stdint.h' file not found
#  include <stdint.h>
           ^
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/absvti2.c:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/int_lib.h:51:12: fatal
error: 'stdint.h' file not found
#  include <stdint.h>
           ^
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/addsf3.c:16:
In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/fp_add_impl.inc:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/fp_lib.h:24:10: fatal
error: 'stdint.h' file not found
#include <stdint.h>
         ^
In file included from In file included from
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/addtf3.c:16:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/fp_lib.h:24:10: fatal
error: 'stdint.h' file not found
#include <stdint.h>
         ^
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/addvdi3.c:15:
/tmp/llvm-3.5.0.src/projects/compiler-rt/lib/builtins/int_lib.h:51:12: fatal
error: 'stdint.h' file not found
#  include <stdint.h>
           ^
1 error generated.</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>