Building TensorFlow Lite Flex Delegate for ARMV7l (RPi3)

I have been trying with little success to crosscompile the flex delegate for a raspberry pi 3. I’m able to get successful builds of tflite using:

bazel build --config=elinux_armhf -c opt //tensorflow/lite:libtensorflowlite.so

But trying any of the following, or permutations thereof:

bazel build --config=elinux_armhf -c opt tensorflow/lite/delegates/flex:tensorflowlite_flex
bazel build --config=elinux_armhf -c opt //tensorflow/lite/delegates/flex:tensorflowlite_flex
bazel build --config=elinux_armhf --config=monolithic -c opt tensorflow/lite/delegates/flex:tensorflowlite_flex

I get various errors, between ‘error: ‘asm’ operand has impossible constraints’ (during gemmlowp), 'error: conflicting return type specific for ‘virtual UBool icu_70:RuleBasedBreakIterator::operator==’, etc.

I’ve tried every version from r2.11 to r2.17. I’m building on Ubuntu 20.04, and have installed the bazel versions that it requests when doing ./configure. I’ve tried clang and non-clang build. I also tried to do this on a Mac, but it seems it cannot build on Apple SIlicon.

Any help is very appreciated!

Have you got any solution ?