[cfe-dev] Building past few days with Clang++ and Clang produces errors on Cmake for Debian Linux

=?utf-8?Q?=C3=93scar_Fuentes?= ofv at wanadoo.es
Tue Mar 27 20:13:23 PDT 2012


"Marc J. Driftmeyer" <mjd at reanimality.com> writes:

>> mdriftmeyer at horus:~/DeveloperProjects/LLVMProject/cmake-llvm$ cmake
>> -DCMAKE_BUILD_TYPE=MinSizeRel
>> -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++
>> -DCMAKE_C_COMPILER=/usr/local/bin/clang -DCMAKE_CXX_FLAGS='-O2'
>> CMAKE_C_FLAGS='-O2' -DLLVM_BUILD_EXAMPLES=ON -DLLVM_BUILD_TESTS=ON
___^

`-D' is missing there. A pasto, I guess.

[snip]

>> You have changed variables that require your cache to be deleted.
>> Configure will be re-run and you may have to reset some variables.
>> The following variables have changed:
>> CMAKE_C_COMPILER= /usr/local/bin/clang
>> CMAKE_CXX_COMPILER= /usr/local/bin/clang++

Make sure you follow that advice.

Can you compile a Hello World C++ programa that uses iostreams with
Clang?

My guess is that clang's heuristics for locating g++ libraries and
headers is failing on your setup.

[snip]



More information about the cfe-dev mailing list