[ 
https://issues.apache.org/jira/browse/MINIFICPP-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marton Szasz updated MINIFICPP-1674:
------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> 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
>            Assignee: Marton Szasz
>            Priority: Minor
>             Fix For: 0.11.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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.20.1#820001)

Reply via email to