<div dir="ltr">Hi Kevin,<div><br></div><div>Thank you for sending your configuration. I wasn't able to reproduce, but I was wondering if <a href="https://reviews.llvm.org/D115189">D115189</a> fixes your build? This just adds the curl include dirs when compiling the support library.</div><div><br></div><div>Thanks,</div><div>Noah</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 6, 2021 at 1:09 PM Kevin Neal via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">I’m using clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project.git" target="_blank">https://github.com/llvm/llvm-project.git</a> 7fef551cb123d9f1956f8ec7a142bd8a63d25fa9)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">With “pkg info | grep cmake”:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">cmake-3.8.2 Cross-platform Makefile generator<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">cmake-modules-3.8.2 Modules and Templates for CMake<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">I have a script that runs:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">exec cmake -G Ninja \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DLLVM_PARALLEL_LINK_JOBS=10 \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_INSTALL_PREFIX=$HOME2/llvm-trunk/b64nd \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_BUILD_TYPE=Debug \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DLLVM_ENABLE_ASSERTIONS=On \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_AR=/usr/local/bin/ar \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_NM=/usr/local/bin/nm \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_STRIP=/usr/local/bin/strip \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_RANLIB=/usr/local/bin/ranlib \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_OBJCOPY=/usr/local/bin/objcopy \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_OBJDUMP=/usr/local/bin/objdump \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DLLVM_ENABLE_PROJECTS="clang" \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_C_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_CXX_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang++ \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DCMAKE_LINKER=/usr/local/bin/ld \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DLLVM_ENABLE_SPHINX=on \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> -DLLVM_ENABLE_EXPENSIVE_CHECKS=on \<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"> $HOME2/clvm/trunk/llvm-earlycse/llvm<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">I was incorrect earlier in that I’m not using the base FreeBSD clang. My mistake.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">My git tree is current as of:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">commit b23d17f6b5f7748645996f54c79dc0b58aa5a9c2 (origin/main, main)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">Author: Jake Egan
<a href="mailto:Jake.Egan@ibm.com" target="_blank">Jake.Egan@ibm.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)">Date: Mon Dec 6 09:26:04 2021 -0500<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:rgb(68,84,106)"><u></u> <u></u></span></p>
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Noah Shutty <<a href="mailto:shutty@google.com" target="_blank">shutty@google.com</a>> <br>
<b>Sent:</b> Monday, December 06, 2021 4:01 PM<br>
<b>To:</b> Kevin Neal <<a href="mailto:Kevin.Neal@sas.com" target="_blank">Kevin.Neal@sas.com</a>><br>
<b>Cc:</b> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [llvm-dev] [Support][Debuginfod] Can't find curl/curl.h include...<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p><b><i><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">EXTERNAL</span></i></b><span style="font-size:12pt;font-family:Arial,sans-serif;color:red">
</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Kevin, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Could you please share your complete Cmake configuration invocation? E.g. `cmake -S llvm -B build -G Ninja -D...`<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Noah<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Dec 6, 2021 at 12:54 PM Kevin Neal via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">I’ve got a build failure now that we’re using curl. I’m on FreeBSD 11.1 using its clang.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">What I’m seeing is that during the configure stage this gets printed:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">-- Found CURL: /usr/local/lib/libcurl.so (found version "7.54.1")<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">But the curl/curl.h include file is located in /usr/local/include which is _<i>not</i>_ in the list of paths FreeBSD’s clang checks by default. The result is a failure to find the include.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">I don’t know what the right solution is and I don’t know cmake. Perhaps making sure that “/usr/local/lib/../include” gets a “-I” flag to the clang build since that /lib/ directory is where libcurl.so
was found?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt">--</span> <br>
<span style="font-size:10pt;font-family:"Courier New"">Kevin P. Neal<br>
SAS/C and SAS/C++ Compiler</span><span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Compute Services</span><span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">SAS Institute, Inc.</span><span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-family:"Courier New""><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.llvm.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fllvm-dev&data=04%7C01%7CKevin.Neal%40sas.com%7C71d5bb04c5354c6a197608d9b8fb8882%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C637744212729621329%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=5pFaQPo8OM9RrVHoR1eY5V8tgAGKk%2BEenltqmn%2B%2B1us%3D&reserved=0" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>