On an ubuntu-18.04 x86_64 system which happily builds x86_64 .debs, I did the following:
$ clone vpp tree $ git review -d 21035 $ make PLATFORM=aarch64-generic install-dep Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:4 https://deb.nodesource.com/node_12.x bionic InRelease Hit:5 http://dl.google.com/linux/chrome/deb stable Release Hit:7 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic InRelease Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:9 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Hit:11 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Hit:12 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease Ign:13 http://us.archive.ubuntu.com/ubuntu bionic/main arm64 Packages Hit:14 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe arm64 Packages Ign:17 http://security.ubuntu.com/ubuntu bionic-security/main arm64 Packages Hit:18 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Ign:19 http://us.archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages Ign:21 http://security.ubuntu.com/ubuntu bionic-security/restricted arm64 Packages Ign:22 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages Ign:13 http://us.archive.ubuntu.com/ubuntu bionic/main arm64 Packages Ign:23 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 Packages Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe arm64 Packages Ign:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 Packages Ign:19 http://us.archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages Ign:17 http://security.ubuntu.com/ubuntu bionic-security/main arm64 Packages Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-updates/main arm64 Packages Ign:26 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted arm64 Packages Get:27 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [985 kB] Ign:21 http://security.ubuntu.com/ubuntu bionic-security/restricted arm64 Packages Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages Get:29 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,017 kB] Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages Ign:23 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 Packages Ign:22 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages Ign:13 http://us.archive.ubuntu.com/ubuntu bionic/main arm64 Packages Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages Ign:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 Packages Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe arm64 Packages Ign:19 http://us.archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages Ign:17 http://security.ubuntu.com/ubuntu bionic-security/main arm64 Packages Ign:20 http://us.archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-updates/main arm64 Packages Ign:21 http://security.ubuntu.com/ubuntu bionic-security/restricted arm64 Packages Ign:26 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted arm64 Packages Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages Ign:23 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 Packages Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages Ign:22 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages Ign:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 Packages Err:13 http://us.archive.ubuntu.com/ubuntu bionic/main arm64 Packages 404 Not Found [IP: 91.189.91.14 80] Ign:15 http://us.archive.ubuntu.com/ubuntu bionic/restricted arm64 Packages Err:17 http://security.ubuntu.com/ubuntu bionic-security/main arm64 Packages 404 Not Found [IP: 91.189.88.149 80] Ign:16 http://us.archive.ubuntu.com/ubuntu bionic/universe arm64 Packages Ign:19 http://us.archive.ubuntu.com/ubuntu bionic/multiverse arm64 Packages Err:20 http://us.archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages 404 Not Found [IP: 91.189.91.14 80] Ign:21 http://security.ubuntu.com/ubuntu bionic-security/restricted arm64 Packages Ign:25 http://us.archive.ubuntu.com/ubuntu bionic-updates/main arm64 Packages Ign:23 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 Packages Ign:26 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted arm64 Packages Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages Ign:24 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 Packages Ign:22 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe arm64 Packages Err:25 http://us.archive.ubuntu.com/ubuntu bionic-updates/main arm64 Packages 404 Not Found [IP: 91.189.91.14 80] Ign:26 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted arm64 Packages Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe arm64 Packages Ign:30 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse arm64 Packages Fetched 252 kB in 5s (46.9 kB/s) Reading package lists... E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.14 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.14 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.149 80] E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.14 80] E: Some index files failed to download. They have been ignored, or old ones used instead. Makefile:310: recipe for target 'install-dep' failed make: *** [install-dep] Error 100 Subsequently, references to openssl fail during “make PLATFORM=aarch64-generic install-ext-deps”. Suggestions? From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Dave Barach via Lists.Fd.Io Sent: Wednesday, October 30, 2019 10:49 AM To: Christian Hopps <cho...@chopps.org>; Damjan Marion <dmar...@me.com> Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Change in vpp[master]: ebuild: Cross compilation aarch64 Ubuntu support To Chris’ point: build-root/Makefile and related files in build-data are in the “buildroot” camp: cross-compile a toolchain, utilities, etc. etc. then cross-compile the desired products. I’ll try uninstalling the $BUILDHOST version of vpp-ext-deps to see if I can cross-compile aarch64 binaries. I don’t think that’s a solution we can merge. Given the amount of work that the arm community has invested in vpp, and given that target self-compilation can be miserably slow – I’ve watched paint dry while compiling on a 64-bit rpi-4 - we’ll come up with a solution which we can merge. D. From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> <vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Christian Hopps Sent: Wednesday, October 30, 2019 10:19 AM To: Damjan Marion <dmar...@me.com<mailto:dmar...@me.com>> Cc: Christian Hopps <cho...@chopps.org<mailto:cho...@chopps.org>>; Stanislav Chlebec <stanislav.chle...@pantheon.tech<mailto:stanislav.chle...@pantheon.tech>>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] Change in vpp[master]: ebuild: Cross compilation aarch64 Ubuntu support > On Oct 30, 2019, at 9:40 AM, Damjan Marion via Lists.Fd.Io > <dmarion=me....@lists.fd.io<mailto:dmarion=me....@lists.fd.io>> wrote: > > (resending with bogus email addresses removed, added vpp-dev) > > Honestly, I don't see lot of value in this kind of cross-compilation support. > VPP today is linked against lot of shared libraries provided by the current > distro, so effectively you can cross-compile only for same distro, same > version, just different target cpu. I don't know about this patch in particular; however, what you describe above (same distro same version different arch) is certainly useful, especially for embedded devices for which vpp is a target. We do this. Is VPP looking to remove or not support this type of cross compilation? Perhaps this is already known, but for ubuntu/debian it supports installing multiple architectures libraries (shared or otherwise) for x-compile support using dpkg --add-architecture (see https://wiki.debian.org/Multiarch/HOWTO). Openwrt/build-root use a different mechanism x-compiling everything from source I believe. Thanks, Chris. > > What about using cross-arch build containers instead? > > >> On 30 Oct 2019, at 14:10, Stanislav Chlebec >> <stanislav.chle...@pantheon.tech<mailto:stanislav.chle...@pantheon.tech>> >> wrote: >> >> Hello Dave >> >> I miss in the building procedure make install-ext-deps. >> It could have been a reason why it failed. >> >> Prerequisites: >> - You are on some x86_64 system >> - Uninstall previous versions of vpp-ext-deps (it could have been >> compiled for improper platform x86_64) >> - Clean VPP git repo (make clean -qfx) >> - git checkout 6be55648334308d4eaa4a02143b968720bb62078 >> - git fetch "https://gerrit.fd.io/r/vpp" refs/changes/35/21035/23 && >> git checkout FETCH_HEAD >> >> Then please try: >> make PLATFORM=aarch64-generic install-dep >> make PLATFORM=aarch64-generic install-ext-deps >> make PLATFORM=aarch64-generic pkg-deb >> >> I repeated the procedure at my system – here is logs (if it helps...) >> https://gist.github.com/stanislav-chlebec/3042a0eeb56819aea8217dfaf5e60647 >> >> Thanks >> Stanislav >> >> From: Dave Barach (Code Review) <ger...@fd.io<mailto:ger...@fd.io>> >> Sent: Wednesday, October 30, 2019 1:00 PM >> To: Juraj Linkeš >> <juraj.lin...@pantheon.tech<mailto:juraj.lin...@pantheon.tech>>; Stanislav >> Chlebec >> <stanislav.chle...@pantheon.tech<mailto:stanislav.chle...@pantheon.tech>> >> Cc: fd.io JJB >> <jobbuil...@projectrotterdam.info<mailto:jobbuil...@projectrotterdam.info>>; >> Nitin Saxena <nsax...@marvell.com<mailto:nsax...@marvell.com>>; Vratko Polak >> <vrpo...@cisco.com<mailto:vrpo...@cisco.com>>; Ed Kern >> <e...@cisco.com<mailto:e...@cisco.com>> >> Subject: Change in vpp[master]: ebuild: Cross compilation aarch64 Ubuntu >> support >> >> Downloaded the patch, tried "make install-dep" followed by "make >> PLATFORM=aarch64-generic build". First, is that the right way to >> cross-compile an aarch64 debug binary? >> >> Aside: "make PLATFORM=aarch64-generic install dep" fails: >> >> .8 kB] >> Ign:27 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 >> Packages >> Ign:30 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 >> Packages >> Err:23 http://security.ubuntu.com/ubuntu bionic-security/main arm64 Packages >> 404 Not Found [IP: 91.189.88.149 80] >> Ign:24 http://security.ubuntu.com/ubuntu bionic-security/restricted arm64 >> Packages >> Ign:27 http://security.ubuntu.com/ubuntu bionic-security/universe arm64 >> Packages >> Ign:30 http://security.ubuntu.com/ubuntu bionic-security/multiverse arm64 >> Packages >> Fetched 53.5 kB in 4s (14.2 kB/s) >> Reading package lists... Done >> E: Failed to fetch >> http://us.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages >> 404 Not Found [IP: 91.189.91.14 80] >> E: Failed to fetch >> http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages >> 404 Not Found [IP: 91.189.91.14 80] >> E: Failed to fetch >> http://security.ubuntu.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages >> 404 Not Found [IP: 91.189.88.149 80] >> E: Failed to fetch >> http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages >> 404 Not Found [IP: 91.189.91.14 80] >> E: Some index files failed to download. They have been ignored, or old ones >> used instead. >> Makefile:310: recipe for target 'install-dep' failed >> The vpp compile attempt fails: >> >> -- Performing Test HAVE_MEMFD_CREATE - Success >> -- Performing Test HAVE_GETCPU >> -- Performing Test HAVE_GETCPU - Failed >> CMake Error at cmake/misc.cmake:27 (_message): >> Could NOT find OpenSSL, try to set the path to OpenSSL root folder >> in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) >> (found version "1.1.1d") >> Enough said. >> >> View Change >> >> To view, visit change 21035. To unsubscribe, or for help writing mail >> filters, visit settings. >> >> Gerrit-Project: vpp >> Gerrit-Branch: master >> Gerrit-Change-Id: I66cb57f60d1488a459a74964ea65f2502e4633f6 >> Gerrit-Change-Number: 21035 >> Gerrit-PatchSet: 23 >> Gerrit-Owner: Juraj Linkeš >> <juraj.lin...@pantheon.tech<mailto:juraj.lin...@pantheon.tech>> >> Gerrit-Assignee: Damjan Marion <dmar...@me.com<mailto:dmar...@me.com>> >> Gerrit-Reviewer: Damjan Marion <dmar...@me.com<mailto:dmar...@me.com>> >> Gerrit-Reviewer: Dave Barach >> <open...@barachs.net<mailto:open...@barachs.net>> >> Gerrit-Reviewer: Ed Kern <e...@cisco.com<mailto:e...@cisco.com>> >> Gerrit-Reviewer: Juraj Linkeš >> <juraj.lin...@pantheon.tech<mailto:juraj.lin...@pantheon.tech>> >> Gerrit-Reviewer: Nitin Saxena >> <nsax...@marvell.com<mailto:nsax...@marvell.com>> >> Gerrit-Reviewer: Stanislav Chlebec >> <stanislav.chle...@pantheon.tech<mailto:stanislav.chle...@pantheon.tech>> >> Gerrit-Reviewer: Vratko Polak <vrpo...@cisco.com<mailto:vrpo...@cisco.com>> >> Gerrit-Reviewer: fd.io JJB >> <jobbuil...@projectrotterdam.info<mailto:jobbuil...@projectrotterdam.info>> >> Gerrit-Comment-Date: Wed, 30 Oct 2019 11:59:11 +0000 >> Gerrit-HasComments: No >> Gerrit-Has-Labels: No >> Gerrit-MessageType: comment > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#14386): https://lists.fd.io/g/vpp-dev/message/14386 > Mute This Topic: https://lists.fd.io/mt/39781289/1826170 > Group Owner: vpp-dev+ow...@lists.fd.io<mailto:vpp-dev+ow...@lists.fd.io> > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [cho...@chopps.org] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14389): https://lists.fd.io/g/vpp-dev/message/14389 Mute This Topic: https://lists.fd.io/mt/39781289/675269 Group Owner: vpp-dev+ow...@lists.fd.io<mailto:vpp-dev+ow...@lists.fd.io> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [dbar...@cisco.com] -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14391): https://lists.fd.io/g/vpp-dev/message/14391 Mute This Topic: https://lists.fd.io/mt/39781289/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-