Repository: tensorflow
Issue: Error building speech_commands with the ARM platform
Labels: type:build/install,subtype: ubuntu/linux,2.17

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

2.17.0

### Custom code

No

### OS platform and distribution

Ubuntu 24.04

### Mobile device

Armv7

### Python version

3.12.3

### Bazel version

6.5.0

### GCC/compiler version

_No response_

### CUDA/cuDNN version

none

### GPU model and memory

none

### Current behavior?

The following error occurs when building
`external/gemmlowp/meta/streams_arm_32.h:1535:3: error: 'asm' operand has impossible constraints`



### Standalone code to reproduce the issue

```shell
bazel build --config=elinux_armhf //tensorflow/examples/speech_commands:recognize_commands
```


### Relevant log output

```shell
~/tensorflow_src$ bazel build --config=elinux_armhf //tensorflow/examples/speech_commands:recognize_commands
INFO: Reading 'startup' options from /home/linus/tensorflow_src/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=115
INFO: Reading rc options for 'build' from /home/linus/tensorflow_src/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /home/linus/tensorflow_src/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --features=-force_no_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Found applicable config definition build:short_logs in file /home/linus/tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /home/linus/tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:elinux_armhf in file /home/linus/tensorflow_src/.bazelrc: --config=elinux --cpu=armhf --copt -mfp16-format=ieee
INFO: Found applicable config definition build:elinux in file /home/linus/tensorflow_src/.bazelrc: --crosstool_top=@local_config_embedded_arm//:toolchain --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
INFO: Found applicable config definition build:linux in file /home/linus/tensorflow_src/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /home/linus/tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
INFO: Analyzed target //tensorflow/examples/speech_commands:recognize_commands (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/linus/tensorflow_src/tensorflow/core/kernels/BUILD:6327:11: Compiling tensorflow/core/kernels/meta_support.cc failed: (Exit 1): arm-none-linux-gnueabihf-gcc failed: error executing command (from target //tensorflow/core/kernels:meta_support) /home/linus/.cache/bazel/_bazel_linus/dfed2ce84bdb0ad21d45a92561825dca/external/armhf_linux_toolchain/bin/arm-none-linux-gnueabihf-gcc -fstack-protector -g0 -O2 -DNDEBUG -ffunction-sections ... (remaining 135 arguments skipped)
In file included from external/gemmlowp/meta/streams.h:307,
                 from external/gemmlowp/meta/quantized_mul_kernels.h:22,
                 from ./tensorflow/core/kernels/meta_support.h:21,
                 from tensorflow/core/kernels/meta_support.cc:18:
external/gemmlowp/meta/streams_arm_32.h: In static member function 'static void gemmlowp::meta::GemmExecutorPackRHS::ExecuteDispatch3D(const P&) [with P = gemmlowp::meta::GemmParams<unsigned char, int, gemmlowp::meta::RowMajorWithSum, gemmlowp::meta::RowMajorWithSum, gemmlowp::meta::QuantizedStaticPreprocessedAsInt32, gemmlowp::meta::RowMajor>; int m = 2; int n = 4; int k = 8; int m_leftovers = 0; int n_leftovers = 0; int k_leftovers = 0]':
external/gemmlowp/meta/streams_arm_32.h:1535:3: error: 'asm' operand has impossible constraints
 1535 |   asm volatile(
      |   ^~~
Target //tensorflow/examples/speech_commands:recognize_commands failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 107.917s, Critical Path: 91.70s
INFO: 13 processes: 7 internal, 6 local.
FAILED: Build did NOT complete successfully
```