cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
asobeih
Explorer
Explorer
1,866 Views
Registered: ‎02-13-2016

(Petalinux-Building) Protobuf removed from Google Github

Jump to solution

Hello,

I am using Petalinux Tool 2018.2 to build petalinux for Ultra 96. After configuring the Root File System using the command

 

petalinux-build -c rootfs

I had the following error:

 

WARNING: linux-firmware-1_0.0+gitAUTOINC+a61ac5cf83-r0 do_package: linux-firmware-lic package already existed in linux-firmware.
WARNING: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=3.4.x, attempting MIRRORS if available
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure: Unable to find revision b04e5cba356212e4e8c66c61bbe0c3a20537c5b9 in branch 3.4.x even from upstream
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure for URL: 'git://github.com/google/protobuf.git;branch=3.4.x'. Unable to fetch URL from any source.
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: <path>/system/ultra96_v2/xilinx-ultra96-reva-2018.2/build/tmp/work/aarch64-xilinx-linux/protobuf/3.4.1+gitAUTOINC+b04e5cba35-r0/temp/log.do_fetch.7854
ERROR: Task (<path>/system/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9172 tasks of which 8247 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  <path>/system/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb:do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build rootfs

After some search, I found that this branch has been deleted from Google github. Is there any solution to this problem?

Link: https://github.com/openembedded/meta-openembedded/issues/82

0 Kudos
1 Solution

Accepted Solutions
asobeih
Explorer
Explorer
1,812 Views
Registered: ‎02-13-2016

Thank you, @hokim.

I have solved this issue by modifying this file:

/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb

according to this github page:

https://github.com/openembedded/meta-openembedded/commit/01e54eb2fa5fb3e528781f51c85e79eb8c9b74d1

View solution in original post

0 Kudos
2 Replies
hokim
Scholar
Scholar
1,846 Views
Registered: ‎10-21-2015

Hi

Use the following bbappend file

project-spec/meta-user/recipes-devtools/protobuf/protobuf_3.4.1.bbappend

SRC_URI = "git://github.com/protocolbuffers/protobuf.git"
0 Kudos
asobeih
Explorer
Explorer
1,813 Views
Registered: ‎02-13-2016

Thank you, @hokim.

I have solved this issue by modifying this file:

/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb

according to this github page:

https://github.com/openembedded/meta-openembedded/commit/01e54eb2fa5fb3e528781f51c85e79eb8c9b74d1

View solution in original post

0 Kudos