<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I tried copying both with commands and
from the Dolphin file manager (I use KDE), same result. I am also
adding some commands so you can see the file permissions:<br>
<br>
<small><font face="Courier New, Courier, monospace">blah@blah-desktop:~/Projects/build-llvm/tools/clang/tools
> cp -R
~/Projects/llvm/tools/clang/examples/clang-interpreter/ .<br>
blah@blah-desktop:~/Projects/build-llvm/tools/clang/tools >
cd clang-interpreter/<br>
blah@blah-desktop:~/Projects/build-llvm/tools/clang/tools/clang-interpreter
> make<br>
make: *** No rule to make target
`/home/aortegag/Projects/llvm/tools/clang/tools/clang-interpreter/Makefile',
needed by `Makefile'. Stop.<br>
</font></small><small><font face="Courier New, Courier,
monospace"><font face="Courier New, Courier, monospace">blah@blah-desktop</font>:~/Projects/build-llvm/tools/clang/tools/clang-interpreter
> cd ../LibToolingExample/<br>
</font></small><small><font face="Courier New, Courier,
monospace"><font face="Courier New, Courier, monospace">blah@blah-desktop</font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> make<br>
make: Nothing to be done for `all'.<br>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><big>blah@blah-desktop:</big></font></small>~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> make clean<br>
</font></small><small><font face="Courier New, Courier,
monospace"><font face="Courier New, Courier, monospace">blah@blah-desktop</font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> make<br>
llvm[0]: Compiling Example.cpp for Debug+Asserts build<br>
llvm[0]: Linking Debug+Asserts executable example<br>
llvm[0]: ======= Finished Linking Debug+Asserts Executable
example<br>
</font></small><small><font face="Courier New, Courier,
monospace"><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah@blah-desktop</font></font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> <br>
</font></small><small><font face="Courier New, Courier,
monospace"><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace">blah@blah-desktop</font></font></font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> ll<br>
total 28<br>
</font></small><br>
<small><font face="Courier New, Courier, monospace">drwxr-xr-x 2 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font><font face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
4096 feb 20 21:16 Debug+Asserts</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font><font face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
4251 feb 17 22:04 Example.cpp</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font><font face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
545 feb 17 22:22 Makefile</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font><font face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
540 feb 17 22:04 README.md</font></small><br>
<small><font face="Courier New, Courier, monospace">-rwxr-xr-x 1 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font><font face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
128 feb 17 22:25 run_example.sh</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
118 feb 17 22:04 test.c</font></small><br>
<small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New, Courier,
monospace">blah@blah-desktop</font></font></font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
> ll ../clang-interpreter/</font></small><br>
<small><font face="Courier New, Courier, monospace">total 24</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font></small><small><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
578 feb 20 21:13 CMakeLists.txt</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font></small><small><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
5842 feb 20 21:13 main.cpp</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font></small><small><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
968 feb 20 21:13 Makefile</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font></small><small><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
653 feb 20 21:13 README.txt</font></small><br>
<small><font face="Courier New, Courier, monospace">-rw-r--r-- 1 </font></small><small><font
face="Courier New, Courier, monospace"><small><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New,
Courier, monospace">blah</font></font></font></small>
</font></small><small><font face="Courier New, Courier,
monospace"><small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">blah</font></font></font></small>
56 feb 20 21:13 test.c</font></small><br>
<small><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace"><font face="Courier New, Courier,
monospace">blah@blah-desktop</font></font></font>:~/Projects/build-llvm/tools/clang/tools/LibToolingExample
></font></small><br>
<br>
The command line I used to configure llvm, and clang was:<br>
<small><font face="Courier New, Courier, monospace"><br>
../llvm/configure --enable-targets=host --prefix=$HOME/llvm
CC=gcc CXX=g++ --enable-shared --enable-debug-symbols
--enable-jit --enable-doxygen --enable-cxx11
--enable-keep-symbols</font></small><br>
<br>
Yes, I want to step through clang code with the debugger :)<br>
<br>
Once again, thanks for the help and your time. I hope this info
can help spot the problem.<br>
<br>
On 19/02/14 01:37, Eric Christopher wrote:<br>
</div>
<blockquote
cite="mid:CALehDX7UrR-BhDiqfL1MvHjoknLEa=wC-7dt2Kq-vKKkidg0OA@mail.gmail.com"
type="cite">
<pre wrap="">Can you give the list of commands you're using to do the "copying" and
the configuration etc? Might help figure out where you're going wrong.
-eric
On Tue, Feb 18, 2014 at 7:33 PM, Adrian Ortega <a class="moz-txt-link-rfc2396E" href="mailto:elfus0.1@gmail.com"><elfus0.1@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I am trying to compile the example 'clang-interpreter' from path
'tools/clang/examples'. I copied that folder into the build-llvm folder I
created for building llvm and clang, specifically in folder
'tools/clang/tools/'. When I do 'make' all I get is
make: *** No rule to make target
`/home/blah/llvm/tools/clang/tools/clang-interpreter/Makefile', needed by
`Makefile'. Stop.
I thought that my build was broken, but it was not. I tried downloading this
example <a class="moz-txt-link-freetext" href="https://github.com/kevinaboos/LibToolingExample">https://github.com/kevinaboos/LibToolingExample</a> and placed it under
the same 'tools/clang/tools/' folder as the clang interpreter. When I did
'make' it just compiled, created the Debug+Asserts folder in
'tools/clang/tools/LibToolingExample/Debug+Asserts/' and placed the binary
under the '$LLVM_ROOT/Debug+Asserts/bin/' folder, and it works fine.
I tried copying the makefile from that LibToolingExample and changed only
the name of source file to be compiled, it didn't work, I get the same error
I described above.
>From this I can tell that I'm doing something wrong as I don't fully
understand the llvm-clang build system yet, I was able to compile an example
but not the example provided in clang directory. Do you have any idea on
what the problem is? Or do you have a hint of what Makefile or Documentation
I should read to solve this?
Thanks.
P.D. I am able to able to compile the clang examples out of the llvm-clang
source tree by providing the correct compiler flags, but I'd like to use the
llvm-clang build system :)
_______________________________________________
cfe-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a>
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>