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

[Xen-devel] Error on make dist in xen-unstable


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Thu, 07 Mar 2013 10:11:27 +0100
  • Delivery-date: Thu, 07 Mar 2013 09:12:10 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Transfer-Encoding: Content-Type; b=o0q9lP8dpNQDKXtRk+vD0CwhpPn1bbij9yHbCGOFiWvsZvXQ7Yxtv2Xx BssspSk9ReehwiCiDQQGrgWcTL6MF0Gqst63YFOXhyu8tYSCqzo3/3NMr tQLGcvU8EMdMntk0ne+/lL7gOrTQNPiofELvwTQDWpfM4pP142LBA5QNR 5XtPx16oiH3/sRD+0zT9B/UyE4jDNVJyse5lDjCM+g43lFcsTNvG6VtnQ XlKZr51TWA4lbZLCPOeiTQk+yGTX0;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

I cloned a fresh xen-unstable tree and did:

# ./configure
# make dist
...
ld -r -d -nostdlib 
-L/home/hahn/Src/Xen/WorkingTree/xen-unstable.hg/stubdom/cross-root-x86_64/x86_64-xen-elf/lib
  -m elf_x86_64 -\( 
/home/hahn/Src/Xen/WorkingTree/xen-unstable.hg/stubdom/vtpm/vtpm.a app.lds -\) 
-ltpm -ltpm_crypto -lgmp -lpolarssl --undefined main -o 
/home/hahn/Src/Xen/WorkingTree/xen-unstable.hg/stubdom/mini-os-x86_64-vtpm/mini-os_app.o
ld: warning: app.lds contains output sections; did you forget -T?
ld: cannot find -lgmp
make[2]: *** 
[/home/hahn/Src/Xen/WorkingTree/xen-unstable.hg/stubdom/mini-os-x86_64-vtpm/mini-os_app.o]
 Error 1
make[2]: Leaving directory 
`/home/hahn/Src/Xen/WorkingTree/xen-unstable.hg/extras/mini-os'
make[1]: *** [vtpm-stubdom] Error 2

What I found is that libgmp gets built and stored in
.../stubdom/cross-root-x86_64/x86_64-xen-elf/lib64
while on linking only the path
.../stubdom/cross-root-x86_64/x86_64-xen-elf/lib
gets used where all other libs are located.

The solution for me was:

--- a/stubdom/Makefile  Thu Feb 28 09:22:41 2013 +0100
+++ b/stubdom/Makefile  Thu Mar 07 10:00:10 2013 +0100
@@ -47,7 +47,8 @@
 TARGET_CPPFLAGS += -I$(CURDIR)/include
 TARGET_CPPFLAGS += -I$(XEN_ROOT)/xen/include
 
-TARGET_LDFLAGS += -nostdlib -L$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib
+TARGET_LDFLAGS += -nostdlib -L$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib \
+                            -L$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf/lib64
 
 TARGETS=$(STUBDOM_TARGETS)

Id had this behavior on different machines but all with opensuse-12.2.
Do I something wrong in configure/compiling?
Thanks.

Dietmar.


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


 


Rackspace

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