nnstreamer-example icon indicating copy to clipboard operation
nnstreamer-example copied to clipboard

[PPA] arm64 build failure

Open tony-jinwoo-ahn opened this issue 4 years ago • 16 comments

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.

tony-jinwoo-ahn avatar Sep 02 '20 15:09 tony-jinwoo-ahn

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

taos-ci avatar Sep 02 '20 15:09 taos-ci

@tony-jinwoo-ahn

$ sudo apt install tensorflow-dev

Is it work on your arm64 Ubuntu?

wooksong avatar Sep 03 '20 03:09 wooksong

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

tony-jinwoo-ahn avatar Sep 03 '20 03:09 tony-jinwoo-ahn

I think you will have to use

sudo apt install tensorflow-c-dev

kparichay avatar Sep 04 '20 01:09 kparichay

$ 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)

tony-jinwoo-ahn avatar Sep 06 '20 03:09 tony-jinwoo-ahn

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).

kparichay avatar Sep 07 '20 02:09 kparichay

@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".

tony-jinwoo-ahn avatar Sep 07 '20 15:09 tony-jinwoo-ahn

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

kparichay avatar Sep 08 '20 07:09 kparichay

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

gichan-jang avatar Sep 08 '20 08:09 gichan-jang

Thank you!

tony-jinwoo-ahn avatar Sep 08 '20 09:09 tony-jinwoo-ahn

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

gichan-jang avatar Sep 09 '20 02:09 gichan-jang

@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.

tony-jinwoo-ahn avatar Sep 10 '20 02:09 tony-jinwoo-ahn

nnstreamer arm64 package is broken now. After merging this PR, It will be available. https://github.com/nnstreamer/nnstreamer/pull/2699

gichan-jang avatar Sep 10 '20 03:09 gichan-jang

NEW RULE for BRANCHES ( https://github.com/nnstreamer/nnstreamer/issues/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.

gichan-jang avatar Sep 10 '20 06:09 gichan-jang

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

https://github.com/nnstreamer/nnstreamer-example/blob/3eb357a739a639e9439b7b7e0f27aa05adfd7267/debian/control#L18

myungjoo avatar Sep 10 '20 07:09 myungjoo

Thank you!

tony-jinwoo-ahn avatar Sep 10 '20 08:09 tony-jinwoo-ahn