please check out compiler-rt

Hi all,

Executive Summary:

As a side note, keeping it up to date is easy if you are using the makefile build system and svn.

Just use "make update" and it will update llvm, clang, compiler-rt and other projects checked out in projects directory.

I don't know about the cmake build system, but there is probably a way to do it too.

-- Jean-Daniel

Hi;

They're maintained to the point that it is possible to build clang
with CMake on Windows in some configurations. Beyond that, there are
rough edges.

-Eli

Hi;

Hi all,

Executive Summary:

Please check out compiler-rt into llvm/projects, and keep it up to
date. For example:
(cd ~/llvm/projects && svn co
http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt)
or:
(cd ~/llvm/projects && git clone http://llvm.org/git/compiler-rt.git)

cmake build system has no idea about compiler-rt and hence it doesn’t build
it. Given other problems with cmake buildsystem itself, are cmake files
maintained at all?

They’re maintained to the point that it is possible to build clang
with CMake on Windows in some configurations. Beyond that, there are
rough edges.

Which works quite well, I’m sure there’s a simple fix for this indeficiency, for those that know where compiler-rt fits in. No need to bash something you don’t know.

Ruben

Hi;

2011/12/8 Ruben Van Boxem <vanboxem.ruben@gmail.com>

I think you're missing the point here - If cmake works on Win32 then it's likely a user error or minor bug and it should work just fine elsewhere. (Not always, but in many cases)

Why don't you actually post an error or more details so you can get help. (If you're just an autotools fanboy trying to switch a package over, have fun)

Hi;

Well, the compiler-rt bug is that CMake has no idea about that sub-directory

What cmake line did you use? What's your directory structure look like.. What exactly did you clone/checkout and where.. What's the *exact* error you're getting..

, for other cmake bug you might want to take a look at http://llvm.org/bugs/show_bug.cgi?id=10050 which I reported like 5 months ago already.

That's not a bug - that's a feature request

Hi;

Well, the compiler-rt bug is that CMake has no idea about that sub-directory

What cmake line did you use? What’s your directory structure look like… What exactly did you clone/checkout and where… What’s the exact error you’re getting…

Checked out compiler-rt in projects subdir, clang into tools

mkdir build
cmake …

as usual llvm & clang built but no compiler-rt in sight.

, for other cmake bug you might want to take a look at http://llvm.org/bugs/show_bug.cgi?id=10050 which I reported like 5 months ago already.

That’s not a bug - that’s a feature request

Nope, thats what configure does by default so cmake supposed to do the same.

Regards,
ismail

I was simply pointing out that CMake gets much less testing than the
autoconf build system on non-Windows platforms.

-Eli

You are correct, there is not any compiler-rt integration for CMake
yet. Chandler and I have briefly discussed one solution here, but no
one has implemented anything yet.

Currently I view it as "non-trivial", so its basically waiting for
someone to step up and own it. One possible short term solution is
that we just have the Clang CMake build invoke the compiler-rt Make
based build. This should work okay on Unix, although it won't for
Windows (but compiler-rt isn't particularly important there yet).

- Daniel