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

Bug#323945: gcc-4.0: Please install 'altivec.h' on ppc64



Package: gcc-4.0
Version: 4.0.1-5
Severity: wishlist
Tags: patch

Currently the linux-2.6 kernel fails to build on ppc64
with the following error message:

  CC [M]  drivers/md/raid6altivec1.o
drivers/md/raid6altivec1.c:29:21: error: altivec.h: No such file or directory

Please change 'debian/rules.d/binary-gcc.mk' to install the missing
'altivec.h' include file on ppc64. This file is currently installed 
on powerpc only.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-gcc-cross.mk ./debian/rules.d/binary-gcc-cross.mk
--- ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-gcc-cross.mk	2005-08-19 11:45:29.000000000 +0000
+++ ./debian/rules.d/binary-gcc-cross.mk	2005-08-19 11:31:36.000000000 +0000
@@ -41,7 +41,7 @@
     files_gcc += $(gcc_lib_dir)/include/math-68881.h
 endif
 
-ifeq ($(DEB_TARGET_ARCH),powerpc)
+ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),powerpc ppc64))
     files_gcc += $(gcc_lib_dir)/include/{altivec.h,ppc-asm.h}
 endif
 
diff -urN ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-gcc.mk ./debian/rules.d/binary-gcc.mk
--- ../tmp-orig/gcc-4.0-4.0.1/debian/rules.d/binary-gcc.mk	2005-08-19 11:45:29.000000000 +0000
+++ ./debian/rules.d/binary-gcc.mk	2005-08-19 11:28:54.000000000 +0000
@@ -50,7 +50,7 @@
     files_gcc += $(gcc_lib_dir)/include/math-68881.h
 endif
 
-ifeq ($(DEB_HOST_ARCH),powerpc)
+ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),powerpc ppc64))
     files_gcc += $(gcc_lib_dir)/include/{altivec.h,ppc-asm.h}
 endif
 



Reply to: