compilation trouble with latest xen
While building xen itself:
ld -melf_i386 -T xen.lds -N \
boot/x86_32.o/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/built_in.o /home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/drivers/built_in.o /home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o \
/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/symbols-dummy.o
-o/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/.xen-syms.0 /home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/built_in.o:
In function `strstr':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/string.c:431:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `emulate_forced_invalid_op':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:563:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:573:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `do_invalid_op':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:629:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `dmi_iterate':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/dmi_scan.c:120:
undefined reference to `memcmp' /home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/mpparse.c:383:
more undefined references to `memcmp' follow
This is happening on mandriva cooker 32 bits, with gcc-4.2.1 and glibc 2.6 and 2.6.21 kernel headers.
Signature · 3 lines
Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62
Quoted 33 lines · Guillaume Rousse
While building xen itself:
ld -melf_i386 -T xen.lds -N \ boot/x86_32.o
/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/built_in.o/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/drivers/built_in.o/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o\
/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/symbols-dummy.o
-o/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/.xen-syms.0/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/built_in.o:
In function `strstr':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/common/string.c:431:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `emulate_forced_invalid_op':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:563:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:573:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `do_invalid_op':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/traps.c:629:
undefined reference to `memcmp'/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:
In function `dmi_iterate':/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/dmi_scan.c:120:
undefined reference to `memcmp' /home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/built_in.o:/home/guillomovitch/cooker/xen-uptodate/BUILD/xen-3.1.0-src/xen/arch/x86/mpparse.c:383:
more undefined references to `memcmp' follow
Quoted 2 lines
This is happening on mandriva cooker 32 bits, with gcc-4.2.1 and glibc 2.6 and 2.6.21 kernel headers.
I suspect this is more to do with the compiler than Xen.
Have you successfully compiled any other version of Xen?
I know that gcc-4.1.1 works OK for 3.1.0.
--
Mats
Quoted 9 lines
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines · Guillaume Rousse
This is happening on mandriva cooker 32 bits, with gcc-4.2.1 and glibc 2.6 and 2.6.21 kernel headers.
Where do these Xen bits come from? If you 'hg clone
http://xenbits.xensource.com/xen-unstable.hg' and 'make xen' inside the resulting directory, do you get the same problem?
-- Keir
Quoted 11 lines · Keir Fraser
Quoted 2 lines · Guillaume Rousse
This is happening on mandriva cooker 32 bits, with gcc-4.2.1 and glibc 2.6 and 2.6.21 kernel headers.
Where do these Xen bits come from?
From 3.1 source tarball.If you 'hg clone
http://xenbits.xensource.com/xen-unstable.hg' and 'make xen' inside the resulting directory, do you get the same problem?
Actually, the pb doesn't comes from xen itself, but from rpm building procedure (parallel build and specific optflags): building manually xen doesn't trigger the error. So I doubt using unstable version would help.
Signature · 3 lines
Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62
Quoted 6 lines · Guillaume Rousse
Quoted 3 lines
If you 'hg clone
http://xenbits.xensource.com/xen-unstable.hg' and 'make xen' inside the resulting directory, do you get the same problem?Actually, the pb doesn't comes from xen itself, but from rpm building procedure (parallel build and specific optflags): building manually xen doesn't trigger the error. So I doubt using unstable version would help.
There are two lines in xen/include/asm-x86/string.h relating to memcmp and __HAVE_ARCH_MEMCP. If you comment them out then your build will probably work.
-- Keir