Kevin Neal via llvm-dev
2021-Dec-06 20:53 UTC
[llvm-dev] [Support][Debuginfod] Can't find curl/curl.h include...
I've got a build failure now that we're using curl. I'm on FreeBSD 11.1 using its clang. What I'm seeing is that during the configure stage this gets printed: -- Found CURL: /usr/local/lib/libcurl.so (found version "7.54.1") But the curl/curl.h include file is located in /usr/local/include which is _not_ in the list of paths FreeBSD's clang checks by default. The result is a failure to find the include. 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? -- Kevin P. Neal SAS/C and SAS/C++ Compiler Compute Services SAS Institute, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211206/e6d69725/attachment.html>
Noah Shutty via llvm-dev
2021-Dec-06 21:00 UTC
[llvm-dev] [Support][Debuginfod] Can't find curl/curl.h include...
Hi Kevin, Could you please share your complete Cmake configuration invocation? E.g. `cmake -S llvm -B build -G Ninja -D...` Thanks, Noah On Mon, Dec 6, 2021 at 12:54 PM Kevin Neal via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I’ve got a build failure now that we’re using curl. I’m on FreeBSD 11.1 > using its clang. > > What I’m seeing is that during the configure stage this gets printed: > -- Found CURL: /usr/local/lib/libcurl.so (found version "7.54.1") > > But the curl/curl.h include file is located in /usr/local/include which is > _*not*_ in the list of paths FreeBSD’s clang checks by default. The > result is a failure to find the include. > > 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? > > -- > Kevin P. Neal > SAS/C and SAS/C++ Compiler > Compute Services > SAS Institute, Inc. > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211206/d4bf4644/attachment.html>