All of lore.kernel.org
 help / color / mirror / Atom feed
* Compiling Xen from source
@ 2020-09-15 20:16 David I
  2020-09-15 22:00 ` Andrew Cooper
  0 siblings, 1 reply; 13+ messages in thread
From: David I @ 2020-09-15 20:16 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 5636 bytes --]

Hello,

I am unable to mcompile xen-tools from source.

here is the "stacktrace":

ln -f xenstore xenstore-watch
gcc xenstore_control.o
 -Wl,-rpath-link=/home/david/xen/xen/tools/xenstore/../../tools/libs/toolcore
/home/david/xen/xen/tools/xenstore/../../tools/xenstore/libxenstore.so -ldl
 /home/david/xen/xen/tools/xenstore/../../tools/libs/toolcore/libxentoolcore.so
 -o xenstore-control
gcc  -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O2
-fomit-frame-pointer
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF
.xs_tdb_dump.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE   -Werror -I.
-include /home/david/xen/xen/tools/xenstore/../../tools/config.h
-I./include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/evtchn/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libxc/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/toollog/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/foreignmemory/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/devicemodel/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include -D__XEN_TOOLS__
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/toolcore/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-DXEN_LIB_STORED="\"/var/lib/xenstored\""
-DXEN_RUN_STORED="\"/var/run/xenstored\""   -c -o xs_tdb_dump.o
xs_tdb_dump.c
gcc  -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O2
-fomit-frame-pointer
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF
.utils.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE   -Werror -I. -include
/home/david/xen/xen/tools/xenstore/../../tools/config.h -I./include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/evtchn/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libxc/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/toollog/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/foreignmemory/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/devicemodel/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include -D__XEN_TOOLS__
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/toolcore/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include
-DXEN_LIB_STORED="\"/var/lib/xenstored\""
-DXEN_RUN_STORED="\"/var/run/xenstored\""
-I/home/david/xen/xen/tools/xenstore/../../tools/libs/gnttab/include
-I/home/david/xen/xen/tools/xenstore/../../tools/include  -c -o utils.o
utils.c
gcc xs_tdb_dump.o utils.o tdb.o talloc.o     -o xs_tdb_dump
/usr/bin/ld : utils.o:(.data.rel.local+0x0) : définitions multiples de
« xprintf »; xs_tdb_dump.o:(.bss+0x0) : défini pour la première fois ici
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:97 : xs_tdb_dump] Erreur 1
make[4] : on quitte le répertoire « /home/david/xen/xen/tools/xenstore »
make[3]: *** [/home/david/xen/xen/tools/../tools/Rules.mk:249 :
subdir-install-xenstore] Erreur 2
make[3] : on quitte le répertoire « /home/david/xen/xen/tools »
make[2]: *** [/home/david/xen/xen/tools/../tools/Rules.mk:244 :
subdirs-install] Erreur 2
make[2] : on quitte le répertoire « /home/david/xen/xen/tools »
make[1]: *** [Makefile:74 : install] Erreur 2
make[1] : on quitte le répertoire « /home/david/xen/xen/tools »
make: *** [Makefile:127 : install-tools] Erreur 2
david@debian:~/xen/xen$ uname -a
Linux debian 5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) x86_64
GNU/Linux
david@debian:~/xen/xen$ gcc --version
gcc (Debian 10.2.0-5) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

david@debian:~/xen/xen$ /usr/bin/ld --version
GNU ld (GNU Binutils for Debian) 2.35
Copyright (C) 2020 Free Software Foundation, Inc.
Ce logiciel est libre; si vous le redistribuez, vous devez le faire selon
les termes
de la licence GNU General Public License version 3 ou postérieure selon
votre besoin.
Ce logiciel n'est couvert par aucune GARANTIE.
david@debian:~/xen/xen$ git branch
  master
* stable-4.11
  staging
david@debian:~/xen/xen$

I was able to compile dist-xen correctly though. But dist-tools fails with
this error, I have seen a similar request here:
https://stackoverflow.com/questions/63525163/usr-bin-ld-utils-o-data-rel-local0x0-multiple-definition-of-xprintf-xs

I have tried to compile xen from source also on this same configuration,
in stable-4.12, stable-4.13, stable-4.14, each time I was able to  compile
xen but failed to compile xen-tools.
the debian package works fine and is in version 4.11.

So my question would be, is there a patch for this issue ? and how the
debian team could compile originally the debian source package ? I suppose
I am not the first user to encounter this.

Thank you for your answers ;-)

David

[-- Attachment #2: Type: text/html, Size: 6160 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Compiling Xen from source
@ 2013-06-10 15:41 Joshua Tuttle
  2013-06-10 15:51 ` Roger Pau Monné
  0 siblings, 1 reply; 13+ messages in thread
From: Joshua Tuttle @ 2013-06-10 15:41 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 2026 bytes --]

Hey,

I am new to both Xen and development in general and am running into some issues when trying to compile and install from source.
I have already been able to get Xen installed and working using apt-get, but since I want to be able to edit the source code, this will not
Be an option for install.

The first thing I noticed that was quite a bit different from installing from the package manager, was the difference in entries shown in grub.
When I installed Xen using apt-get, all I had was one entry for Xen in grub, which I would use this command to have it be default.

"dpkg-divert -divert /etc/grub.d/08_linux_xen -rename /etc/grub.d/20_linux_xen"

Now when installing from source, there are several entries, where only a couple of them will actually work.

After Xen is installed, I typically run the "xl info" command to ensure its running. However, when I try to run it after being compiled from source, I
Get this error:

"libxl: error: libxl.c:87: libxl_ctx_alloc: Is Xenstore daemon running?
Failed to stat /var/run/xenstored.pid
No such file or directory
Cannot init xl content"

I checked and that directory does not exist, but was able to start Xen manually by running xencommons in /etc/init.d

The problem with manually starting it though, is that it causes my terminal to quit echoing my input.

What do I need to do to resolve this error, and get Xen to automatically start?

Thanks for any help!
Josh



________________________________
This message and all attachments are PRIVATE, and contain information that is PROPRIETARY to Intelligent Automation, Inc. You are not authorized to transmit or otherwise disclose this message or any attachments to any third party whatsoever without the express written consent of Intelligent Automation, Inc. If you received this message in error or you are not willing to view this message or any attachments on a confidential basis, please immediately delete this email and any attachments and notify Intelligent Automation, Inc.

[-- Attachment #1.2: Type: text/html, Size: 3710 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-10-21 15:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-15 20:16 Compiling Xen from source David I
2020-09-15 22:00 ` Andrew Cooper
2020-09-15 22:34   ` Hans van Kranenburg
2020-09-16 13:22     ` David I
2020-09-16 13:51       ` David I
2020-09-16 16:12         ` Olaf Hering
2020-09-16 20:59           ` Hans van Kranenburg
2020-09-17 18:05             ` David I
2020-09-17 18:21               ` David I
2020-10-21 15:12             ` David I
  -- strict thread matches above, loose matches on Subject: below --
2013-06-10 15:41 Joshua Tuttle
2013-06-10 15:51 ` Roger Pau Monné
2013-06-10 16:11   ` jacek burghardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.