lhelontra / tensorflow-on-arm

TensorFlow for Arm
MIT License
1.05k stars 274 forks source link

rk3399 build tensorflow-cpu-1.10 error #110

Open iE-zhi opened 3 years ago

iE-zhi commented 3 years ago

To quote a mistake when I user bazel-0.15.0 build tf0.10 on ubuntu16.04 python3.6.8。

My command is “bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package”。

gcc: error: unrecognized command line option '-mfpu=neon'

I don't know how to deal with it. Please help me, thanks!

iE-zhi commented 3 years ago

more details are:

ERROR: /root/tf/tensorflow/tensorflow/contrib/lite/kernels/internal/BUILD:426:1: C++ compilation of rule '//tensorflow/contrib/lite/kernels/internal:tensor_utils' failed (Exit 1): gcc failed: error executing command 
  (cd /root/.cache/bazel/_bazel_root/8e11c3f2ede966708196f520db8b1e69/execroot/org_tensorflow && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/jdk1.8.0_152/bin:/usr/local/jdk1.8.0_152/jre/bin:/usr/local/jdk1.8.0_152/bin:/usr/local/jdk1.8.0_152/jre/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python3 \
    PYTHON_LIB_PATH=/usr/local/python36/lib/python3.6/site-packages \
    TF_DOWNLOAD_CLANG=0 \
    TF_NEED_CUDA=0 \
    TF_NEED_OPENCL_SYCL=0 \
  /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -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++0x' -MD -MF bazel-out/arm-opt/bin/tensorflow/contrib/lite/kernels/internal/_objs/tensor_utils/tensorflow/contrib/lite/kernels/internal/tensor_utils.pic.d '-frandom-seed=bazel-out/arm-opt/bin/tensorflow/contrib/lite/kernels/internal/_objs/tensor_utils/tensorflow/contrib/lite/kernels/internal/tensor_utils.pic.o' -fPIC -iquote . -iquote bazel-out/arm-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/arm-opt/genfiles/external/bazel_tools -iquote external/arm_neon_2_x86_sse -iquote bazel-out/arm-opt/genfiles/external/arm_neon_2_x86_sse -iquote external/gemmlowp -iquote bazel-out/arm-opt/genfiles/external/gemmlowp '-march=native' '-std=c++11' -O3 '-mfpu=neon' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c tensorflow/contrib/lite/kernels/internal/tensor_utils.cc -o bazel-out/arm-opt/bin/tensorflow/contrib/lite/kernels/internal/_objs/tensor_utils/tensorflow/contrib/lite/kernels/internal/tensor_utils.pic.o)
gcc: error: unrecognized command line option '-mfpu=neon'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 554.869s, Critical Path: 90.72s
INFO: 565 processes: 565 local.
FAILED: Build did NOT complete successfully