<div dir="auto"><div>Glad to hear it helps! </div><div dir="auto"><br></div><div dir="auto">If you look at the history of .travis.yml, you'll find a few 'sed' hacks to strip missing files of the llvm cmake modules. </div><div dir="auto"><br></div><div dir="auto">Looks like we need to reinstate some of them again. </div><div dir="auto"><br></div><div dir="auto">- Kim </div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sat, Nov 16, 2019, 13:49 Laurent Thévenoux <<a href="mailto:lrnt@thvnx.com">lrnt@thvnx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
  thanks everyone for you help!<br>
<br>
Kim, your solution looks hopeful, unfortunately it seems to not work anymore, since it fails on travis with the following message:<br>
<br>
```<br>
$ cmake -GNinja -DCMAKE_PREFIX_PATH=$ROOT_PATH -DCMAKE_C_COMPILER=$BIN_PATH/clang -DCMAKE_CXX_COMPILER=$BIN_PATH/clang++ -DCMAKE_INSTALL_PREFIX=./ ../<br>
295-- IWYU: out-of-tree configuration<br>
296-- The C compiler identification is Clang 10.0.0<br>
297-- The CXX compiler identification is Clang 10.0.0<br>
298-- Check for working C compiler: /usr/lib/llvm-10/bin/clang<br>
299-- Check for working C compiler: /usr/lib/llvm-10/bin/clang -- works<br>
300-- Detecting C compiler ABI info<br>
301-- Detecting C compiler ABI info - done<br>
302-- Detecting C compile features<br>
303-- Detecting C compile features - done<br>
304-- Check for working CXX compiler: /usr/lib/llvm-10/bin/clang++<br>
305-- Check for working CXX compiler: /usr/lib/llvm-10/bin/clang++ -- works<br>
306-- Detecting CXX compiler ABI info<br>
307-- Detecting CXX compiler ABI info - done<br>
308-- Detecting CXX compile features<br>
309-- Detecting CXX compile features - done<br>
316CMake Error at /usr/lib/llvm-10/lib/cmake/llvm/LLVMExports.cmake:1344 (message):<br>
317  The imported target "ExampleIRTransforms" references the file<br>
318<br>
319     "/usr/lib/llvm-10/lib/libExampleIRTransforms.a"<br>
320<br>
321  but this file does not exist.  Possible reasons include:<br>
322<br>
323  * The file was deleted, renamed, or moved to another location.<br>
324<br>
325  * An install or uninstall procedure did not complete successfully.<br>
326<br>
327  * The installation package was faulty and contained<br>
328<br>
329     "/usr/lib/llvm-10/lib/cmake/llvm/LLVMExports.cmake"<br>
330<br>
331  but not all the files it references.<br>
332<br>
333Call Stack (most recent call first):<br>
334  /usr/lib/llvm-10/cmake/LLVMConfig.cmake:256 (include)<br>
335  CMakeLists.txt:15 (find_package)<br>
336<br>
337<br>
338-- Configuring incomplete, errors occurred!<br>
339See also "/home/travis/build/thvnx/clang-fco/build/CMakeFiles/CMakeOutput.log".<br>
340The command "cmake -GNinja -DCMAKE_PREFIX_PATH=$ROOT_PATH -DCMAKE_C_COMPILER=$BIN_PATH/clang -DCMAKE_CXX_COMPILER=$BIN_PATH/clang++ -DCMAKE_INSTALL_PREFIX=./ ../" exited with 1.<br>
```<br>
<br>
(I’ve double-checked with a clone of your repo) Any idea?<br>
<br>
Laurent <br>
<br>
> Le 16 nov. 2019 à 11:40, Kim Gräsman <<a href="mailto:kim.grasman@gmail.com" target="_blank" rel="noreferrer">kim.grasman@gmail.com</a>> a écrit :<br>
> <br>
> If the straight line tutorials end up not working, you may be able to find some inspiration for workarounds in IWYU:<br>
> <a href="https://github.com/include-what-you-use/include-what-you-use/blob/master/CMakeLists.txt" rel="noreferrer noreferrer" target="_blank">https://github.com/include-what-you-use/include-what-you-use/blob/master/CMakeLists.txt</a><br>
> <br>
> And:<br>
> <a href="https://github.com/include-what-you-use/include-what-you-use/blob/master/.travis.yml" rel="noreferrer noreferrer" target="_blank">https://github.com/include-what-you-use/include-what-you-use/blob/master/.travis.yml</a><br>
> <br>
> - Kim <br>
> <br>
> On Wed, Nov 13, 2019, 17:26 Laurent Thévenoux via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a>> wrote:<br>
> Hi,<br>
> <br>
> I’m trying to develop a clang-tool, following such kind of tutorial : <a href="https://clang.llvm.org/docs/LibASTMatchersTutorial.html" rel="noreferrer noreferrer" target="_blank">https://clang.llvm.org/docs/LibASTMatchersTutorial.html</a>.<br>
> <br>
> I’m using GitHub with Travis-CI and I can’t build clang/llvm on Travis because of the free-plan constraints. I’m wondering if it is possible to build such a tool without having to build clang/llvm, i.e., is there a way to simply install clang (from any package manager) with its LibTooling and LibASTMatchers, to which I could link my tool with?<br>
> <br>
> Regards,<br>
> Laurent<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote></div></div></div>