[LLVMbugs] [Bug 22907] New: libc++ fails to build with error: "Random device not implemented for this architecture"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 14 17:03:32 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=22907

            Bug ID: 22907
           Summary: libc++ fails to build with error:  "Random device not
                    implemented for this architecture"
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dmarkman at mac.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150315/3ac607f1/attachment.html>


More information about the llvm-bugs mailing list