[cfe-dev] Problem when configuring llvm and clang

Pedro Delgado Perez pedro.delgadoperez at mail.uca.es
Thu Jan 17 09:40:44 PST 2013


 
Thank you very much, I don't know what i was thinking on. Now, I have another question to do: how much size in hard disk does the installation of clang and llvm need? I've run out of memory when doing "make" (I had a partition with ubuntu with only 8 Gb as I didin't think it was going to need so much hard disk) 

Thanks again.


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/20130117/07261198/attachment.html>


More information about the cfe-dev mailing list