[cfe-dev] Problem when configuring llvm and clang
Pedro Delgado Perez
pedro.delgadoperez at mail.uca.es
Tue Jan 22 10:14:25 PST 2013
I had some problems when running make and I was recommended to try a release build. This did work, but now i'm not sure if it is a good option as I want to develop a tool using clang as a library. Please, could you tell me how is the best way to configure llvm for this purpose?
In addition, I'm following the instructions in http://clang.llvm.org/get_started.html [ http://clang.llvm.org/get_started.html ] and I don't know if I have to do what it is explained in:
Simultaneously Building Clang and LLVM
Finally, I've been trying to test if I can run the example shown in http://clang.llvm.org/docs/RAVFrontendAction.html [ http://clang.llvm.org/docs/RAVFrontendAction.html ], but when I reach to the part the document prompts me to create a CmakeLists I lose the path as I don't know what I have to do in this point.
As you can see, I'm newbie and I'm a quite lost.
Thanks in advance,
Pedro.
El dia 15 ene 2013 19:43, Matthieu Monrocq <matthieu.monrocq at gmail.com> escribió:
> On Tue, Jan 15, 2013 at 1:40 PM, Pedro Delgado Perez <pedro.delgadoperez at mail.uca.es [ mailto:pedro.delgadoperez at mail.uca.es ]> wrote:
>
>
> I'm following http://clang.llvm.org/get_started.html [ http://clang.llvm.org/get_started.html ] and i have a problem in the step 6. Build llvm and clang.
>
> When I run ../llvm/configure
>
> I got the next error:
>
> > configure: error: Selected compiler could not find or parse C++ standard library headers. Rerun > with CC=c-compiler CXX=c++-compiler ./configure ...
>
> I was looking for information and came across with these two threads:
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html [ http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-August/016464.html ]
> and
> http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html [ http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044841.html ]
>
> If I do
> $which clang++
> /usr/bin/clang++
>
> And
> $g++ --version
> g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
> $which g++-4.6
> /usr/bin/g++-4.6
>
> So i rerun
> ../llvm/configure CXX="/usr/bin"
>
I always thought CC and CXX needed to point at the compiler *directly*, and not just the path the compiler sits in (especially when there are several compilers sitting there).
So I would say CC="/usr/bin/clang" and CXX="/usr/bin/clang++"
-- Matthieu
and also with CXXFLAGS=-stdlib=libc++, but both ways now I get the same error:
> checking tool compatibility... configure: error: g++|clang++|icc required > but not found
I don't know what's the problem. Please, I need help because I don't know what can I do.
Maybe, i haven't set environment variables correctly.
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev [ http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130122/79930b86/attachment.html>
More information about the cfe-dev
mailing list