[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?

Hi Kevin,

Could you please share your complete Cmake configuration invocation? E.g. cmake -S llvm -B build -G Ninja -D...


I’m using clang version 12.0.0 (https://github.com/llvm/llvm-project.git 7fef551cb123d9f1956f8ec7a142bd8a63d25fa9)

With “pkg info | grep cmake”:

cmake-3.8.2 Cross-platform Makefile generator

cmake-modules-3.8.2 Modules and Templates for CMake

I have a script that runs:

exec cmake -G Ninja \


-DCMAKE_INSTALL_PREFIX=$HOME2/llvm-trunk/b64nd \



-DCMAKE_AR=/usr/local/bin/ar \

-DCMAKE_NM=/usr/local/bin/nm \

-DCMAKE_STRIP=/usr/local/bin/strip \

-DCMAKE_RANLIB=/usr/local/bin/ranlib \

-DCMAKE_OBJCOPY=/usr/local/bin/objcopy \

-DCMAKE_OBJDUMP=/usr/local/bin/objdump \


-DCMAKE_C_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang \

-DCMAKE_CXX_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang++ \

-DCMAKE_LINKER=/usr/local/bin/ld \




I was incorrect earlier in that I’m not using the base FreeBSD clang. My mistake.

My git tree is current as of:

commit b23d17f6b5f7748645996f54c79dc0b58aa5a9c2 (origin/main, main)

Author: Jake Egan Jake.Egan@ibm.com

Hi Kevin,

Thank you for sending your configuration. I wasn’t able to reproduce, but I was wondering if D115189 fixes your build? This just adds the curl include dirs when compiling the support library.