All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems building caml-stubdom
@ 2008-08-06 22:33 Geoffrey Lefebvre
  2008-08-07  0:55 ` Samuel Thibault
  0 siblings, 1 reply; 7+ messages in thread
From: Geoffrey Lefebvre @ 2008-08-06 22:33 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com, Andrew Warfield, Patrick Colp

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

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

end of thread, other threads:[~2008-08-07 23:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 22:33 Problems building caml-stubdom Geoffrey Lefebvre
2008-08-07  0:55 ` Samuel Thibault
2008-08-07  6:56   ` Geoffrey Lefebvre
2008-08-07 10:58     ` Samuel Thibault
2008-08-07 17:25     ` [PATCH] caml-stubdom: turn off_t 64bit on x86 [Was: Problems building caml-stubdom] Samuel Thibault
2008-08-07 23:42       ` Geoffrey Lefebvre
2008-08-07 23:46         ` Samuel Thibault

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.