WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix x86_64 build with specified CFLAGS

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] fix x86_64 build with specified CFLAGS
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Thu, 2 Mar 2006 16:36:54 -0500 (EST)
Delivery-date: Thu, 02 Mar 2006 21:37:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
When building Xen, RPM passes in a bunch of CFLAGS.  Make sure to
remove the -m64 from the CFLAGS before compiling vmxloader and
hvmloader.

Note that this is not a question of building from RPM, even when
passing in empty CFLAGS this problem occurs.


Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- xen-3.0.1/tools/firmware/vmxassist/Makefile.m64     2006-02-28 
10:14:19.000000000 -0500
+++ xen-3.0.1/tools/firmware/vmxassist/Makefile 2006-03-02 10:49:53.000000000 
-0500
@@ -27,6 +27,9 @@
 DEFINES=-DDEBUG -DTEXTADDR=$(TEXTADDR)
 XENINC=-I$(XEN_ROOT)/tools/libxc
 
+# vmxloader is a 32 bit program
+CFLAGS=$(echo "$CFLAGS" | sed -e 's/ -m64//g')
+
 # Disable PIE/SSP if GCC supports them. They can break us.
 CFLAGS  += $(call test-gcc-flag,$(CC),-nopie)
 CFLAGS  += $(call test-gcc-flag,$(CC),-fno-stack-protector)
--- xen-3.0.1/tools/firmware/hvmloader/Makefile.m64     2006-03-02 
10:52:21.000000000 -0500
+++ xen-3.0.1/tools/firmware/hvmloader/Makefile 2006-03-02 10:52:54.000000000 
-0500
@@ -29,6 +29,9 @@
 
 OBJECTS         = hvmloader.o acpi_madt.o 
 
+# hvmloader is a 32 bit program
+CFLAGS=$(echo "$CFLAGS" | sed -e 's/ -m64//g')
+
 # Disable PIE/SSP if GCC supports them. They can break us.
 CFLAGS  += $(call test-gcc-flag,$(CC),-nopie)
 CFLAGS  += $(call test-gcc-flag,$(CC),-fno-stack-protector)

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

<Prev in Thread] Current Thread [Next in Thread>