Yuri
2010-Jun-10 08:23 UTC
[LLVMdev] clang build fails if done in the separate object directory
I did these steps: * checked out llvm trunk, and clang trunk * created symbolic link llvm/tools/clang * created separate folder: llvm-objects * run configure and gmake in llvm-objects It builds ok until it hits clang, at which point I get an this error: gmake[2]: Entering directory `/tmp/llvm-svn/llvm-objects/tools/clang' Makefile:44: Makefile.config: No such file or directory Makefile:127: /Makefile.rules: No such file or directory gmake[2]: *** No rule to make target `/Makefile.rules'. Stop. gmake[2]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools/clang' gmake[1]: *** [clang/.makeinstall] Error 2 gmake[1]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools' gmake: *** [install] Error 1 Yuri
Diego Iastrubni
2010-Jun-10 14:43 UTC
[LLVMdev] clang build fails if done in the separate object directory
can you tell what commands exactly did you use? What I usually do is: svn co llvm... mkdir llvm/tools/clang svn co llvm/tools/clang mkdir cmake-build cd cmake-build cmake ../ make Try something similar by running "../configure", it should work. On Thu, Jun 10, 2010 at 11:23 AM, Yuri <yuri at rawbw.com> wrote:> I did these steps: > * checked out llvm trunk, and clang trunk > * created symbolic link llvm/tools/clang > * created separate folder: llvm-objects > * run configure and gmake in llvm-objects > > It builds ok until it hits clang, at which point I get an this error: > gmake[2]: Entering directory `/tmp/llvm-svn/llvm-objects/tools/clang' > Makefile:44: Makefile.config: No such file or directory > Makefile:127: /Makefile.rules: No such file or directory > gmake[2]: *** No rule to make target `/Makefile.rules'. Stop. > gmake[2]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools/clang' > gmake[1]: *** [clang/.makeinstall] Error 2 > gmake[1]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools' > gmake: *** [install] Error 1 > > Yuri > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100610/b7b8ef33/attachment.html>
Reid Kleckner
2010-Jun-10 15:35 UTC
[LLVMdev] clang build fails if done in the separate object directory
I've built clang+llvm in an object directory successfully, and I'm sure others have. I'd guess the problem is the symlink, so I'd give it a shot without it. Reid On Thu, Jun 10, 2010 at 7:43 AM, Diego Iastrubni <diegoiast at gmail.com> wrote:> can you tell what commands exactly did you use? > > What I usually do is: > > svn co llvm... > mkdir llvm/tools/clang > svn co llvm/tools/clang > > mkdir cmake-build > cd cmake-build > cmake ../ > make > > Try something similar by running "../configure", it should work. > > On Thu, Jun 10, 2010 at 11:23 AM, Yuri <yuri at rawbw.com> wrote: >> >> I did these steps: >> * checked out llvm trunk, and clang trunk >> * created symbolic link llvm/tools/clang >> * created separate folder: llvm-objects >> * run configure and gmake in llvm-objects >> >> It builds ok until it hits clang, at which point I get an this error: >> gmake[2]: Entering directory `/tmp/llvm-svn/llvm-objects/tools/clang' >> Makefile:44: Makefile.config: No such file or directory >> Makefile:127: /Makefile.rules: No such file or directory >> gmake[2]: *** No rule to make target `/Makefile.rules'. Stop. >> gmake[2]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools/clang' >> gmake[1]: *** [clang/.makeinstall] Error 2 >> gmake[1]: Leaving directory `/tmp/llvm-svn/llvm-objects/tools' >> gmake: *** [install] Error 1 >> >> Yuri >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Yuri
2010-Jun-10 16:32 UTC
[LLVMdev] clang build fails if done in the separate object directory
On 06/10/2010 07:43, Diego Iastrubni wrote:> can you tell what commands exactly did you use? > > What I usually do is: > > svn co llvm... > mkdir llvm/tools/clang > svn co llvm/tools/clang > > mkdir cmake-build > cd cmake-build > cmake ../ > make >I did something like this: svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm svn co http://llvm.org/svn/llvm-project/llvm/trunk clang ln -s clang llvm/tools/clang mkdir llvm-objects cd llvm-objects ../llvm/configure --prefix=/my/llvm/prefix <other options> gmake gmake install cd .. Yuri
Reasonably Related Threads
- [LLVMdev] clang build fails if done in the separate object directory
- [LLVMdev] clang build fails if done in the separate object directory
- [LLVMdev] clang build fails if done in the separate object directory
- [LLVMdev] Build breaks in lib/CodeGen
- [LLVMdev] clang build fails if done in the separate object directory