pizi created KUDU-3376:
--------------------------
Summary: 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
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)