JanP:

: I quickly tried and failed to compile to armv7 … sorry, it’s not trivial, even though I’d not be suprised if all it takes will be a few lines of configuration … – If you find out pls let us know


As I saw in the ticket It is similar to the old TF issue at:

  

      github.com/tensorflow/tensorflow
  

  
    
  
	  
  

  
    
      Unrecognized command line -msse3 while cross-compiling tensorflow to aarch64 targets 1
    

    
      
        opened 
        
          
        
        Aug 27, 2020
      
      


      
        
          
          coolchaits
        
      
    

    
        type:build/install
        subtype: ubuntu/linux
        TF 2.3
    
  


  
    <em>Please make sure that this is a build/installation issue. As per our [GitHub… Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em>

**System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 
   -> Linux Ubuntu 18.04 (docker image)
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
   -> Build setup is x86_64 machine
- TensorFlow installed from (source or binary):
   -> Source (compiling from source)
- TensorFlow version:
   -> v2.3.0
- Python version:
   -> python3.6
- Installed using virtualenv? pip? conda?:
   -> installed using pip3
- Bazel version (if compiling from source):
   -> bazel 3.1.0 (recommended for v2.3.0 inside documents)
- GCC/Compiler version (if compiling from source):
   -> Cross-compiler: aarch64-linux-gnu-gcc-7 (installed by nvidia sdk manager)
- CUDA/cuDNN version:
   -> Cuda: 10.2, cuDNN 7
- GPU model and memory:
   -> NA

**Describe the problem**
aarch64-linux-gnu-gcc-7: error: unrecognized command line option '-msse3'

**Provide the exact sequence of commands / steps that you executed before running into the problem**

This is the build command that I am using:
bazel build --cpu=aarch64 --config=opt --config=noaws //tensorflow:libtensorflow_cc.so --sandbox_debug 

Performed ./configure before running the above build command.
This is the output of .tf_configure_bazel.rc file:
build --action_env PYTHON_BIN_PATH="/usr/bin/python3.6"
build --action_env PYTHON_LIB_PATH="/usr/lib/python3/dist-packages"
build --python_path="/usr/bin/python3.6"
build --config=xla
build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-10.2"
build --action_env TF_CUDA_COMPUTE_CAPABILITIES="6.1"
build --action_env LD_LIBRARY_PATH="/usr/local/cuda-10.2/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64"
build --action_env GCC_HOST_COMPILER_PATH="/usr/bin/aarch64-linux-gnu-gcc-7"
build --config=cuda
build:opt --copt=-march=armv8-a
build:opt --define with_default_optimizations=true
test --flaky_test_attempts=3
test --test_size_filters=small,medium
test --test_env=LD_LIBRARY_PATH
test:v1 --test_tag_filters=-benchmark-test,-no_oss,-no_gpu,-oss_serial
test:v1 --build_tag_filters=-benchmark-test,-no_oss,-no_gpu
test:v2 --test_tag_filters=-benchmark-test,-no_oss,-no_gpu,-oss_serial,-v1only
test:v2 --build_tag_filters=-benchmark-test,-no_oss,-no_gpu,-v1only
build --action_env TF_CONFIGURE_IOS="0"

**Any other info / logs**
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.