You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2020/03/04 19:06:00 UTC

[jira] [Created] (ARROW-8003) [C++] -DBZip2_SOURCE=BUNDLED fails when building with clang

Wes McKinney created ARROW-8003:
-----------------------------------

             Summary: [C++] -DBZip2_SOURCE=BUNDLED fails when building with clang
                 Key: ARROW-8003
                 URL: https://issues.apache.org/jira/browse/ARROW-8003
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Wes McKinney
             Fix For: 1.0.0


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

{code}
$ 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
{code}

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

it seems that CMAKE_C_COMPILER is not being propagated to bzip2_ep, so the CMAKE_C_FLAGS that are assembled for Clang do not work properly

It seems that CMAKE_C_COMPILER (which is {{clang-7}} here)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)