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

[C++] -DBZip2_SOURCE=BUNDLED fails when building with clang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • C++

    Description

      I found this while working on something else (ARROW-8000)

      $ ninja bzip2_ep
      [2/8] Performing download step (download, verify and extract) for 'bzip2_ep'
      -- bzip2_ep download command succeeded.  See also /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-download-*.log
      [6/8] Performing build step for 'bzip2_ep'
      FAILED: bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build bzip2_ep-install/lib/libbz2.a 
      cd /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep && /home/wesm/cpp-toolchain/bin/cmake -P /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build-DEBUG.cmake && /home/wesm/cpp-toolchain/bin/cmake -E touch /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build
      CMake Error at /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build-DEBUG.cmake:49 (message):
        Command failed: 2
      
         '/home/wesm/cpp-toolchain/bin/make' '-j16' 'CFLAGS= -Qunused-arguments -fuse-ld=gold -ggdb -O0 -g -fPIC'
      
        See also
      
          /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build-*.log
      
      
      ninja: build stopped: subcommand failed.
      (arrow-3.7) 13:03 ~/code/arrow/cpp/build-gcc48  (gcc48-fixes)$ cat /home/wesm/code/arrow/cpp/build-gcc48/bzip2_ep-prefix/src/bzip2_ep-stamp/bzip2_ep-build-err.log 
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:120: huffman.o] Error 1
      make: *** Waiting for unfinished jobs....
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:124: randtable.o] Error 1
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:128: decompress.o] Error 1
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:118: blocksort.o] Error 1
      make: *** [Makefile:132: bzip2.o] Error 1
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:134: bzip2recover.o] Error 1
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:122: crctable.o] Error 1
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      gcc: error: unrecognized command line option ‘-Qunused-arguments’; did you mean ‘-Wunused-parameter’?
      make: *** [Makefile:126: compress.o] Error 1
      make: *** [Makefile:130: bzlib.o] Error 1
      

      full output here https://gist.github.com/wesm/0fb18e0be7a7c6b7d383d891fd8b6c6e

      it seems that CMAKE_C_COMPILER (which is clang-7 here) is not being propagated to bzip2_ep, so the CMAKE_C_FLAGS that are assembled for Clang do not work properly

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                  0.5h