tensorflow: [AArch64] error: inlining failed in call to 'always_inline' 'uint8x16_t vaeseq_u8(uint8x16_t, uint8x16_t)': target specific option mismatch

I did a build today and got hit by same issue as in #41409 one. I use manylinux2014 image for builds.

top commit:

commit 4e8bba06da6c3212c1d4e19ef86c42d905d47c7a (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: TensorFlower Gardener <gardener@tensorflow.org>
Date:   Mon Aug 30 03:37:48 2021 -0700

    Merge pull request #50961 from nouiz:upstream-cudaMallocAsync-no_stats_error
    
    PiperOrigin-RevId: 393736407
    Change-Id: I31f5ba2b885683cc587a30cdce70e0f20ffefef9

Error:

      /opt/rh/devtoolset-10/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -MD -MF bazel-out/aarch64-o
pt/bin/external/com_google_absl/absl/random/internal/_objs/randen_hwaes_impl/randen_hwaes.pic.d '-frandom-seed=bazel-out/aarch64-opt/bin/external/com_google_absl/absl/random/internal/_objs/randen_hwaes_impl/randen_hwaes.pic.o' -fPIC -iquoteexternal/com_google_absl -iquotebazel-
out/aarch64-opt/bin/external/com_google_absl -w -DAUTOLOAD_DYNAMIC_KERNELS '-std=c++14' -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwr
ite-strings -DNOMINMAX -Wno-pass-failed -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/random/internal/randen_hwaes.cc -o bazel-out/aarch64-opt/bin/external
/com_google_absl/absl/random/internal/_objs/randen_hwaes_impl/randen_hwaes.pic.o)                                                                                                                                                                                                     
    Execution platform: @local_execution_config_platform//:platform                                                                        
    In file included from external/com_google_absl/absl/random/internal/randen_hwaes.cc:229:
    /opt/rh/devtoolset-10/root/usr/lib/gcc/aarch64-redhat-linux/10/include/arm_neon.h: In function 'Vector128 {anonymous}::AesRound(const Vector128&, const Vector128&)':
    /opt/rh/devtoolset-10/root/usr/lib/gcc/aarch64-redhat-linux/10/include/arm_neon.h:12332:1: error: inlining failed in call to 'always_inline' 'uint8x16_t vaesmcq_u8(uint8x16_t)': target specific option mismatch
    12332 | vaesmcq_u8 (uint8x16_t data)                                                                                                                                                                                                                                              
          | ^~~~~~~~~~                                                                                                                                                                                                                                                                
    external/com_google_absl/absl/random/internal/randen_hwaes.cc:255:20: note: called from here                                                                                                                                                                                      
      255 |   return vaesmcq_u8(vaeseq_u8(state, uint8x16_t{})) ^ round_key;                                                                                                                                                                                                          
          |          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                       
    In file included from external/com_google_absl/absl/random/internal/randen_hwaes.cc:229:                                                                                                                                                                                          
    /opt/rh/devtoolset-10/root/usr/lib/gcc/aarch64-redhat-linux/10/include/arm_neon.h:12318:1: error: inlining failed in call to 'always_inline' 'uint8x16_t vaeseq_u8(uint8x16_t, uint8x16_t)': target specific option mismatch                                                     
    12318 | vaeseq_u8 (uint8x16_t data, uint8x16_t key)                                                                                                                                                                                                                               
          | ^~~~~~~~~                                                                                                                                                                                                                                                                 
    external/com_google_absl/absl/random/internal/randen_hwaes.cc:255:20: note: called from here                                                                                                                                                                                      
      255 |   return vaesmcq_u8(vaeseq_u8(state, uint8x16_t{})) ^ round_key;                                                                                                                                                                                                          
          |          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                       
    At global scope:                                                                                                                                                                                                                                                                  
    cc1plus: note: unrecognized command-line option '-Wno-pass-failed' may have been intended to silence earlier diagnostics                                                                                                                                                          
    Target //tensorflow/tools/pip_package:build_pip_package failed to build                                                                                                                                                                                                           
    INFO: Elapsed time: 5671.673s, Critical Path: 500.29s                                                                                                                                                                                                                             
    INFO: 9206 processes: 996 internal, 8210 local.                                                                                                                                                                                                                                   

_Originally posted by @hrw in https://github.com/tensorflow/tensorflow/issues/41409#issuecomment-908364569_

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 19 (17 by maintainers)

Most upvoted comments

Thanks for the package @hrw