Re: [parisc-linux] glibc is broken because of gcc

Sébastien Bernard <[email protected]> Wed, 13 Jun 2007 22:39:47 +0200
Newsgroups gmane.linux.debian.ports.hppa,gmane.linux.ports.hppa
Message-ID <[email protected]>
[email protected] a écrit :
> On Wed, Jun 13, 2007 at 09:32:24AM -0400, John David Anglin wrote:
>>> I could remove this patch altogether. But I still wonder why this patch works
>>> ok on other archs and not on hppa*.
>> hppa* does a deferred generation of plabels for indirect function calls.
>> I think this is affected by the change.  I don't recall exactly but there
>> may have been a followup patch to fix this.  Of course, this change isn't
>> in the 4.1 GCC tree.
> 
> Ok, thanks for the explanations. I just have to figure out what it means now ;-).
> 
> Can I find this patch somewhere ? Is there any discussion on the ML ?
> The patch was discussed near January of this year on the gcc ML.
>> Dave
>> -- 
>> J. David Anglin                                  [email protected]
>> National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

Ok, I nailed it.
I removed PR20218 patch and generated a 4.1.2-12+b1 then build glibc.

Glibc build is ok now.
I think the hppa toolchain can move on and build the glibc-2.5-11 and 
then rebuild the portmap and all pie executable (pfeww... what a bug chain).

	Seb
diff-PR20218 (text/plain, 1.2 KB)
diff -r -u -b -B -w gcc-4.1-4.1.2-12/debian/changelog gcc-4.1-4.1.2-12+b1/debian/changelog
--- gcc-4.1-4.1.2-12/debian/changelog	2007-06-13 22:34:38.000000000 +0200
+++ gcc-4.1-4.1.2-12+b1/debian/changelog	2007-06-13 12:44:48.000000000 +0200
@@ -1,3 +1,9 @@
+gcc-4.1 (4.1.2-12+b1) unstable; urgency=low
+
+  * Revert 20218 patch that breaks gcc
+
+ -- Sebastien Bernard <[email protected]>  Wed, 13 Jun 2007 12:44:07 +0200
+
 gcc-4.1 (4.1.2-12) unstable; urgency=high
 
   * i386-biarch.dpatch: Update for the backport for PR target/31868.
diff -r -u -b -B -w gcc-4.1-4.1.2-12/debian/rules.patch gcc-4.1-4.1.2-12+b1/debian/rules.patch
--- gcc-4.1-4.1.2-12/debian/rules.patch	2007-06-13 22:34:38.000000000 +0200
+++ gcc-4.1-4.1.2-12+b1/debian/rules.patch	2007-06-13 12:45:06.000000000 +0200
@@ -41,8 +41,6 @@
 	fastjar-version \
 	fastjar-doc \
 	libstdc++-doxygen \
-	pr20218 \
-	pr20218-mips \
 	pr31868 \
 	arm-libffi \
 	libffi-backport \
@@ -112,10 +110,6 @@
   debian_patches += pr25524-doc pr26885-doc gcc-4.1-x86-blended-doc libjava-backport-updates2
 endif
 
-ifneq (,$(filter $(DEB_TARGET_ARCH), amd64 i386 powerpc ppc64 sparc s390))
-  debian_patches += pr20218
-endif
-
 ifeq ($(with_libffi),yes)
   debian_patches += \
 	libffi-configure