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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to