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

Re: Fwd: Re: Bug#424402: gcc: Endless loop while building a 64-bit 2.6.20 parisc kernel



On Sun, May 20, 2007 at 12:01:01PM +0200, Frans Pop wrote:
> Here is some information about and possible workarounds for the endless 
> loop while building 2.6.20 for HPPA.

I have a patch which makes it possible to specify extra cflags. Can
someone please test that?

Bastian

-- 
Those who hate and fight must stop themselves -- otherwise it is not stopped.
		-- Spock, "Day of the Dove", stardate unknown
=== debian/arch/hppa/defines
==================================================================
--- debian/arch/hppa/defines	(revision 3763)
+++ debian/arch/hppa/defines	(local)
@@ -1,9 +1,9 @@
 [base]
 flavours:
-# parisc
-# parisc-smp
-# parisc64
-# parisc64-smp
+ parisc
+ parisc-smp
+ parisc64
+ parisc64-smp
 kernel-arch: parisc
 kernel-header-dirs: parisc
 
@@ -17,10 +17,12 @@
 class: multiprocessor 32-bit PA-RISC
 
 [parisc64]
+cflags: -fno-cse-follow-jumps
 class: 64-bit PA-RISC
 override-host-type: hppa64-linux-gnu
 
 [parisc64-smp]
+cflags: -fno-cse-follow-jumps
 class: multiprocessor 64-bit PA-RISC
 override-host-type: hppa64-linux-gnu
 
=== debian/bin/gencontrol.py
==================================================================
--- debian/bin/gencontrol.py	(revision 3763)
+++ debian/bin/gencontrol.py	(local)
@@ -82,6 +82,7 @@
     def do_flavour_setup(self, vars, makeflags, arch, subarch, flavour, extra):
         vars.update(self.config.get(('image', arch, subarch, flavour), {}))
         for i in (
+            ('cflags', 'CFLAGS'),
             ('compiler', 'COMPILER'),
             ('image-postproc', 'IMAGE_POSTPROC'),
             ('initramfs', 'INITRAMFS',),
=== debian/rules.real
==================================================================
--- debian/rules.real	(revision 3763)
+++ debian/rules.real	(local)
@@ -139,6 +139,7 @@
 	echo 'CCACHE = ccache' >> '$(DIR)/.kernelvariables'
 	echo 'CC = $$(if $$(DEBIAN_KERNEL_USE_CCACHE),$$(CCACHE)) $$(CROSS_COMPILE)$(COMPILER)' >> '$(DIR)/.kernelvariables'
 	$(SETUP_DIR_HOST_TYPE)
+	echo 'EXTRA_CFLAGS += $(CFLAGS)'  >> '$(DIR)/.kernelvariables'
 	cd '$(DIR)'; $(setup_env) make reportoldconfig
 endef
 

Attachment: signature.asc
Description: Digital signature


Reply to: