[ 
https://issues.apache.org/jira/browse/KUDU-3376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17555377#comment-17555377
 ] 

Alexey Serbin edited comment on KUDU-3376 at 6/17/22 4:42 AM:
--------------------------------------------------------------

That error is what you'd expect from the script that builds bitshuffle in 
Kudu's thirdparty.  However, it's not supposed to break the build -- the script 
simply checks whether the compiler supports AVX2.  You can get more details 
from [this 
commit|https://github.com/apache/kudu/commit/e1593f0cf85eeb8ea6e4cb75d610dbff67b89002].

What's the actual error that makes the build fail?

NOTE: the instructions to build Kudu from source can be found at [this 
page|https://kudu.apache.org/docs/installation.html#build_from_source]


was (Author: aserbin):
That error is what you'd expected from the script that builds build-shuffle in 
Kudu's thirdparty.  However, it's not supposed to break the build -- the script 
simply checks whether the compiler supports AVX2.  You can get more details 
from [this 
commit|https://github.com/apache/kudu/commit/e1593f0cf85eeb8ea6e4cb75d610dbff67b89002].

What's the actual error that makes the build fail?

NOTE: the instructions to build Kudu from source can be found at [this 
page|https://kudu.apache.org/docs/installation.html#build_from_source]

> build error on arm64:unrecognized command line option '-mavx2'
> --------------------------------------------------------------
>
>                 Key: KUDU-3376
>                 URL: https://issues.apache.org/jira/browse/KUDU-3376
>             Project: Kudu
>          Issue Type: Bug
>    Affects Versions: 1.16.0
>            Reporter: pizi
>            Priority: Major
>
> An error occurred when I was compiling in arm64:
>  gcc: error: unrecognized command line option '-mavx2'
> Compiler does not support AVX2
> {quote}4 errors found in build log:
>      17082    + pushd 
> /home/stage/root/spack-stage-kudu-1.16.0-woicxh2pcjtwfqx4nsv7bgxftqxhriwm/spack-src/thirdparty/build/bitshuffle-0.3.5
>      17083    
> /home/stage/root/spack-stage-kudu-1.16.0-woicxh2pcjtwfqx4nsv7bgxftqxhriwm/spack-src/thirdparty/build/bitshuffle-0.3.5
>  /home/stage/root/spack-stage-kudu-1.16.0-woicxh2pcjtwfqx4nsv7
>               bgxftqxhriwm/spack-src/thirdparty
>      17084    + '[' -n 1 ']'
>      17085    ++ echo
>      17086    ++ /home/spack/lib/spack/env/gcc/gcc -mavx2 -dM -E -
>      17087    ++ awk '$2 == "__AVX2__" \{ print $3 }'
>   >> 17088    gcc: error: unrecognized command line option '-mavx2'
>      17089    + AVX2_SUPPORT=
>      17090    + '[' -n '' ']'
>      17091    + arches=default
>      17092    + to_link=
>      17093    + for arch in $arches
>      17094    + arch_flag=
>      ...
>      49293    -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
>      49294    -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - 
> Success
>      49295    -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
>      49296    -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
>      49297    -- Looking for krb5_get_init_creds_opt_set_out_ccache in krb5
>      49298    -- Looking for krb5_get_init_creds_opt_set_out_ccache in krb5 - 
> found
>   >> 49299    g++: error: unrecognized command line option '-mavx2'
>      49300    Compiler does not support AVX2
>      49301    -- Configuring done
>      49302    -- Generating done
>      49303    -- Build files have been written to: 
> /home/stage/root/spack-stage-kudu-1.16.0-woicxh2pcjtwfqx4nsv7bgxftqxhriwm/spack-build-woicxh2
>      49304    ==> kudu: Executing phase: 'build'
>      49305    ==> [2022-06-13-17:20:06.096374] 'make' '-j16'
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to