[LLVMbugs] [Bug 11840] New: libc++ linux compile error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 23 19:35:57 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11840

             Bug #: 11840
           Summary: libc++ linux compile error
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: qiwei.uk at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Hi all,

I have the following error when building libc++ on GNU/Linux (Debian Wheezy).

+ clang++ -c -g -Os -fPIC -std=c++0x -fstrict-aliasing -Wall -Wextra -Wshadow
-Wconversion -Wnewline-eof -Wpadded -Wmissing-prototypes -Wstrict-aliasing=2
-Wstrict-overflow=4 -nostdinc++ -I../include ../src/future.cpp
../src/future.cpp:42:10: error: value of type 'std::__1::future_errc' is not
      implicitly convertible to 'int'
    case future_errc::no_state:
         ^~~~~~~~~~~~~~~~~~~~~
../src/future.cpp:40:10: error: value of type 'std::__1::future_errc' is not
      implicitly convertible to 'int'
    case future_errc::promise_already_satisfied:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/future.cpp:37:10: error: value of type 'std::__1::future_errc' is not
      implicitly convertible to 'int'
    case future_errc::future_already_retrieved:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/future.cpp:34:10: error: value of type 'std::__1::future_errc' is not
      implicitly convertible to 'int'
    case future_errc::broken_promise:
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

I have before this built llvm/clang using the latest SVN checkout.

Thank you if you can help.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list