* [PATCH] ioemu breaks build
@ 2005-05-22 23:21 Anthony Liguori
2005-05-23 0:56 ` Anthony Liguori
[not found] ` <mailman.1116809810.30036@unix-os.sc.intel.com>
0 siblings, 2 replies; 3+ messages in thread
From: Anthony Liguori @ 2005-05-22 23:21 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]
The following patch fixes the following build failure:
gcc -Wl,-T,/home/xen/builds/200505221736/xen-unstable/tools/ioemu/GenuineIntel.ld -o qemu-dm vl.o exec.o monitor.o osdep.o block.o readline.o pci.o console.o block-cloop.o ide.o ne2000.o pckbd.o vga.o dma.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o sdl.o libqemu.a -lm -L../../../dist/install/usr/lib -lxc -lxutil -lz -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -lX11 -lXext -lvga -lutil
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot open linker script file /home/xen/builds/200505221736/xen-unstable/tools/ioemu/GenuineIntel.ld: No such file or directory
collect2: ld returned 1 exit status
make[5]: *** [qemu-dm] Error 1
make[5]: Leaving directory `/home/xen/builds/200505221736/xen-unstable/tools/ioemu/target-i386-dm'
make[4]: *** [all] Error 1
I've confirmed the build for x86_32. I do not have VMX hardware though
so that's all I can do.
Regards,
Anthony Liguori
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
[-- Attachment #2: ioemu_ld.diff --]
[-- Type: text/x-patch, Size: 521 bytes --]
diff -ur xen-unstable-orig/tools/ioemu/target-i386-dm/Makefile xen-unstable/tools/ioemu/target-i386-dm/Makefile
--- xen-unstable-orig/tools/ioemu/target-i386-dm/Makefile 2005-05-21 22:31:42.000000000 -0500
+++ xen-unstable/tools/ioemu/target-i386-dm/Makefile 2005-05-22 18:14:49.727960384 -0500
@@ -300,7 +300,7 @@
ifdef CONFIG_STATIC
VL_LDFLAGS+=-static
endif
-VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(HOST_ARCH).ld
+VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(TARGET_ARCH).ld
ifndef CONFIG_DARWIN
ifndef CONFIG_WIN32
VL_LIBS=-lutil
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ioemu breaks build
2005-05-22 23:21 [PATCH] ioemu breaks build Anthony Liguori
@ 2005-05-23 0:56 ` Anthony Liguori
[not found] ` <mailman.1116809810.30036@unix-os.sc.intel.com>
1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2005-05-23 0:56 UTC (permalink / raw)
To: xen-devel
Just a little more info.
The root cause of the problem is that HOST_ARCH is being set to `uname -i`.
On fedora, this produces "i386". On Gentoo, this produces vendor_id
from /proc/cpuinfo.
A better fix may be to set HOST_ARCH to i386 explicitly. Since ioemu
doesn't build for x86_32 this seems reasonable.
Regards,
Anthony Liguori
Anthony Liguori wrote:
> The following patch fixes the following build failure:
>
> gcc
> -Wl,-T,/home/xen/builds/200505221736/xen-unstable/tools/ioemu/GenuineIntel.ld
> -o qemu-dm vl.o exec.o monitor.o osdep.o block.o readline.o pci.o
> console.o block-cloop.o ide.o ne2000.o pckbd.o vga.o dma.o fdc.o
> mc146818rtc.o serial.o i8259.o i8254.o pc.o sdl.o libqemu.a -lm
> -L../../../dist/install/usr/lib -lxc -lxutil -lz -L/usr/lib
> -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -lasound -lX11 -lXext
> -lvga -lutil
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
> cannot open linker script file
> /home/xen/builds/200505221736/xen-unstable/tools/ioemu/GenuineIntel.ld:
> No such file or directory
> collect2: ld returned 1 exit status
> make[5]: *** [qemu-dm] Error 1
> make[5]: Leaving directory
> `/home/xen/builds/200505221736/xen-unstable/tools/ioemu/target-i386-dm'
> make[4]: *** [all] Error 1
>
> I've confirmed the build for x86_32. I do not have VMX hardware
> though so that's all I can do.
>
> Regards,
>
> Anthony Liguori
>
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>
>------------------------------------------------------------------------
>
>diff -ur xen-unstable-orig/tools/ioemu/target-i386-dm/Makefile xen-unstable/tools/ioemu/target-i386-dm/Makefile
>--- xen-unstable-orig/tools/ioemu/target-i386-dm/Makefile 2005-05-21 22:31:42.000000000 -0500
>+++ xen-unstable/tools/ioemu/target-i386-dm/Makefile 2005-05-22 18:14:49.727960384 -0500
>@@ -300,7 +300,7 @@
> ifdef CONFIG_STATIC
> VL_LDFLAGS+=-static
> endif
>-VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(HOST_ARCH).ld
>+VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(TARGET_ARCH).ld
> ifndef CONFIG_DARWIN
> ifndef CONFIG_WIN32
> VL_LIBS=-lutil
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <mailman.1116809810.30036@unix-os.sc.intel.com>]
end of thread, other threads:[~2005-05-23 5:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-22 23:21 [PATCH] ioemu breaks build Anthony Liguori
2005-05-23 0:56 ` Anthony Liguori
[not found] ` <mailman.1116809810.30036@unix-os.sc.intel.com>
2005-05-23 5:54 ` Arun Sharma
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.