> On Oct 30, 2019, at 9:40 AM, Damjan Marion via Lists.Fd.Io 
> <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> 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> 
>> Sent: Wednesday, October 30, 2019 1:00 PM
>> To: Juraj Linkeš <juraj.lin...@pantheon.tech>; Stanislav Chlebec 
>> <stanislav.chle...@pantheon.tech>
>> Cc: fd.io JJB <jobbuil...@projectrotterdam.info>; Nitin Saxena 
>> <nsax...@marvell.com>; Vratko Polak <vrpo...@cisco.com>; Ed Kern 
>> <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>
>> Gerrit-Assignee: Damjan Marion <dmar...@me.com>
>> Gerrit-Reviewer: Damjan Marion <dmar...@me.com>
>> Gerrit-Reviewer: Dave Barach <open...@barachs.net>
>> Gerrit-Reviewer: Ed Kern <e...@cisco.com>
>> Gerrit-Reviewer: Juraj Linkeš <juraj.lin...@pantheon.tech>
>> Gerrit-Reviewer: Nitin Saxena <nsax...@marvell.com>
>> Gerrit-Reviewer: Stanislav Chlebec <stanislav.chle...@pantheon.tech>
>> Gerrit-Reviewer: Vratko Polak <vrpo...@cisco.com>
>> Gerrit-Reviewer: fd.io JJB <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
> 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/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to