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

[Xen-devel] Problems building caml-stubdom


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Andrew Warfield" <andy@xxxxxxxxx>, "Patrick Colp" <pjcolp@xxxxxxxxx>
  • From: "Geoffrey Lefebvre" <geoffrey@xxxxxxxxx>
  • Date: Wed, 6 Aug 2008 15:33:42 -0700
  • Cc:
  • Delivery-date: Wed, 06 Aug 2008 15:34:07 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=cmEIwwoNeQ7MqXey2aGsvDGDIIsD3DaVuVeMvGcWWWhS5ALNSGHD+xItlV5UXzjE/H sKotPvvrCSiz8G1GTRpkROp0vf7MBsjqm0hofGPACcATQoArraEwufSNVlYiRCe62YMj YdBfuBd3AjNt58xgBQKGbx7xQW/Y/+/Ehuyek=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi all,

I am trying to build the ocaml stub domain and I am having some
compilation issues. I am getting a bunch of undefined references when
linking mini-os.o.

ld -nostdlib 
-L/research/geoffrey/xen/xen-unstable.hg/stubdom/cross-root-i686/i686-xen-elf/lib
 -m elf_i386 -T arch/x86/minios-x86_32.lds
/research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os.o
-o /research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os
/research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os.o:
In function `caml_sys_file_exists':
ungetc.c:(.text+0x14e0d): undefined reference to `__xstat'
/research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os.o:
In function `caml_executable_name':
ungetc.c:(.text+0x18ac9): undefined reference to `__xstat'
/research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os.o:
In function `caml_search_in_path':
ungetc.c:(.text+0x18d2f): undefined reference to `__xstat'
make[1]: *** 
[/research/geoffrey/xen/xen-unstable.hg/stubdom/mini-os-caml/mini-os]
Error 1
make[1]: Leaving directory
`/research/geoffrey/xen/xen-unstable.hg/extras/mini-os'


I have managed to get rid of other linking errors by building ocaml
with -fno-stack-protector and without large file support but I am
still having the linking issue above. I think i need to build the
ocaml runtime against newlib but how does one do that?

thanks,

geoffrey

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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