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

[PPA] arm64 build failure #171

Open
tony-jinwoo-ahn opened this issue Sep 2, 2020 · 16 comments
Open

[PPA] arm64 build failure #171

tony-jinwoo-ahn opened this issue Sep 2, 2020 · 16 comments
Labels
Contributhon OpenSource Contributhon 2020

Comments

@tony-jinwoo-ahn
Copy link
Contributor

tony-jinwoo-ahn commented Sep 2, 2020

Hello, @gichan-jang I have a question.
I tried ubuntu PPA for nnstreamer-example: https://launchpad.net/~nnstreamer-example/+archive/ubuntu/ppa/+packages

But there is build failure for arm64: https://launchpadlibrarian.net/480209386/buildlog_ubuntu-bionic-arm64.nnstreamer-example_0.1.1-0~202005161235~ubuntu18.04.1_BUILDING.txt.gz

Is it possible to resolve build failure?
Do you have plan to support arm64 ubuntu PPA?

(FYI. I'm using headless ubuntu18.04 on raspberry pi 4b)
Thank you.

@taos-ci
Copy link
Collaborator

taos-ci commented Sep 2, 2020

:octocat: cibot: Thank you for posting issue #171. The person in charge will reply soon.

@dongju-chae dongju-chae added the Contributhon OpenSource Contributhon 2020 label Sep 3, 2020
@wooksong
Copy link
Member

wooksong commented Sep 3, 2020

@tony-jinwoo-ahn

$ sudo apt install tensorflow-dev

Is it work on your arm64 Ubuntu?

@tony-jinwoo-ahn
Copy link
Contributor Author

No, not working.

$ sudo add-apt-repository ppa:nnstreamer/ppa
$ sudo apt-get update
$ sudo apt install tensorflow-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package tensorflow-dev

@kparichay
Copy link
Member

I think you will have to use

sudo apt install tensorflow-c-dev

@tony-jinwoo-ahn
Copy link
Contributor Author

$ sudo add-apt-repository ppa:nnstreamer/ppa
$ sudo add-apt-repository ppa:nnstreamer-example/ppa
$ sudo apt-get update

$ sudo apt install tensorflow-c-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package tensorflow-c-dev

$ sudo apt install nnstreamer-example
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nnstreamer-example

@kparichay : PPA does not working on RaspberryPi4B (Ubuntu 18.04 ARM 64bit official version for rpi4)

@kparichay
Copy link
Member

kparichay commented Sep 7, 2020

nnstreamer-ppa does not build tensorflow for arm64 architecture (only tensorflow-lite-dev). You can build tensorflow debian for arm64 yourself by allowing build for arm64 architecture in debian/control file with [tensorflow launchpad source].(https://launchpad.net/~nnstreamer/+archive/ubuntu/ppa/+sourcefiles/tensorflow/1.13.1+nns1-0~202007151448~ubuntu18.04.1/tensorflow_1.13.1+nns1-0~202007151448~ubuntu18.04.1.tar.gz).

@tony-jinwoo-ahn
Copy link
Contributor Author

tony-jinwoo-ahn commented Sep 7, 2020

@kparichay Thank you, actually I've built nnstreamer and nnstreamer-example with only tflite.
This issue is about support request for PPA.
The "nnstreamer-example/ppa" for arm64 is broken now:

$ sudo add-apt-repository ppa:nnstreamer-example/ppa
$ sudo apt-get update
$ sudo apt install nnstreamer-example
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nnstreamer-example

I can build manually, but PPA would be convenient to verify new device quickly.

My suggestion is... How about fix your PPA with modifying build option? e.g. don't build tensorflow for arm64, etc.
I don't think the entire examples should be working on arm64. I think "PPA with only a few examples" would be better than "build failure".

@kparichay
Copy link
Member

kparichay commented Sep 8, 2020

Regarding the nnstreamer-example/ppa, I think @gichan-jang can help.

@gichan-jang
Copy link
Member

Ok, I will exclude tensorflow from nnstreamer-example ppa for the arm arch.

@tony-jinwoo-ahn
Copy link
Contributor Author

Thank you!

@gichan-jang
Copy link
Member

Now nnstreamer-example for the arm arch is available without tensorflow.

@myungjoo myungjoo closed this as completed Sep 9, 2020
@tony-jinwoo-ahn
Copy link
Contributor Author

@gichan-jang
I cannot install from PPA on rpi4 ubuntu18.04 arm64,
because of nnstreamer-tensorflow dependency.

ubuntu@ubuntu:~/nnstreamer$ sudo apt install nnstreamer-example 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nnstreamer-example : Depends: nnstreamer-tensorflow but it is not installable
E: Unable to correct problems, you have held broken packages.

@gichan-jang
Copy link
Member

nnstreamer arm64 package is broken now.
After merging this PR, It will be available.
nnstreamer/nnstreamer#2699

@gichan-jang
Copy link
Member

NEW RULE for BRANCHES ( nnstreamer/nnstreamer#2611 )

Due to NNStreamr 1.6.0 release, new features are managed in for-next branch until 9/25(maybe?)
So, use staging ppa temporarily. https://launchpad.net/~nnstreamer/+archive/ubuntu/staging-ppa
NNStreamer bionic arm64 is available now.

@myungjoo myungjoo reopened this Sep 10, 2020
@myungjoo
Copy link
Member

You need to remove dependency on nnstreamer-tensorflow for non amd64 arch in /debian/control:

nnstreamer-tensorflow-lite, nnstreamer-tensorflow

@tony-jinwoo-ahn
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributhon OpenSource Contributhon 2020
Projects
None yet
Development

No branches or pull requests

7 participants