Open RobertBerger opened 3 years ago
I think this problem is caused by undefined references:
cat log.do_compile | grep "undefined reference"
neon_tensor_utils.cc:(.text._ZN3ruy9RunKernelINS_6KernelILNS_4PathE16EaaiiEEE3RunENS_6TuningERKNS_8SidePairINS_5PEMatEEEPKvRKNS6_IiEESF_PNS_4EMatE[_ZN3ruy9RunKernelINS_6KernelILNS_4PathE16EaaiiEEE3RunENS_6TuningERKNS_8SidePairINS_5PEMatEEEPKvRKNS6_IiEESF_PNS_4EMatE]+0x152): undefined reference to `ruy::Kernel8bitNeonOutOfOrder(ruy::KernelParams8bit<4, 2> const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy9RunKernelINS_6KernelILNS_4PathE16EaaiiEEE3RunENS_6TuningERKNS_8SidePairINS_5PEMatEEEPKvRKNS6_IiEESF_PNS_4EMatE[_ZN3ruy9RunKernelINS_6KernelILNS_4PathE16EaaiiEEE3RunENS_6TuningERKNS_8SidePairINS_5PEMatEEEPKvRKNS6_IiEESF_PNS_4EMatE]+0x19e): undefined reference to `ruy::Kernel8bitNeonOutOfOrder1Col(ruy::KernelParams8bit<4, 2> const&)'
neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0xe8): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder2Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x184): undefined reference to `ruy::Pack8bitRowMajorForNeon(unsigned char const*, int, int, int, int, int, int, signed char*, int, int, int*, int, int)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x200): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder2Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x296): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder2Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi2EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x30e): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder2Cols(ruy::PackParams8bit const&)'
neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x114): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder4Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x1b0): undefined reference to `ruy::Pack8bitRowMajorForNeon(unsigned char const*, int, int, int, int, int, int, signed char*, int, int, int*, int, int)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x240): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder4Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x2fe): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder4Cols(ruy::PackParams8bit const&)'
/workdir/build/container-arm-v7-tensorflow-master/tmp/work/armv7at2hf-vfp-resy-linux-gnueabi/tensorflow/2.4.0-r0/bazel/output_base/external/yocto_compiler/recipe-sysroot-native/usr/bin/arm-resy-linux-gnueabi/../../libexec/arm-resy-linux-gnueabi/gcc/arm-resy-linux-gnueabi/10.2.0/ld: neon_tensor_utils.cc:(.text._ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii[_ZN3ruy7RunPackILNS_4PathE16ENS_17FixedKernelLayoutILNS_5OrderE0ELi16ELi4EEEaaEEvNS_6TuningERKNS_4EMatEPNS_5PEMatEii]+0x384): undefined reference to `ruy::Pack8bitColMajorForNeonOutOfOrder4Cols(ruy::PackParams8bit const&)'
This seems similar: https://github.com/tensorflow/tensorflow/issues/42471
tensorflow built:
ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[md5/uuid]=41b6bb33e0bef6b0ed2b57be3dbb6023, not stripped
native arm32 built:
ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=c9bb39f30d4c3ac80d74c461452c9147b0c15ffc, for GNU/Linux 3.2.0, stripped
aarch64 seems to build
After building a couple of hours I get this error on arm32.
It builds on x86-64.
Is there any easy way to skip this test case?