[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Stubdom compilation fails
Hello, I'm trying to compile Xen 4.2.0 on Ubuntu 11.10 but it crashes when compiling the stubdom part. As he can't find stddef.h, he can't create libraries and finally crashes. You can find a sample of errors below : Making all in misc make[6]: entrant dans le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/misc » gcc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/../tools/xenstore -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86 -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/fremals/xen-4.2.0/stubdom/include -I/home/fremals/xen-4.2.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -fno-stack-protector -fno-exceptions -D_I386MACH_ALLOW_HW_INTERRUPTS -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/ -isystem /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/targ-include -isystem /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/x86_64 -L/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/libnosys -L/home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/libgloss/x86_64 -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.16.0\" -DPACKAGE_STRING=\"newlib\ 1.16.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib-1.16.0/newlib/libc/misc -O2 -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -g -g -O2 -c -o lib_a-__dprintf.o `test -f '__dprintf.c' || echo '../../../../../newlib-1.16.0/newlib/libc/misc/'`__dprintf.c In file included from /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include/sys/reent.h:14:0, from /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include/reent.h:48, from ../../../../../newlib-1.16.0/newlib/libc/misc/__dprintf.c:8: /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include/sys/_types.h:67:20: erreur fatale: stddef.h : Aucun fichier ou dossier de ce type compilation terminée. make[6]: *** [lib_a-__dprintf.o] Erreur 1 make[6]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/misc » Making all in machine make[6]: entrant dans le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine » Making all in x86_64 make[7]: entrant dans le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine/x86_64 » gcc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/../tools/xenstore -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86 -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/fremals/xen-4.2.0/stubdom/include -I/home/fremals/xen-4.2.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -fno-stack-protector -fno-exceptions -D_I386MACH_ALLOW_HW_INTERRUPTS -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/ -isystem /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/targ-include -isystem /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/x86_64 -L/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/libnosys -L/home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/libgloss/x86_64 -O2 -DMISSING_SYSCALL_NAMES -fno-builtin -c -o lib_a-setjmp.o `test -f 'setjmp.S' || echo '../../../../../../newlib-1.16.0/newlib/libc/machine/x86_64/'`setjmp.S gcc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/../tools/xenstore -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86 -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/fremals/xen-4.2.0/stubdom/include -I/home/fremals/xen-4.2.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -fno-stack-protector -fno-exceptions -D_I386MACH_ALLOW_HW_INTERRUPTS -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/ -isystem /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/targ-include -isystem /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/x86_64 -L/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/libnosys -L/home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/libgloss/x86_64 -O2 -DMISSING_SYSCALL_NAMES -fno-builtin -c -o lib_a-memcpy.o `test -f 'memcpy.S' || echo '../../../../../../newlib-1.16.0/newlib/libc/machine/x86_64/'`memcpy.S gcc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/../tools/xenstore -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86 -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/fremals/xen-4.2.0/stubdom/../extras/mini-os/include/posix -isystem /home/fremals/xen-4.2.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include -isystem /home/fremals/xen-4.2.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/fremals/xen-4.2.0/stubdom/include -I/home/fremals/xen-4.2.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -fno-stack-protector -fno-exceptions -D_I386MACH_ALLOW_HW_INTERRUPTS -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/ -isystem /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/targ-include -isystem /home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/newlib/libc/include -B/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/x86_64 -L/home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/libgloss/libnosys -L/home/fremals/xen-4.2.0/stubdom/newlib-1.16.0/libgloss/x86_64 -O2 -DMISSING_SYSCALL_NAMES -fno-builtin -c -o lib_a-memset.o `test -f 'memset.S' || echo '../../../../../../newlib-1.16.0/newlib/libc/machine/x86_64/'`memset.S rm -f lib.a ar cru lib.a lib_a-setjmp.o lib_a-memcpy.o lib_a-memset.o ranlib lib.a make[7]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine/x86_64 » Making all in . make[7]: entrant dans le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine » rm -f lib.a ln x86_64/lib.a lib.a >/dev/null 2>/dev/null || \ cp x86_64/lib.a lib.a make[7]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine » make[6]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc/machine » Making all in . make[6]: entrant dans le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc » rm -f libc.a rm -rf tmp mkdir tmp cd tmp; \ for i in argz/lib.a stdlib/lib.a ctype/lib.a search/lib.a stdio/lib.a string/lib.a signal/lib.a time/lib.a locale/lib.a reent/lib.a errno/lib.a misc/lib.a machine/lib.a ; do \ ar x ../$i; \ done; \ ar rc ../libc.a *.o ar: ../argz/lib.a: No such file or directory ar: ../stdlib/lib.a: No such file or directory ar: ../ctype/lib.a: No such file or directory ar: ../search/lib.a: No such file or directory ar: ../stdio/lib.a: No such file or directory ar: ../string/lib.a: No such file or directory ar: ../signal/lib.a: No such file or directory ar: ../time/lib.a: No such file or directory ar: ../locale/lib.a: No such file or directory ar: ../reent/lib.a: No such file or directory ar: ../errno/lib.a: No such file or directory ar: ../misc/lib.a: No such file or directory ranlib libc.a rm -rf tmp make[6]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc » make[5]: *** [all-recursive] Erreur 1 make[5]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib/libc » make[4]: *** [all-recursive] Erreur 1 make[4]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib » make[3]: *** [all] Erreur 2 make[3]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64/x86_64-xen-elf/newlib » make[2]: *** [all-target-newlib] Erreur 2 make[2]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64 » make[1]: *** [all] Erreur 2 make[1]: quittant le répertoire « /home/fremals/xen-4.2.0/stubdom/newlib-x86_64 » make: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] Erreur 2 I searched on google, but no solutions were proposed. I exported the path to stddef.h : export CPPFLAGS=-I/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/ But now, I have a new error concerning the code of Xen : /home/fremals/xen-4.2.0/stubdom/mini-os-x86_64-c/test.o: In function `app_main': /home/fremals/xen-4.2.0/extras/mini-os/test.c:441: multiple definition of `app_main' /home/fremals/xen-4.2.0/stubdom/mini-os-x86_64-c/main.o:/home/fremals/xen-4.2.0/extras/mini-os/main.c:187: first defined here make[1]: *** [/home/fremals/xen-4.2.0/stubdom/mini-os-x86_64-c/mini-os] Erreur 1 make[1]: quittant le répertoire « /home/fremals/xen-4.2.0/extras/mini-os » make: *** [c-stubdom] Erreur 2 Can you please help me to resolve these errors please ? Thank you !! Best regards, Sebastien Fremal _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |