<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 --- - libc++ fails to build with error: "Random device not implemented for this architecture""
   href="https://llvm.org/bugs/show_bug.cgi?id=22907">22907</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libc++ fails to build with error:  "Random device not implemented for this architecture"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dmarkman@mac.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>when I'm trying to build latest SVN libc++ I'm getting error:

[ 61%] Building CXX object lib/CMakeFiles/cxx.dir/__/src/random.cpp.o
/Users/dima/Development/C++/clang/libcxx/src/random.cpp:143:2: error: "Random
device not implemented for this
      architecture"
#error "Random device not implemented for this architecture"
 ^
1 error generated.
make[2]: *** [lib/CMakeFiles/cxx.dir/__/src/random.cpp.o] Error 1
make[1]: *** [lib/CMakeFiles/cxx.dir/all] Error 2
make: *** [all] Error 2


if I add few lines at the beginning of the file random.cpp
#ifndef _LIBCPP_USING_DEV_RANDOM
#define _LIBCPP_USING_DEV_RANDOM
#endif


everything was fine

Note: llvm 3.6 doesn't have that problem, only source from trunk</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>