[Buildroot] Error while building tensorflow-lite package

James Hilliard james.hilliard1 at gmail.com
Mon Sep 18 16:38:33 UTC 2023


On Mon, Sep 18, 2023 at 10:22 AM James Hilliard
<james.hilliard1 at gmail.com> wrote:
>
> On Mon, Sep 18, 2023 at 10:04 AM Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> >
> > Hello Stefan, James,
> >
> > Have you tried building the benchmark_model from tensorflow-lite? I am getting above errors during the build...
> >
> > On Fri, 15 Sept 2023 at 18:49, Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> >>
> >> Hello James,
> >>
> >> Do you have any updates on below issue?
> >> This would be helpful
> >>
> >> Thanks in advance
> >>
> >> On Wed, Sep 13, 2023, 09:07 Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> >>>
> >>> Hello James,
> >>>
> >>> I am trying to build the "benchmark_model" in the tensorflow-lite package. The benchmarking application performs a simple TensorFlow Lite model inference and prints benchmarking information.
> >>>
> >>> In the tensorflow-lite.mk  I added new section (similar to label_image example)
> >>> ifeq ($(BR2_PACKAGE_TENSORFLOW_LITE_BUILD_BENCHMARK_MODEL),y)
> >>> define TENSORFLOW_LITE_BENCHMARK_BUILD_CMDS
> >>>         $(TARGET_MAKE_ENV) $(BR2_CMAKE) --build $(TENSORFLOW_LITE_BUILDDIR) -t benchmark_model
> >>> endef
> >>> TENSORFLOW_LITE_POST_BUILD_HOOKS += TENSORFLOW_LITE_BENCHMARK_BUILD_CMDS
> >>>
> >>> define TENSORFLOW_LITE_INSTALL_TARGET_BENCHMARK_MODEL
> >>>          $(INSTALL) -D -m0755 $(@D)/tensorflow/lite/buildroot-build/tools/benchmark/benchmark_model $(TARGET_DIR)/usr/bin/benchmark_model
> >>> endef
> >>> TENSORFLOW_LITE_POST_INSTALL_TARGET_HOOKS += TENSORFLOW_LITE_INSTALL_TARGET_BENCHMARK_MODEL
> >>> endif
> >>>
> >>> But while building this is giving error:
> >>>
> >>> [ 98%] Building CXX object tools/benchmark/CMakeFiles/benchmark_model.dir/__/delegates/xnnpack_delegate_provider.cc.o
> >>> 2023-09-13T06:49:10 [ 98%] Building CXX object tools/benchmark/CMakeFiles/benchmark_model.dir/__/delegates/external_delegate_provider.cc.o
> >>> 2023-09-13T06:49:11 [100%] Linking CXX executable benchmark_model
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: CMakeFiles/benchmark_model.dir/benchmark_tflite_model.cc.o: in function `absl::lts_20211102::strings_internal::Splitter<absl::lts_20211102::ByChar, absl::lts_20211102::AllowEmpty, std::basic_string_view<char, std::char_traits<char> > >::ConvertToContainer<std::vector<std::basic_string_view<char, std::char_traits<char> >, std::allocator<std::basic_string_view<char, std::char_traits<char> > > >, std::basic_string_view<char, std::char_traits<char> >, false>::operator()(absl::lts_20211102::strings_internal::Splitter<absl::lts_20211102::ByChar, absl::lts_20211102::AllowEmpty, std::basic_string_view<char, std::char_traits<char> > > const&) const [clone .isra.0]':
> >>> 2023-09-13T06:49:11 benchmark_tflite_model.cc:(.text+0x204): undefined reference to `absl::lts_20211102::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const'
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: benchmark_tflite_model.cc:(.text+0x284): undefined reference to `absl::lts_20211102::ByChar::Find(std::basic_string_view<char, std::char_traits<char> >, unsigned long) const'
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: CMakeFiles/benchmark_model.dir/benchmark_tflite_model.cc.o: in function `tflite::benchmark::SplitInputLayerNameAndValueFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)':
> >>> 2023-09-13T06:49:11 benchmark_tflite_model.cc:(.text+0xcf0): undefined reference to `absl::lts_20211102::StrReplaceAll[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >, std::initializer_list<std::pair<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > > >)'
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: benchmark_tflite_model.cc:(.text+0xdd4): undefined reference to `absl::lts_20211102::StrReplaceAll[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >, std::initializer_list<std::pair<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > > >)'
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: CMakeFiles/benchmark_model.dir/benchmark_tflite_model.cc.o: in function `tflite::benchmark::BenchmarkTfLiteModel::ValidateParams()':
> >>> 2023-09-13T06:49:11 benchmark_tflite_model.cc:(.text+0x8388): undefined reference to `absl::lts_20211102::numbers_internal::safe_strto32_base(std::basic_string_view<char, std::char_traits<char> >, int*, int)'
> >>> 2023-09-13T06:49:11 /home/.../per-package/tensorflow-lite/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: benchmark_tflite_model.cc:(.text+0x83a4): undefined reference to `absl::lts_20211102::numbers_internal::safe_strto32_base(std::basic_string_view<char, std::char_traits<char> >, int*, int)'
> >>> 2023-09-13T06:49:11 collect2: error: ld returned 1 exit status
> >>> 2023-09-13T06:49:11 make[6]: *** [tools/benchmark/CMakeFiles/benchmark_model.dir/build.make:476: tools/benchmark/benchmark_model] Error 1
> >>> 2023-09-13T06:49:11 make[5]: *** [CMakeFiles/Makefile2:370: tools/benchmark/CMakeFiles/benchmark_model.dir/all] Error 2
> >>> 2023-09-13T06:49:11 make[4]: *** [CMakeFiles/Makefile2:377: tools/benchmark/CMakeFiles/benchmark_model.dir/rule] Error 2
> >>> 2023-09-13T06:49:11 make[3]: *** [Makefile:268: benchmark_model] Error 2
> >>>
> >>> Do you know what the issue here?
>
> You probably need to patch the tensorflow source code similar to this
> as we don't
> really support multiple cmake build invocations for a single package:
> https://github.com/tensorflow/tensorflow/pull/60021
>
> This line is preventing it from being built properly as part of the
> normal tensorflow-lite
> build:
> https://github.com/tensorflow/tensorflow/blob/v2.11.0/tensorflow/lite/tools/benchmark/CMakeLists.txt#L84

Try applying these changes and enabling the new cmake config flag:
https://github.com/tensorflow/tensorflow/pull/61897

>
> >>>
> >>> Thank you,
> >>> Sourabh
> >>>
> >>> On Tue, 5 Sept 2023 at 18:28, Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> >>>>
> >>>> Hello James,
> >>>>
> >>>> Thanks for the update.
> >>>>
> >>>> I could build the tensorflow-lite package.
> >>>>
> >>>> Best Regards,
> >>>> Sourabh
> >>>>
> >>>>
> >>>>
> >>>> On Tue, 5 Sept 2023 at 08:07, James Hilliard <james.hilliard1 at gmail.com> wrote:
> >>>>>
> >>>>> On Mon, Sep 4, 2023 at 11:13 AM Sourabh Hegde <hrsourabh011 at gmail.com> wrote:
> >>>>> >
> >>>>> > Hello All,
> >>>>> >
> >>>>> > I am trying to add tensorflow-lite to Buildroot package and I found a git (quite old) https://github.com/Exein-io/buildroot-tensorflow-lite/tree/master that I wanted to test.
> >>>>>
> >>>>> Try my v6 patch series:
> >>>>> https://patchwork.ozlabs.org/project/buildroot/list/?series=346546&submitter=&state=*&q=&archive=both&delegate=
> >>>>>
> >>>>> > But while building it I am getting below error:
> >>>>> >
> >>>>> > file='/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-download/pthreadpool-prefix/src/545ebe9f225aec6dca49109516fac02e973a3de2.zip'
> >>>>> > -- Downloading... done
> >>>>> > -- extracting...
> >>>>> >      src='/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-download/pthreadpool-prefix/src/545ebe9f225aec6dca49109516fac02e973a3de2.zip'
> >>>>> >      dst='/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-source'
> >>>>> > -- extracting... [tar xfz]
> >>>>> > -- extracting... [analysis]
> >>>>> > -- extracting... [rename]
> >>>>> > -- extracting... [clean up]
> >>>>> > -- extracting... done
> >>>>> > [ 33%] No patch step for 'pthreadpool'
> >>>>> > [ 44%] No update step for 'pthreadpool'
> >>>>> > [ 55%] No configure step for 'pthreadpool'
> >>>>> > [ 66%] No build step for 'pthreadpool'
> >>>>> > [ 77%] No install step for 'pthreadpool'
> >>>>> > [ 88%] No test step for 'pthreadpool'
> >>>>> > [100%] Completed 'pthreadpool'
> >>>>> > make[4]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-download'
> >>>>> > [100%] Built target pthreadpool
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-download'
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/pthreadpool-download'
> >>>>> > -- Configuring incomplete, errors occurred!
> >>>>> > See also "/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeOutput.log".
> >>>>> > See also "/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeError.log".
> >>>>> > make[1]: *** [package/pkg-generic.mk:283: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/.stamp_configured] Error 1
> >>>>> > make: *** [Makefile:23: _all] Error 2
> >>>>> >
> >>>>> > The CMakeError.log build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CM
> >>>>> > akeFiles shows
> >>>>> >
> >>>>> > Performing C++ SOURCE FILE Test COMPILER_SUPPORT_Wshorten64to32 failed with the following output:
> >>>>> > Change Dir: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp
> >>>>> >
> >>>>> > Run Build Command(s):/usr/bin/make cmTC_76002/fast && make[2]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > /usr/bin/make -f CMakeFiles/cmTC_76002.dir/build.make CMakeFiles/cmTC_76002.dir/build
> >>>>> > make[3]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > Building CXX object CMakeFiles/cmTC_76002.dir/src.cxx.o
> >>>>> > /home/test/tmp/.../per-package/tensorflow-lite/host/bin/aarch64-linux-g++ --sysroot=/home/test/tmp/.../per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -g0 -D_FORTIFY_SOURCE=2 -ldl -latomic -funsafe-math-optimizations  -march=armv8-a -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -DCOMPILER_SUPPORT_Wshorten64to32 -Werror  -DNDEBUG -fPIE   -Wshorten-64-to-32 -o CMakeFiles/cmTC_76002.dir/src.cxx.o -c /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp/src.cxx
> >>>>> > aarch64-linux-g++.br_real: error: unrecognized command-line option '-Wshorten-64-to-32'
> >>>>> > make[3]: *** [CMakeFiles/cmTC_76002.dir/build.make:66: CMakeFiles/cmTC_76002.dir/src.cxx.o] Error 1
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > make[2]: *** [Makefile:121: cmTC_76002/fast] Error 2
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> >
> >>>>> >
> >>>>> > Source file was:
> >>>>> > int main() { return 0; }
> >>>>> > Performing C++ SOURCE FILE Test COMPILER_SUPPORT_Wcpp11extensions failed with the following output:
> >>>>> > Change Dir: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp
> >>>>> >
> >>>>> > Run Build Command(s):/usr/bin/make cmTC_0b14f/fast && make[2]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > /usr/bin/make -f CMakeFiles/cmTC_0b14f.dir/build.make CMakeFiles/cmTC_0b14f.dir/build
> >>>>> > make[3]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > Building CXX object CMakeFiles/cmTC_0b14f.dir/src.cxx.o
> >>>>> > /home/test/tmp/.../per-package/tensorflow-lite/host/bin/aarch64-linux-g++ --sysroot=/home/test/tmp/.../per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -g0 -D_FORTIFY_SOURCE=2 -ldl -latomic -funsafe-math-optimizations  -march=armv8-a -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -DCOMPILER_SUPPORT_Wcpp11extensions -Werror  -DNDEBUG -fPIE   -Wc++11-extensions -o CMakeFiles/cmTC_0b14f.dir/src.cxx.o -c /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp/src.cxx
> >>>>> > aarch64-linux-g++.br_real: error: unrecognized command-line option '-Wc++11-extensions'; did you mean '-fms-extensions'?
> >>>>> > make[3]: *** [CMakeFiles/cmTC_0b14f.dir/build.make:66: CMakeFiles/cmTC_0b14f.dir/src.cxx.o] Error 1
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > make[2]: *** [Makefile:121: cmTC_0b14f/fast] Error 2
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> >
> >>>>> >
> >>>>> > Source file was:
> >>>>> > int main() { return 0; }
> >>>>> > Performing C++ SOURCE FILE Test COMPILER_SUPPORT_wd981 failed with the following output:
> >>>>> > Change Dir: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp
> >>>>> >
> >>>>> > Run Build Command(s):/usr/bin/make cmTC_4c191/fast && make[2]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > /usr/bin/make -f CMakeFiles/cmTC_4c191.dir/build.make CMakeFiles/cmTC_4c191.dir/build
> >>>>> > make[3]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > Building CXX object CMakeFiles/cmTC_4c191.dir/src.cxx.o
> >>>>> > /home/test/tmp/.../per-package/tensorflow-lite/host/bin/aarch64-linux-g++ --sysroot=/home/test/tmp/.../per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -g0 -D_FORTIFY_SOURCE=2 -ldl -latomic -funsafe-math-optimizations  -march=armv8-a -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -Wdouble-promotion -Wshadow -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -DCOMPILER_SUPPORT_wd981 -Werror  -DNDEBUG -fPIE   -wd981 -o CMakeFiles/cmTC_4c191.dir/src.cxx.o -c /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp/src.cxx
> >>>>> > aarch64-linux-g++.br_real: error: unrecognized command-line option '-wd981'
> >>>>> > make[3]: *** [CMakeFiles/cmTC_4c191.dir/build.make:66: CMakeFiles/cmTC_4c191.dir/src.cxx.o] Error 1
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > make[2]: *** [Makefile:121: cmTC_4c191/fast] Error 2
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> >
> >>>>> >
> >>>>> > Source file was:
> >>>>> > int main() { return 0; }
> >>>>> > Performing C++ SOURCE FILE Test COMPILER_SUPPORT_wd2304 failed with the following output:
> >>>>> > Change Dir: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp
> >>>>> >
> >>>>> > Run Build Command(s):/usr/bin/make cmTC_3d2da/fast && make[2]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > /usr/bin/make -f CMakeFiles/cmTC_3d2da.dir/build.make CMakeFiles/cmTC_3d2da.dir/build
> >>>>> > make[3]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > Building CXX object CMakeFiles/cmTC_3d2da.dir/src.cxx.o
> >>>>> > /home/test/tmp/.../per-package/tensorflow-lite/host/bin/aarch64-linux-g++ --sysroot=/home/test/tmp/.../per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -g0 -D_FORTIFY_SOURCE=2 -ldl -latomic -funsafe-math-optimizations  -march=armv8-a -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -Wdouble-promotion -Wshadow -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -DCOMPILER_SUPPORT_wd2304 -Werror  -DNDEBUG -fPIE   -wd2304 -o CMakeFiles/cmTC_3d2da.dir/src.cxx.o -c /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp/src.cxx
> >>>>> > aarch64-linux-g++.br_real: error: unrecognized command-line option '-wd2304'
> >>>>> > make[3]: *** [CMakeFiles/cmTC_3d2da.dir/build.make:66: CMakeFiles/cmTC_3d2da.dir/src.cxx.o] Error 1
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > make[2]: *** [Makefile:121: cmTC_3d2da/fast] Error 2
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> >
> >>>>> >
> >>>>> > Source file was:
> >>>>> > int main() { return 0; }
> >>>>> > Performing C++ SOURCE FILE Test COMPILER_SUPPORT_STRICTANSI failed with the following output:
> >>>>> > Change Dir: /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp
> >>>>> >
> >>>>> > Run Build Command(s):/usr/bin/make cmTC_b2340/fast && make[2]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > /usr/bin/make -f CMakeFiles/cmTC_b2340.dir/build.make CMakeFiles/cmTC_b2340.dir/build
> >>>>> > make[3]: Entering directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > Building CXX object CMakeFiles/cmTC_b2340.dir/src.cxx.o
> >>>>> > /home/test/tmp/.../per-package/tensorflow-lite/host/bin/aarch64-linux-g++ --sysroot=/home/test/tmp/.../per-package/tensorflow-lite/host/aarch64-buildroot-linux-gnu/sysroot    -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -O3 -g0 -D_FORTIFY_SOURCE=2 -ldl -latomic -funsafe-math-optimizations  -march=armv8-a -std=c++03 -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wlogical-op -Wenum-conversion -Wdouble-promotion -Wshadow -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -DCOMPILER_SUPPORT_STRICTANSI -Werror  -DNDEBUG -fPIE   -strict-ansi -o CMakeFiles/cmTC_b2340.dir/src.cxx.o -c /home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp/src.cxx
> >>>>> > aarch64-linux-g++.br_real: error: unrecognized command-line option '-strict-ansi'; did you mean '-fstrict-enums'?
> >>>>> > make[3]: *** [CMakeFiles/cmTC_b2340.dir/build.make:66: CMakeFiles/cmTC_b2340.dir/src.cxx.o] Error 1
> >>>>> > make[3]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> > make[2]: *** [Makefile:121: cmTC_b2340/fast] Error 2
> >>>>> > make[2]: Leaving directory '/home/test/tmp/.../build/tensorflow-lite-9663abe4c9037030b0b497c68cc4b2ba991967dd/tensorflow/lite/buildroot-build/CMakeFiles/CMakeTmp'
> >>>>> >
> >>>>> > Can anyone please let me know what could be an issue and how to resolve it?
> >>>>> >
> >>>>> > Thanks in advance
> >>>>> >
> >>>>> > _______________________________________________
> >>>>> > buildroot mailing list
> >>>>> > buildroot at buildroot.org
> >>>>> > https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list