* I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset @ 2017-07-03 18:41 Nick Garnett 2017-07-04 14:41 ` Wei Liu 0 siblings, 1 reply; 12+ messages in thread From: Nick Garnett @ 2017-07-03 18:41 UTC (permalink / raw) To: xen-devel I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target. However, I can't build the Xen toolset. I am following the "Xen ARM with Virtualization Extensions/CrossCompiling" page, "Build arm64 tools" section. When I execute: "./configure --build=x86_64-unknown-linux-gnu --host=aarch64-linux-gnu", I get the following errors: checking for uuid_clear in -luuid... no checking uuid.h usability... no checking uuid.h presence... no checking for uuid.h... no configure: error: cannot find a valid uuid library configure: error: ./configure failed for tools I have installed uuid, uuid-dev uuid-runtime and uuidcdef, but continue to get the same error. If anyone has seen and resolved this issue, please provide details. Regards, Nick Garnett Zazzu Firmware Architect _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-03 18:41 I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset Nick Garnett @ 2017-07-04 14:41 ` Wei Liu 2017-07-04 15:14 ` Julien Grall 0 siblings, 1 reply; 12+ messages in thread From: Wei Liu @ 2017-07-04 14:41 UTC (permalink / raw) To: Nick Garnett; +Cc: Julien Grall, Stefano Stabellini, Wei Liu, xen-devel CC Julien and Stefano -- not sure if the wiki page should be updated On Mon, Jul 03, 2017 at 11:41:37AM -0700, Nick Garnett wrote: > I was able to cross-compile the hypervisor on an amd64 host for the aarch64 > target. However, I can't build the Xen toolset. > > I am following the "Xen ARM with Virtualization Extensions/CrossCompiling" > page, "Build arm64 tools" section. When I execute: > > "./configure --build=x86_64-unknown-linux-gnu --host=aarch64-linux-gnu", I > get the following errors: > > checking for uuid_clear in -luuid... no > checking uuid.h usability... no > checking uuid.h presence... no > checking for uuid.h... no > configure: error: cannot find a valid uuid library > configure: error: ./configure failed for tools > > I have installed uuid, uuid-dev uuid-runtime and uuidcdef, but continue to > get the same error. > > If anyone has seen and resolved this issue, please provide details. > > Regards, Nick Garnett > > Zazzu Firmware Architect > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > https://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-04 14:41 ` Wei Liu @ 2017-07-04 15:14 ` Julien Grall [not found] ` <015a01d2f4e4$795ec320$6c1c4960$@zazzu.com> 0 siblings, 1 reply; 12+ messages in thread From: Julien Grall @ 2017-07-04 15:14 UTC (permalink / raw) To: Wei Liu, Nick Garnett; +Cc: Stefano Stabellini, xen-devel Hi, On 07/04/2017 03:41 PM, Wei Liu wrote: > CC Julien and Stefano -- not sure if the wiki page should be updated I don't cross-compile the tools usually but either build on the target or using an ARM chroot (setup with qemu-debootstrap). Stefano seems to have updated the wiki page recently, maybe he is using it? > > On Mon, Jul 03, 2017 at 11:41:37AM -0700, Nick Garnett wrote: >> I was able to cross-compile the hypervisor on an amd64 host for the aarch64 >> target. However, I can't build the Xen toolset. >> >> I am following the "Xen ARM with Virtualization Extensions/CrossCompiling" >> page, "Build arm64 tools" section. When I execute: >> >> "./configure --build=x86_64-unknown-linux-gnu --host=aarch64-linux-gnu", I >> get the following errors: >> >> checking for uuid_clear in -luuid... no >> checking uuid.h usability... no >> checking uuid.h presence... no >> checking for uuid.h... no >> configure: error: cannot find a valid uuid library >> configure: error: ./configure failed for tools >> >> I have installed uuid, uuid-dev uuid-runtime and uuidcdef, but continue to >> get the same error. >> >> If anyone has seen and resolved this issue, please provide details. >> >> Regards, Nick Garnett >> >> Zazzu Firmware Architect Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <015a01d2f4e4$795ec320$6c1c4960$@zazzu.com>]
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset [not found] ` <015a01d2f4e4$795ec320$6c1c4960$@zazzu.com> @ 2017-07-04 16:46 ` Julien Grall 2017-07-04 21:59 ` Nick Garnett 0 siblings, 1 reply; 12+ messages in thread From: Julien Grall @ 2017-07-04 16:46 UTC (permalink / raw) To: Nick Garnett, xen-devel, Wei Liu, Stefano Stabellini Hello Nick, Please avoid top-posting and keep mailing list CCed. On 07/04/2017 05:42 PM, Nick Garnett wrote: > I tried installing the tools with an ARM64 chroot also and had a similar issue. In that case, the package "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. Which distributions are you targeting? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-04 16:46 ` Julien Grall @ 2017-07-04 21:59 ` Nick Garnett 2017-07-05 8:15 ` Julien Grall 0 siblings, 1 reply; 12+ messages in thread From: Nick Garnett @ 2017-07-04 21:59 UTC (permalink / raw) To: 'Julien Grall', 'xen-devel', 'Wei Liu', 'Stefano Stabellini' From: Julien Grall [mailto:julien.grall@arm.com] Sent: Tuesday, July 04, 2017 09:47 On 07/04/2017 05:42 PM, Nick Garnett wrote: > I tried installing the tools with an ARM64 chroot also and had a similar issue. In that case, the package > "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. Which distributions are you targeting? [nickgarnett 1707041454PDT] I am using Xen 4.9.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-04 21:59 ` Nick Garnett @ 2017-07-05 8:15 ` Julien Grall 2017-07-06 19:26 ` Nick Garnett ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Julien Grall @ 2017-07-05 8:15 UTC (permalink / raw) To: Nick Garnett, 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Hello Nick, On 07/04/2017 10:59 PM, Nick Garnett wrote: > From: Julien Grall [mailto:julien.grall@arm.com] > Sent: Tuesday, July 04, 2017 09:47 > > On 07/04/2017 05:42 PM, Nick Garnett wrote: >> I tried installing the tools with an ARM64 chroot also and had a similar issue. In that case, the package >> "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. > > I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platforms. My runes are usually: ./configure make -j install-tools This will install the tools in /usr/local/ I think the list of dependencies on the CrossCompiling page is still valid: https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot > > Which distributions are you targeting? > > [nickgarnett 1707041454PDT] I am using Xen 4.9.0 I meant Linux Distribution. E.g is it Debian, Fedora, Yocto? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-05 8:15 ` Julien Grall @ 2017-07-06 19:26 ` Nick Garnett 2017-07-06 20:47 ` Nick Garnett 2017-07-06 22:56 ` Nick Garnett 2 siblings, 0 replies; 12+ messages in thread From: Nick Garnett @ 2017-07-06 19:26 UTC (permalink / raw) To: 'Julien Grall', 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Sent: Wednesday, July 05, 2017 01:15 > From: Julien Grall [mailto:julien.grall@arm.com] > Sent: Tuesday, July 04, 2017 09:47 > > On 07/04/2017 05:42 PM, Nick Garnett wrote: >> I tried installing the tools with an ARM64 chroot also and had a >> similar issue. In that case, the package "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. > > I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platforms. My runes are usually: ./configure make -j install-tools This will install the tools in /usr/local/ I think the list of dependencies on the CrossCompiling page is still valid: https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot ____________________________________________________________________________________ [nickgarnett:170706-1225PDT] Julian, you state: In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platform. I assume you mean if I use crossbuild it would be "like compiling directly on an ARM platform". Correct? What should I do (or not do), following the HOWTO in "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling"? Should I use "multiarch"? Regards, Nick Garnett _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-05 8:15 ` Julien Grall 2017-07-06 19:26 ` Nick Garnett @ 2017-07-06 20:47 ` Nick Garnett 2017-07-06 22:56 ` Nick Garnett 2 siblings, 0 replies; 12+ messages in thread From: Nick Garnett @ 2017-07-06 20:47 UTC (permalink / raw) To: 'Julien Grall', 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Sent: Thursday, July 06, 2017 12:26 > From: Julien Grall [mailto:julien.grall@arm.com] > Sent: Tuesday, July 04, 2017 09:47 > > On 07/04/2017 05:42 PM, Nick Garnett wrote: >> I tried installing the tools with an ARM64 chroot also and had a >> similar issue. In that case, the package "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. > > I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platforms. My runes are usually: ./configure make -j install-tools This will install the tools in /usr/local/ I think the list of dependencies on the CrossCompiling page is still valid: https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot ____________________________________________________________________________________ [nickgarnett:170706-1225PDT] Julian, you state: In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platform. I assume you mean if I use crossbuild it would be "like compiling directly on an ARM platform". Correct? What should I do (or not do), following the HOWTO in "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling"? Should I use "multiarch"? ____________________________________________________________________________________ [nickgarnett:170706-1345PDT] Following the HOWTO "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling", resulted in the following error in the "apt-get update" step: #created the chroot and fixed the chroot.d descriptor file (zesty-arm64-cross)root# apt-get install vim-tiny wget sudo less pkgbinarymangler #(zesty-arm64-cross)root# vi /etc/apt/sources.list # added ... #deb [arch=arm64] http://ports.ubuntu.com/ saucy main universe #Since this is a cross-build chroot Recommended and Suggested packages are largely unnecessary, # created /etc/apt/apt.conf.d/30norecommends containing: #APT::Install-Recommends "0"; #APT::Install-Suggests "0"; (zesty-arm64-cross)root# dpkg --add-architecture arm64 (zesty-arm64-cross)root# apt-get update Resulted in: Err:3 http://archive.ubuntu.com/ubuntu zesty/main arm64 Packages 404 Not Found [IP: 91.189.88.149 80] Ign:5 http://archive.ubuntu.com/ubuntu zesty/universe arm64 Packages Reading package lists... Done E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.149 80] E: Some index files failed to download. They have been ignored, or old ones used instead. ____________________________________________________________________________________ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-05 8:15 ` Julien Grall 2017-07-06 19:26 ` Nick Garnett 2017-07-06 20:47 ` Nick Garnett @ 2017-07-06 22:56 ` Nick Garnett 2017-07-07 8:13 ` Julien Grall 2 siblings, 1 reply; 12+ messages in thread From: Nick Garnett @ 2017-07-06 22:56 UTC (permalink / raw) To: 'Julien Grall', 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Sent: Thursday, July 06, 2017 13:48 Sent: Thursday, July 06, 2017 12:26 > From: Julien Grall [mailto:julien.grall@arm.com] > Sent: Tuesday, July 04, 2017 09:47 > > On 07/04/2017 05:42 PM, Nick Garnett wrote: >> I tried installing the tools with an ARM64 chroot also and had a >> similar issue. In that case, the package "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. > > I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platforms. My runes are usually: ./configure make -j install-tools This will install the tools in /usr/local/ I think the list of dependencies on the CrossCompiling page is still valid: https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot ____________________________________________________________________________________ [nickgarnett:170706-1225PDT] Julian, you state: In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platform. I assume you mean if I use crossbuild it would be "like compiling directly on an ARM platform". Correct? What should I do (or not do), following the HOWTO in "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling"? Should I use "multiarch"? ____________________________________________________________________________________ [nickgarnett:170706-1345PDT] Following the HOWTO "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling", resulted in the following error in the "apt-get update" step: #created the chroot and fixed the chroot.d descriptor file (zesty-arm64-cross)root# apt-get install vim-tiny wget sudo less pkgbinarymangler #(zesty-arm64-cross)root# vi /etc/apt/sources.list # added ... #deb [arch=arm64] http://ports.ubuntu.com/ saucy main universe #Since this is a cross-build chroot Recommended and Suggested packages are largely unnecessary, # created /etc/apt/apt.conf.d/30norecommends containing: #APT::Install-Recommends "0"; #APT::Install-Suggests "0"; (zesty-arm64-cross)root# dpkg --add-architecture arm64 (zesty-arm64-cross)root# apt-get update Resulted in: Err:3 http://archive.ubuntu.com/ubuntu zesty/main arm64 Packages 404 Not Found [IP: 91.189.88.149 80] Ign:5 http://archive.ubuntu.com/ubuntu zesty/universe arm64 Packages Reading package lists... Done E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.149 80] E: Some index files failed to download. They have been ignored, or old ones used instead. ____________________________________________________________________________________ [nickgarnett:170706-1555PDT] Got "configure: error: ./configure: line 6930: /usr/bin/python: cannot execute binary file: Exec format error is too old, minimum required version is 2.3" ./configure --host=aarch64-linux-gnu checking build system type... x86_64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu Will build the following subsystems: xen tools docs configure: creating ./config.status config.status: creating config/Toplevel.mk config.status: creating config/Paths.mk === configuring in tools (/home/nick/xen-4.9.0/tools) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' '--host=aarch64-linux-gnu' 'host_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether aarch64-linux-gnu-gcc accepts -g... yes checking for aarch64-linux-gnu-gcc option to accept ISO C89... none needed checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for aarch64-linux-gnu-gcc... (cached) aarch64-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether aarch64-linux-gnu-gcc accepts -g... (cached) yes checking for aarch64-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for bison... no checking for flex... no checking for perl... /usr/bin/perl checking for awk... /usr/bin/awk checking for aarch64-linux-gnu-ocamlc... no checking for ocamlc... no checking for aarch64-linux-gnu-ocaml... no checking for ocaml... no checking for aarch64-linux-gnu-ocamldep... no checking for ocamldep... no checking for aarch64-linux-gnu-ocamlmktop... no checking for ocamlmktop... no checking for aarch64-linux-gnu-ocamlmklib... no checking for ocamlmklib... no checking for aarch64-linux-gnu-ocamldoc... no checking for ocamldoc... no checking for aarch64-linux-gnu-ocamlbuild... no checking for ocamlbuild... no checking for aarch64-linux-gnu-ocamlfind... no checking for ocamlfind... no checking for gawk... /usr/bin/awk checking for aarch64-linux-gnu-checkpolicy... no checking for checkpolicy... no checking for bash... /bin/bash checking for python... /usr/bin/python checking for python version >= 2.3 ... ./configure: line 6927: /usr/bin/python: cannot execute binary file: Exec format error no configure: error: ./configure: line 6930: /usr/bin/python: cannot execute binary file: Exec format error is too old, minimum required version is 2.3 configure: error: ./configure failed for tools _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset 2017-07-06 22:56 ` Nick Garnett @ 2017-07-07 8:13 ` Julien Grall 0 siblings, 0 replies; 12+ messages in thread From: Julien Grall @ 2017-07-07 8:13 UTC (permalink / raw) To: Nick Garnett, 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Hello Nick, Can you please configure your e-mail client to quote properly? This is quite difficult to follow the conversation. On 07/06/2017 11:56 PM, Nick Garnett wrote: > Sent: Thursday, July 06, 2017 13:48 > Sent: Thursday, July 06, 2017 12:26 > >> From: Julien Grall [mailto:julien.grall@arm.com] >> Sent: Tuesday, July 04, 2017 09:47 >> >> On 07/04/2017 05:42 PM, Nick Garnett wrote: >>> I tried installing the tools with an ARM64 chroot also and had a >>> similar issue. In that case, the package "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. >> >> I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. > > In that case, you don't need to install crossbuild_essential_arm64. > Compiling in that chroot is like compiling directly on an ARM platforms. > > My runes are usually: > > ./configure > make -j install-tools > > This will install the tools in /usr/local/ > > I think the list of dependencies on the CrossCompiling page is still valid: > > https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot > > ____________________________________________________________________________________ > [nickgarnett:170706-1225PDT] > Julian, you state: > In that case, you don't need to install crossbuild_essential_arm64. > Compiling in that chroot is like compiling directly on an ARM platform. > > I assume you mean if I use crossbuild it would be "like compiling directly on an ARM platform". Correct? No, crossbuild would be building from an x86 host and target an ARM platform. Compiling directly on an ARM platform would be native build or use QEMU user-mode. > > What should I do (or not do), following the HOWTO in "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling"? > Should I use "multiarch"? > > ____________________________________________________________________________________ > [nickgarnett:170706-1345PDT] > Following the HOWTO "https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling", resulted in the following error in the "apt-get update" step: > > #created the chroot and fixed the chroot.d descriptor file > > (zesty-arm64-cross)root# apt-get install vim-tiny wget sudo less pkgbinarymangler > > #(zesty-arm64-cross)root# vi /etc/apt/sources.list > # added ... > #deb [arch=arm64] http://ports.ubuntu.com/ saucy main universe > > #Since this is a cross-build chroot Recommended and Suggested packages are largely unnecessary, > # created /etc/apt/apt.conf.d/30norecommends containing: > #APT::Install-Recommends "0"; > #APT::Install-Suggests "0"; > > (zesty-arm64-cross)root# dpkg --add-architecture arm64 > (zesty-arm64-cross)root# apt-get update > > Resulted in: > Err:3 http://archive.ubuntu.com/ubuntu zesty/main arm64 Packages > 404 Not Found [IP: 91.189.88.149 80] > Ign:5 http://archive.ubuntu.com/ubuntu zesty/universe arm64 Packages > Reading package lists... Done > E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/zesty/main/binary-arm64/Packages > 404 Not Found [IP: 91.189.88.149 80] > E: Some index files failed to download. They have been ignored, or old ones used instead. I am assuming you were able to fix this give the configure below? > ____________________________________________________________________________________ > [nickgarnett:170706-1555PDT] > > Got "configure: error: ./configure: line 6930: /usr/bin/python: cannot execute > binary file: Exec format error is too old, minimum required version is 2.3" > ./configure --host=aarch64-linux-gnu > checking build system type... x86_64-unknown-linux-gn I am a bit confused, on a previous mail you mentioned you were using QEMU user-mode. But this looks like you are doing cross-build. Maybe I am lost because of the quoting. The error "exec format error" below seem to confirm you are mixing both. If you have a rootfs with only arm64 binaries, you could use qemu user-mode. As soon as you call chroot in you rootfs your environment will be like running on an ARM64 platform. You should never see the word x86_64 anymore. For crossbuild, I haven't done in a while and would need to brush up a bit before giving any help here. A good start would be: https://wiki.debian.org/CrossCompiling Let me know which way you want to use. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset @ 2017-07-05 13:44 Nick Garnett 0 siblings, 0 replies; 12+ messages in thread From: Nick Garnett @ 2017-07-05 13:44 UTC (permalink / raw) To: Julien Grall, 'xen-devel', 'Wei Liu', 'Stefano Stabellini' [-- Attachment #1.1: Type: text/plain, Size: 1735 bytes --] -------- Original message --------From: Julien Grall <julien.grall@arm.com> Date: 7/5/17 01:15 (GMT-08:00) To: Nick Garnett <nick@zazzu.com>, 'xen-devel' <xen-devel@lists.xenproject.org>, 'Wei Liu' <wei.liu2@citrix.com>, 'Stefano Stabellini' <sstabellini@kernel.org> Subject: Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset Hello Nick, On 07/04/2017 10:59 PM, Nick Garnett wrote: > From: Julien Grall [mailto:julien.grall@arm.com] > Sent: Tuesday, July 04, 2017 09:47 > > On 07/04/2017 05:42 PM, Nick Garnett wrote: >> I tried installing the tools with an ARM64 chroot also and had a similar issue. In that case, the package >> "crossbuild_essential_arm64" wouldn't install because it depended on a package that was not installable. > > I don't use crossbuild within the chroot. My chroot contains ARM64 binaries only and QEMU is used to run ARM64 binaries. In that case, you don't need to install crossbuild_essential_arm64. Compiling in that chroot is like compiling directly on an ARM platforms. My runes are usually: ./configure make -j install-tools This will install the tools in /usr/local/ I think the list of dependencies on the CrossCompiling page is still valid: https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot > > Which distributions are you targeting? > > [nickgarnett 1707041454PDT] I am using Xen 4.9.0 I meant Linux Distribution. E.g is it Debian, Fedora, Yocto? [nickgarnett] Ubuntu Zesty _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel [-- Attachment #1.2: Type: text/html, Size: 2201 bytes --] [-- Attachment #2: Type: text/plain, Size: 127 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <E1dSkcD-0006cd-IU@lists.xenproject.org>]
* Re: I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset [not found] <E1dSkcD-0006cd-IU@lists.xenproject.org> @ 2017-07-05 14:01 ` Julien Grall 0 siblings, 0 replies; 12+ messages in thread From: Julien Grall @ 2017-07-05 14:01 UTC (permalink / raw) To: Nick Garnett, 'xen-devel', 'Wei Liu', 'Stefano Stabellini' Hi, On 05/07/17 14:44, Nick Garnett wrote: > > -------- Original message -------- > From: Julien Grall <julien.grall@arm.com> > Date: 7/5/17 01:15 (GMT-08:00) > To: Nick Garnett <nick@zazzu.com>, 'xen-devel' > <xen-devel@lists.xenproject.org>, 'Wei Liu' <wei.liu2@citrix.com>, > 'Stefano Stabellini' <sstabellini@kernel.org> > Subject: Re: [Xen-devel] I was able to cross-compile the hypervisor on > an amd64 host for the aarch64 target ... However, I can't build the > Xen toolset > > Hello Nick, > > On 07/04/2017 10:59 PM, Nick Garnett wrote: >> From: Julien Grall [mailto:julien.grall@arm.com] >> Sent: Tuesday, July 04, 2017 09:47 >> >> On 07/04/2017 05:42 PM, Nick Garnett wrote: >>> I tried installing the tools with an ARM64 chroot also and had a > similar issue. In that case, the package >>> "crossbuild_essential_arm64" wouldn't install because it depended on > a package that was not installable. >> >> I don't use crossbuild within the chroot. My chroot contains ARM64 > binaries only and QEMU is used to run ARM64 binaries. > > In that case, you don't need to install crossbuild_essential_arm64. > Compiling in that chroot is like compiling directly on an ARM platforms. > > My runes are usually: > > ./configure > make -j install-tools > > This will install the tools in /usr/local/ > > I think the list of dependencies on the CrossCompiling page is still valid: > > https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot > >> >> Which distributions are you targeting? >> >> [nickgarnett 1707041454PDT] I am using Xen 4.9.0 > > I meant Linux Distribution. E.g is it Debian, Fedora, Yocto? > > [nickgarnett] Ubuntu Zesty I think the list of packages mentioned in the CrossCompiling wikipage is still valid for ARM64. You can follow the instructions to install missing packages and then execute the runes I sent in my previous e-mail. Let me know if you need more help. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-07-07 8:13 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-03 18:41 I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset Nick Garnett
2017-07-04 14:41 ` Wei Liu
2017-07-04 15:14 ` Julien Grall
[not found] ` <015a01d2f4e4$795ec320$6c1c4960$@zazzu.com>
2017-07-04 16:46 ` Julien Grall
2017-07-04 21:59 ` Nick Garnett
2017-07-05 8:15 ` Julien Grall
2017-07-06 19:26 ` Nick Garnett
2017-07-06 20:47 ` Nick Garnett
2017-07-06 22:56 ` Nick Garnett
2017-07-07 8:13 ` Julien Grall
-- strict thread matches above, loose matches on Subject: below --
2017-07-05 13:44 Nick Garnett
[not found] <E1dSkcD-0006cd-IU@lists.xenproject.org>
2017-07-05 14:01 ` Julien Grall
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).