[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xorg-x11 FTBFS on sparc



Hi,

xorg-x11 fails to build on sparc because the gcc -mv8 option, which was
already deprecated in gcc 3.3, is not present in gcc-4.0. It has been
replaced with -mcpu=v8.
Ubuntu fixed this by removing the -mv8 option. I also attach an
alternative patch which uses -mcpu=v8 instead of using the default
SPARC-V7 instruction set. I'll let you pick one :)
This doesn't seem to be fixed upstream yet.

Cheers,
Julien Cristau
diff -ruN xc-old/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile
--- xc-old/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile	2005-05-20 21:23:33.000000000 +0200
+++ xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile	2005-05-20 21:27:18.000000000 +0200
@@ -22,7 +22,7 @@
 #if AsOutputArchSize == 32
 #define FFBCObjectRule(name)						@@\
 name.o: name.c								@@\
-	ObjectCompile(-mv8 -mtune=ultrasparc \
+	ObjectCompile(-mtune=ultrasparc \
 		$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))		@@\
 	dd if=/dev/zero bs=1 count=3 2>/dev/null | \
 		dd of=$@ bs=1 count=3 seek=36 conv=notrunc 2>/dev/null	@@\
@@ -31,10 +31,10 @@
 		dd of=$@ bs=1 count=1 seek=19 conv=notrunc 2>/dev/null	@@\
 									@@\
 name.i: name.c								@@\
-	CPPOnlyCompile(name.c,-mv8 \
+	CPPOnlyCompile(name.c, \
 		$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))		@@\
 									@@\
-CenterLoadTarget(debug_src,name.c,NullParameter,$(ALLDEFINES) -mv8 \
+CenterLoadTarget(debug_src,name.c,NullParameter,$(ALLDEFINES) \
 	$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))
 #define FFBsObjectRule(name)						@@\
 name.o: name.s								@@\
Index: xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile
===================================================================
--- xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile	(revision 333)
+++ xc/programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile	(working copy)
@@ -22,7 +22,7 @@
 #if AsOutputArchSize == 32
 #define FFBCObjectRule(name)						@@\
 name.o: name.c								@@\
-	ObjectCompile(-mv8 -mtune=ultrasparc \
+	ObjectCompile(-mcpu=v8 -mtune=ultrasparc \
 		$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))		@@\
 	dd if=/dev/zero bs=1 count=3 2>/dev/null | \
 		dd of=$@ bs=1 count=3 seek=36 conv=notrunc 2>/dev/null	@@\
@@ -31,10 +31,10 @@
 		dd of=$@ bs=1 count=1 seek=19 conv=notrunc 2>/dev/null	@@\
 									@@\
 name.i: name.c								@@\
-	CPPOnlyCompile(name.c,-mv8 \
+	CPPOnlyCompile(name.c,-mcpu=v8 \
 		$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))		@@\
 									@@\
-CenterLoadTarget(debug_src,name.c,NullParameter,$(ALLDEFINES) -mv8 \
+CenterLoadTarget(debug_src,name.c,NullParameter,$(ALLDEFINES) -mcpu=v8 \
 	$(GCCVISOPTION) $(VISOPTIONS) $(DRIDEFINES))
 #define FFBsObjectRule(name)						@@\
 name.o: name.s								@@\

Reply to: