Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorflow flex so file build for arm64 target #68258

Closed
saicharanbhimaraju1 opened this issue May 20, 2024 · 3 comments
Closed

Tensorflow flex so file build for arm64 target #68258

saicharanbhimaraju1 opened this issue May 20, 2024 · 3 comments
Assignees
Labels
comp:lite TF Lite related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.15 For issues related to 2.15.x type:build/install Build and install issues

Comments

@saicharanbhimaraju1
Copy link

Issue type

Build/Install

Have you reproduced the bug with TensorFlow Nightly?

No

Source

source

TensorFlow version

2.15

Custom code

No

OS platform and distribution

Linux Ubuntu 20.04

Mobile device

Linux Ubuntu 20.04

Python version

No response

Bazel version

6.1.0

GCC/compiler version

9.4.1

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

Couldn't find information on how to build tensorflow flex so file for arm 64 target.

Standalone code to reproduce the issue

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

Relevant log output

.cache/bazel/_bazel_bhimarajusaicharan/1c33682687e7863fb83c93ea84bcf2f9/external/icu/BUILD.bazel:33:11: Compiling icu4c/source/common/localematcher.cpp failed: (Exit 1): aarch64-none-linux-gnu-gcc failed: error executing command (from target @icu//:icuuc) /home/bhimarajusaicharan/.cache/bazel/_bazel_bhimarajusaicharan/1c33682687e7863fb83c93ea84bcf2f9/external/aarch64_linux_toolchain/bin/aarch64-none-linux-gnu-gcc -fstack-protector -g0 -O2 -DNDEBUG ... (remaining 53 arguments skipped)
In file included from external/icu/icu4c/source/common/localematcher.cpp:17:
external/icu/icu4c/source/common/locdistance.h:63:37: error: 'ULocMatchDirection' has not been declared
   63 |                                     ULocMatchDirection direction) const;
      |                                     ^~~~~~~~~~~~~~~~~~
external/icu/icu4c/source/common/locdistance.h: In member function 'UBool icu_66::LocaleDistance::isMatch(const icu_66::LSR&, const icu_66::LSR&, int32_t, ULocMatchFavorSubtag) const':
external/icu/icu4c/source/common/locdistance.h:97:44: error: 'ULOCMATCH_DIRECTION_WITH_ONE_WAY' was not declared in this scope
   97 |             shiftedThreshold, favorSubtag, ULOCMATCH_DIRECTION_WITH_ONE_WAY) >= 0;
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/icu/icu4c/source/common/localematcher.cpp: In constructor 'icu_66::LocaleMatcher::Builder::Builder(icu_66::LocaleMatcher::Builder&&)':
external/icu/icu4c/source/common/localematcher.cpp:131:9: error: class 'icu_66::LocaleMatcher::Builder' does not have any field named 'withDefault_'
  131 |         withDefault_(src.withDefault_),
@google-ml-butler google-ml-butler bot added the type:build/install Build and install issues label May 20, 2024
@tilakrayal tilakrayal added TF 2.15 For issues related to 2.15.x comp:lite TF Lite related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues labels May 20, 2024
@tilakrayal tilakrayal assigned sawantkumar and unassigned tilakrayal May 21, 2024
@Rohanjames1997
Copy link

Hi @saicharanbhimaraju1 , can you give us more details on how to reproduce this issue? Additionally, could you tell me why the config is elinux_aarch64 and not as shown in the guide?

@saicharanbhimaraju1
Copy link
Author

saicharanbhimaraju1 commented May 28, 2024

Hi @Rohanjames1997 I wanted to build tensorflowlite flex so file for arm64 target, so I used config elinux_aarch64 which is in .bazelrc file.
Steps to reproduce the issue:

  1. Download tensorflow v2.15 source
  2. cd tensorflow and execute bazel build -c opt --config=elinux_aarch64 tensorflow/lite/delegates/flex:tensorflowlite_flex

Just today morning I was able to build tensorflow flex so file arm64 target with tensorflow v2.9.1 with same steps along with that I took help from [https://github.com//issues/52018] .

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues TF 2.15 For issues related to 2.15.x type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants