[LLVMdev] Error compiling llvm/clang with clang+libc++ with -std=cxx0x
Ashok Nalkund
ashoknn at qualcomm.com
Tue Jun 26 09:54:25 PDT 2012
Thanks Dimitry. That worked.
I see some warnings in my compilations:
> Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/IntEqClasses.cpp.o
> [ 2%] clang-3: warning: argument unused during compilation: '-nostdinc++'
> Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/IntrusiveRefCntPtr.cpp.o
> clang-3: warning: argument unused during compilation: '-stdlib=libc++'
Is that expected? I'm using both -stdlib=libc++ and -std=cxx0x. I dont
see them when I used just -stdlib=libc++ flag.
Thanks,
Ashok
On 6/26/2012 1:30 AM, Dimitry Andric wrote:
> On 2012-06-26 04:22, Ashok Nalkund wrote:
> ...
>>> /local/mnt/workspace/ashoknn/519_libcxx_transition/llvm/src/tools/bugpoint/ToolRunner.cpp:131:12: error: invalid operands to binary expression ('llvm::raw_ostream' and 'std::ostringstream'
>>> (aka 'basic_ostringstream<char>'))
>>> errs() << OS;
>>> ~~~~~~ ^ ~~
>>
>
> Hi Ashok, please try applying this diff from r155978 to your 3.1 release tree:
>
> --- llvm/trunk/tools/bugpoint/ToolRunner.cpp 2012/05/02 05:31:31 155977
> +++ llvm/trunk/tools/bugpoint/ToolRunner.cpp 2012/05/02 05:39:10 155978
> @@ -128,7 +128,7 @@
> ErrorFile.close();
> }
>
> - errs() << OS;
> + errs() << OS.str();
> }
>
> return ReturnCode;
>
More information about the llvm-dev
mailing list