Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16993

[C++] cmake: `cannot create imported target "Boost::headers"`

    XMLWordPrintableJSON

Details

    Description

      Hi,

      I just tried to build arrow/cpp using cmake, and on the master branch I get the error

       

      arrow-build $ cmake -DARROW_PARQUET=ON -DCMAKE_BUILD_TYPE=DEBUG ../arrow/cpp/
      ...
      CMake Error at cmake_modules/ThirdpartyToolchain.cmake:873 (add_library):
        add_library cannot create imported target "Boost::headers" because another
        target with the same name already exists.
      Call Stack (most recent call first):
        cmake_modules/ThirdpartyToolchain.cmake:139 (build_boost)
        cmake_modules/ThirdpartyToolchain.cmake:236 (build_dependency)
        cmake_modules/ThirdpartyToolchain.cmake:1014 (resolve_dependency)
        CMakeLists.txt:552 (include) 
      ...
      -- Configuring incomplete, errors occurred!
      See also "/app/arrow-build/CMakeFiles/CMakeOutput.log".
      See also "/app/arrow-build/CMakeFiles/CMakeError.log".

      and CMake exits with status 1.  The project configures successfully on the apache-arrow-8.0.0 tag.  Running a git bisect, the defect was introduced in the commit:

      d653b71d79fc381c43f59d3095cc1c9fb0c1cf7c
      ARROW-16168: [C++][CMake] Use target to add include paths

      I have attached CMakeOutput.log and CMakeError.log.

      Thanks!

      Attachments

        1. CMakeOutput.log
          49 kB
          Jefferson Carpenter
        2. CMakeError.log
          4 kB
          Jefferson Carpenter
        3. cmake_stdout.txt
          28 kB
          Jefferson Carpenter

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              jcarpenter2 Jefferson Carpenter
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 2h 50m
                  2h 50m