You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2021/10/21 15:34:00 UTC
[jira] [Created] (MINIFICPP-1674) fix azure dependencies
Marton Szasz created MINIFICPP-1674:
---------------------------------------
Summary: fix azure dependencies
Key: MINIFICPP-1674
URL: https://issues.apache.org/jira/browse/MINIFICPP-1674
Project: Apache NiFi MiNiFi C++
Issue Type: Bug
Affects Versions: 0.10.0
Reporter: Marton Szasz
clang 7, debian buster:
[5/129] Building CXX object sdk/core/azure-core/CMakeFiles/azure-core.dir/src/http/curl/curl.cpp.o
FAILED: sdk/core/azure-core/CMakeFiles/azure-core.dir/src/http/curl/curl.cpp.o
/usr/bin/clang++ -DBUILD_CURL_HTTP_TRANSPORT_ADAPTER -Isdk/core/azure-core/inc -isystem /home/szaszm/nifi-minifi-cpp/build/thirdparty/libressl-install/include -isystem /home/szaszm/nifi-minifi-cpp/build/thirdparty/curl-install/include -O3 -pipe -march=native -Wall -Wextra -std=c++2a -w -O2 -g -DNDEBUG -fPIC -fno-operator-names -Wold-style-cast -Xclang -Wall -Wextra -pedantic -Wdocumentation -Wdocumentation-unknown-command -Wcast-qual -std=gnu++14 -MD -MT sdk/core/azure-co
re/CMakeFiles/azure-core.dir/src/http/curl/curl.cpp.o -MF sdk/core/azure-core/CMakeFiles/azure-core.dir/src/http/curl/curl.cpp.o.d -o sdk/core/azure-core/CMakeFiles/azure-core.dir/src/http/curl/curl.cpp.o -c sdk/core/azure-core/src/http/curl/curl.cpp
In file included from sdk/core/azure-core/src/http/curl/curl.cpp:12:
In file included from sdk/core/azure-core/src/http/curl/curl_connection_pool_private.hpp:15:
sdk/core/azure-core/src/http/curl/curl_connection_private.hpp:23:10: fatal error: 'curl/curl.h' file not found
#include <curl/curl.h>
^~~~~~~~~~~~~
1 error generated.
clang 13, gentoo:
[6/39] Building CXX object sdk/storage/azure-storage-common/CMakeFiles/azure-storage-common.dir/src/xml_wrapper.cpp.o
FAILED: sdk/storage/azure-storage-common/CMakeFiles/azure-storage-common.dir/src/xml_wrapper.cpp.o
/usr/lib/llvm/13/bin/clang++ -DBUILD_CURL_HTTP_TRANSPORT_ADAPTER -I/home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/azure-sdk-cpp-src/sdk/storage/azure-storage-common/inc -I/home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/libxml2-install/include/libxml2 -I/home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/azure-sdk-cpp-src/sdk/core/azure-core/inc -isystem /home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/curl-install/include -isyst
em /home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/libressl-install/include -O3 -pipe -march=native -Wall -Wextra -std=c++20 -w -O2 -g -DNDEBUG -fPIC -fno-operator-names -Wold-style-cast -Xclang -Wall -Wextra -pedantic -Wdocumentation -Wdocumentation-unknown-command -Wcast-qual -pthread -std=gnu++14 -MD -MT sdk/storage/azure-storage-common/CMakeFiles/azure-storage-common.dir/src/xml_wrapper.cpp.o -MF sdk/storage/azure-storage-common/CMakeFiles/azure-storage-co
mmon.dir/src/xml_wrapper.cpp.o.d -o sdk/storage/azure-storage-common/CMakeFiles/azure-storage-common.dir/src/xml_wrapper.cpp.o -c /home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/azure-sdk-cpp-src/sdk/storage/azure-storage-common/src/xml_wrapper.cpp
/home/szaszm/nifi-minifi-cpp-2/build-clang-ninja/thirdparty/azure-sdk-cpp-src/sdk/storage/azure-storage-common/src/xml_wrapper.cpp:22:10: fatal error: 'libxml/xmlreader.h' file not found
#include <libxml/xmlreader.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
Repeated invocation of the build tool works around the issue if multiple threads are used. The headers are not yet downloaded with ExternalProject by the time we're trying to build the azure libs, but they might be finished on another thread after the error.
CMake add_dependencies should be added on the targets that depend on these headers, or the dependencies should be converted to FetchContent, which does download during the cmake configure phase, not during build.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)