[cfe-dev] Building LLVM/Clang

Alexander Droste via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 2 08:54:50 PST 2015


Hi,

you could use the attached script.
Note that the script also includes clang tools and compiler-rt.

-Alex

On 02.11.15 17:02, James Molloy via cfe-dev wrote:
> Hi,
>
> To expound upon what Joshua said:
>
>
>     - cd ../..
>
> Now that I am back in top level directory I issued the "make" cmd and this
> is what I get:
>
> make: *** No targets specified and no makefile found. Stop.
>
> * mkdir build
> * cd build
> * cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON
> * make -j12
>
>
> James
>
>
> On Mon, 2 Nov 2015 at 15:59 Joshua Gerrard via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> You need to run cmake*
>>
>> --
>> Joshua Gerrard
>> JUCE Software Developer
>>
>> ROLI’s award-winning Seaboard GRAND, celebrated as the “piano of the
>> future”, is now joined by the Seaboard RISE, “every bit as slimline and
>> attractive as its bigger brother”. The press is hailing the Seaboard RISE
>> as “innovative”, “expressive”, “accessible”, and “a keyboard controller
>> that does to piano keys what 3D touch does to the iPhone”. Now available
>> for preorder at www.roli.com.
>>
>> On 2 Nov 2015, at 15:58, Joshua Gerrard <joshua.gerrard at roli.com> wrote:
>>
>> You need to run make first; it’ll generate the makefiles.
>> I’d recommend performing an out of source build. If you don’t know what
>> that is, I’m happy to explain.
>>
>> --
>> Joshua Gerrard
>> JUCE Software Developer
>>
>> ROLI’s award-winning Seaboard GRAND, celebrated as the “piano of the
>> future”, is now joined by the Seaboard RISE, “every bit as slimline and
>> attractive as its bigger brother”. The press is hailing the Seaboard RISE
>> as “innovative”, “expressive”, “accessible”, and “a keyboard controller
>> that does to piano keys what 3D touch does to the iPhone”. Now available
>> for preorder at www.roli.com.
>>
>> On 2 Nov 2015, at 15:52, Omid Ghenatnevi via cfe-dev <
>> cfe-dev at lists.llvm.org> wrote:
>>
>> Hello everyone,
>>
>> I am having trouble trying to build LLVM/Clang.
>>
>> Here's the steps I followed:
>>
>> mkdir static_analysis
>> cd static_analysis
>>
>>
>>     - svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
>>     - cd llvm/tools
>>     - svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
>>     - cd ../..
>>     - cd llvm/tools/clang/tools
>>     - svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra
>>     - cd ../../../..
>>     - cd llvm/projects
>>     - svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
>>     - cd ../..
>>
>> Now that I am back in top level directory I issued the "make" cmd and this
>> is what I get:
>>
>> make: *** No targets specified and no makefile found. Stop.
>>
>> I also tried issuing "make" cmd from llvm directory:
>> $ cd static_analysis/LLVM/
>> $ make
>>
>> and this is what I get:
>> Makefile:44: Makefile config: No such file or directory
>> Makefile:151: /Makefile.rules: No such file or directory
>> make: *** No rule to make target `/Makefile.rules'. Stop.
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_clang_compiler_rt.sh
Type: application/x-sh
Size: 1067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151102/827f36f5/attachment.sh>


More information about the cfe-dev mailing list