XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.0
    • 0.11.0
    • None

    Description

      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.

      Attachments

        Activity

          People

            szaszm Marton Szasz
            szaszm Marton Szasz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h