<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I'm stuck on 10.8.5 and got around it
by:<br>
<br>
1. Building the most recent stable branch of libc++. I got a
couple of errors in the regression tests, but they looked like
something obscure enough to net affect the compiler and so far,
that is panning out.<br>
<br>
2. I ran configure as follows:<br>
<br>
../llvm/configure CXXFLAGS="-stdlib=libc++
-I/Programming/llvm/libcxx34/test/support
-I/Programming/llvm/libcxx34/include"
LDFLAGS="-L/Programming/llvm/libcxx34/lib"<br>
<br>
I don't remember what the libcxx34/test/support dir is about. I
probably cut and pasted the search paths from one of the LLVM
docs. Or maybe it's only need to run the tests. It takes a long
time to build, you do want to use the -j option with make.<br>
<br>
I believe this completely avoids using anything from GCC (except
maybe the assembler).<br>
<br>
I used the stable 3.4 branch and the regression tests all appear
to pass (there is a lot of output; so, I could have missed
something).<br>
<br>
Caveat: Outside of running the regressions, I haven't executed
any code, yet. I'm actually porting LLVM to the Stratus VOS
operating system (in my spare time, this isn't an official
project). I won't really start testing things until I get some
basic ABI tweaks done.<br>
<br>
According to the online docs, you can also get it to work by
installing a recent GCC compiler suite. That seemed like a lot
more work for me. Especially because that would probably be a
nightmare on the new OS, because the GCC that's ported over there
is way to old to build LLVM and there is no practical way to
upgrade it.<br>
<br>
On 5/10/14 7:56 AM, Andras Csizmadia wrote:<br>
</div>
<blockquote cite="mid:536E13DA.60109@vpmedia.hu" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font face="Helvetica, Arial, sans-serif">Hello,</font><br>
<font face="Helvetica, Arial, sans-serif"><br>
I've some exceptions which I would like to solve to build
LLVM+Clang from source on MacOSX 10.8+.</font><br>
<font face="Helvetica, Arial, sans-serif"><br>
"</font><br>
<font face="Helvetica, Arial, sans-serif">[0m[1m/Users/travis/build/vpmedia/crossbridge/llvm-2.9/lib/Transforms/Utils/CodeExtractor.cpp:728:28:
[0m[0;1;31m</font><br>
<font face="Helvetica, Arial, sans-serif">error: [0m[1m no
matching constructor for initialization of
'std::vector<BasicBlock *>'[0m
std::vector<BasicBlock*> Succs(succ_begin(codeReplacer),</font><br>
<font face="Helvetica, Arial, sans-serif">"<br>
</font><font face="Helvetica, Arial, sans-serif"><br>
I understand that it is some kind of C++ library issue
(stdlibc++ vs. c++v1) but not exactly how to solve it. (Passing
-stdlib=libstdc++ as CXX flag does not solve this).<br>
<br>
You can check out a related github ticket here: <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/Homebrew/homebrew-versions/issues/384">https://github.com/Homebrew/homebrew-versions/issues/384</a></font><br>
<br>
Also a Travis CI build:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://s3.amazonaws.com/archive.travis-ci.org/jobs/24856999/log.txt">https://s3.amazonaws.com/archive.travis-ci.org/jobs/24856999/log.txt</a><br>
<br>
I've googled for solution but I've only found partial informations
regarding this.<br>
<br>
Any tips what should I do to easily fix these problems without
modifying the LLVM source code?<br>
<br>
<br>
Thanks!<br>
Andrew<br>
</blockquote>
</body>
</html>