[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Not able to cross-compile the xen

after a small workaround I installed multiarch i did ./configure, now the configure is going well,:

Below is is the output:  
=== configuring in docs (/home/siddhu/scp/xen-4.13.0/docs)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  '--build=x86_64-unknown-linux-gnu' '--host=aarch64-linux-gnu' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=aarch64-linux-gnu' --cache-file=/dev/null --srcdir=.
checking for fig2dev... /usr/bin/fig2dev
checking for pod2man... /usr/bin/pod2man
checking for pod2html... /usr/bin/pod2html
checking for pod2text... /usr/bin/pod2text
checking for pandoc... no
configure: WARNING: pandoc is not available so some documentation won't be built
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating ../config/Docs.mk
config.status: creating man/xl.cfg.5.pod
config.status: creating man/xl.1.pod

Later I installed " sudo apt-get install gcc-aarch64-linux-gnu" and
Later I did " make XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-" but the make end with error:

as the log is more am attaching last few lines the full log I have attached in a seperate file. 

Make log:

aarch64-linux-gnu-gcc     -Wl,-soname -Wl,libxenguest.so.4.13 -shared -o libxenguest.so.4.13.0 xg_private.opic xc_suspend.opic xc_nomigrate.opic libelf-tools.opic libelf-loader.opic libelf-dominfo.opic xc_dom_core.opic xc_dom_boot.opic xc_dom_elfloader.opic xc_dom_armzimageloader.opic xc_dom_binloader.opic xc_dom_compat_linux.opic xc_dom_arm.opic -lbz2 -llzma -lz  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore /home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/evtchn/libxenevtchn.so  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toollog  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/evtchn  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toollog  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/gnttab  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/call  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/foreignmemory  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toollog  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/toolcore  -Wl,-rpath-link=/home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libs/devicemodel /home/siddhu/scp/xen-4.13.0/tools/libxc/../../tools/libxc/libxenctrl.so  
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: cannot find -lbz2
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: cannot find -llzma
/usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:277: recipe for target 'libxenguest.so.4.13.0' failed
make[5]: *** [libxenguest.so.4.13.0] Error 1
make[5]: Leaving directory '/home/siddhu/scp/xen-4.13.0/tools/libxc'
Makefile:180: recipe for target 'build' failed
make[4]: *** [build] Error 2
make[4]: Leaving directory '/home/siddhu/scp/xen-4.13.0/tools/libxc'
/home/siddhu/scp/xen-4.13.0/tools/../tools/Rules.mk:237: recipe for target 'subdir-install-libxc' failed
make[3]: *** [subdir-install-libxc] Error 2
make[3]: Leaving directory '/home/siddhu/scp/xen-4.13.0/tools'
/home/siddhu/scp/xen-4.13.0/tools/../tools/Rules.mk:232: recipe for target 'subdirs-install' failed
make[2]: *** [subdirs-install] Error 2
make[2]: Leaving directory '/home/siddhu/scp/xen-4.13.0/tools'
Makefile:67: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/siddhu/scp/xen-4.13.0/tools'
Makefile:134: recipe for target 'install-tools' failed
make: *** [install-tools] Error 2

May I know what wrong I am doing here.
I am doing evrything on my laptop with ubuntu 18.04 OS.

Siddhartha V

On Thu, Apr 2, 2020 at 11:26 AM siddhartha v <siddhuvgowda.18695@xxxxxxxxx> wrote:
 I am trying to run the XEN hypervisor on Banana PI-M1 allwinner A20 dualcore board. 

I followed the steps mentioned in the INSTALL and Readme.txt file in the download.and installed most of the libraries mentioned there.

I am newbie here my understanding is, I should crosscompile it in native machine and write the executable to SD card then we need to boot the board. Is I am on right path? if not please correct me.

But later I came across a link where I read building the xen directly on board. I am confused here please can anybody lead me to the right path here. kind request.

But later Itried to crosscompile on local machine during "./configure --build=x86_64-unknown-linux-gnu --host=aarch64-linux-gnu" instruction, I got below log:

siddhu@siddhu:~/scp/xen-4.13.0$ ./configure --build=x86_64-unknown-linux-gnu --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:
configure: creating ./config.status
config.status: creating config/Toplevel.mk
config.status: creating config/Paths.mk
=== configuring in tools (/home/siddhu/scp/xen-4.13.0/tools)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  '--build=x86_64-unknown-linux-gnu' '--host=aarch64-linux-gnu' 'build_alias=x86_64-unknown-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... /usr/bin/bison
checking for flex... /usr/bin/flex
checking for perl... /usr/bin/perl
checking for awk... /usr/bin/awk
checking for aarch64-linux-gnu-ocamlc... no
checking for ocamlc... ocamlc
configure: WARNING: using cross tools not prefixed with host triplet
OCaml version is 4.05.0
OCaml library path is /usr/lib/ocaml
checking for aarch64-linux-gnu-ocamlopt... no
checking for ocamlopt... ocamlopt
checking for aarch64-linux-gnu-ocamlc.opt... no
checking for ocamlc.opt... ocamlc.opt
checking for aarch64-linux-gnu-ocamlopt.opt... no
checking for ocamlopt.opt... ocamlopt.opt
checking for aarch64-linux-gnu-ocaml... no
checking for ocaml... ocaml
checking for aarch64-linux-gnu-ocamldep... no
checking for ocamldep... ocamldep
checking for aarch64-linux-gnu-ocamlmktop... no
checking for ocamlmktop... ocamlmktop
checking for aarch64-linux-gnu-ocamlmklib... no
checking for ocamlmklib... ocamlmklib
checking for aarch64-linux-gnu-ocamldoc... no
checking for ocamldoc... ocamldoc
checking for aarch64-linux-gnu-ocamlbuild... no
checking for ocamlbuild... no
checking for aarch64-linux-gnu-ocamlfind... no
checking for ocamlfind... ocamlfind
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... python
checking for python... /usr/bin/python
checking for python... /usr/bin/python
checking for python version >= 2.6 ... yes
checking how to run the C preprocessor... aarch64-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for xgettext... /usr/bin/xgettext
checking for iasl... /usr/bin/iasl
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
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

Please guide me how can I run Xen on banana Pi M1 board. I just need to run the Xen with 2 domains i.e Dom-0 and D0m-U1

Any suggestions and guidance will help me a lot.

Siddhartha V


Thanks and Regards.
Siddhartha V.

Attachment: make_log
Description: Binary data

Attachment: configure_log
Description: Binary data

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.