[llvm-dev] [Support][Debuginfod] Can't find curl/curl.h include...
Kevin Neal via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 6 13:09:17 PST 2021
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 \
-DLLVM_PARALLEL_LINK_JOBS=10 \
-DCMAKE_INSTALL_PREFIX=$HOME2/llvm-trunk/b64nd \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_ENABLE_ASSERTIONS=On \
-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 \
-DLLVM_ENABLE_PROJECTS="clang" \
-DCMAKE_C_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang \
-DCMAKE_CXX_COMPILER=$HOME2/llvm-trunk/b64nd/bin/clang++ \
-DCMAKE_LINKER=/usr/local/bin/ld \
-DLLVM_ENABLE_SPHINX=on \
-DLLVM_ENABLE_EXPENSIVE_CHECKS=on \
$HOME2/clvm/trunk/llvm-earlycse/llvm
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 at ibm.com<mailto:Jake.Egan at ibm.com>
Date: Mon Dec 6 09:26:04 2021 -0500
From: Noah Shutty <shutty at google.com>
Sent: Monday, December 06, 2021 4:01 PM
To: Kevin Neal <Kevin.Neal at sas.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] [Support][Debuginfod] Can't find curl/curl.h include...
EXTERNAL
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<mailto: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<mailto:llvm-dev at lists.llvm.org>
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211206/d4445a3b/attachment.html>
More information about the llvm-dev
mailing list