Skip to contentSkip to conversation

glibc is broken because of gcc

parisc-linux John David Anglin 3 participants 4 messages Jun 13, 2007 – Jul 2, 2007 5 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines

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.

Dave

Signature · 6 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
#4 lore raw
In reply to a message not in the archive
Quoted 8 lines · [email protected] a écrit :
Quoted 6 lines · John David Anglin
Quoted 2 lines

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.

Quoted 8 lines

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.

Quoted 4 lines

Dave

Signature · 2 lines
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

debian/changelog +6 -0
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
@@ -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.
debian/rules.patch +0 -5
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
@@ -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
#6 lore raw
In reply to a message not in the archive

The proposed fix seems to be wrong, as it disables the backport on all architectures. Please could you recheck with current trunk? As jda suggested, another backport is missing for hppa.

Matthias

Quoted 6 lines · S=E9bastien Bernard writes:

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

=20
Glibc build is ok now.
I think the hppa toolchain can move on and build the glibc-2.5-11 and=

=20

Quoted 1 line

then rebuild the portmap and all pie executable (pfeww... what a bug =

chain).

Quoted 4 lines

=20
=09Seb
=20
diff -r -u -b -B -w gcc-4.1-4.1.2-12/debian/changelog gcc-4.1-4.1.2-1=

2+b1/debian/changelog

Quoted 1 line

--- gcc-4.1-4.1.2-12/debian/changelog=092007-06-13 22:34:38.000000000=

+0200

Quoted 1 line

+++ gcc-4.1-4.1.2-12+b1/debian/changelog=092007-06-13 12:44:48.000000=

000 +0200

Review line 5

Quoted 6 lines
(quoted diff) +5 -0
@@ -1,3 +1,9 @@
+gcc-4.1 (4.1.2-12+b1) unstable; urgency=3Dlow
+
+  * Revert 20218 patch that breaks gcc
+
+ -- Sebastien Bernard <[email protected]>  Wed, 13 Jun 2007 12:44:0=

7 +0200

Quoted 6 lines
(quoted diff) +1 -0
+
 gcc-4.1 (4.1.2-12) unstable; urgency=3Dhigh

=20
* 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

Quoted 1 line

--- gcc-4.1-4.1.2-12/debian/rules.patch=092007-06-13 22:34:38.0000000=

00 +0200

Quoted 1 line

+++ gcc-4.1-4.1.2-12+b1/debian/rules.patch=092007-06-13 12:45:06.0000=

00000 +0200

Review line 110

Quoted 11 lines
(quoted diff) +0 -2
@@ -41,8 +41,6 @@
 =09fastjar-version \
 =09fastjar-doc \
 =09libstdc++-doxygen \
-=09pr20218 \
-=09pr20218-mips \
 =09pr31868 \
 =09arm-libffi \
 =09libffi-backport \
@@ -112,10 +110,6 @@
   debian_patches +=3D pr25524-doc pr26885-doc gcc-4.1-x86-blended-do=

c libjava-backport-updates2

Quoted 3 lines
(quoted diff) +0 -0
 endif

=20
-ifneq (,$(filter $(DEB_TARGET_ARCH), amd64 i386 powerpc ppc64 sparc =

s390))

Quoted 10 lines
(quoted diff) +0 -3
-  debian_patches +=3D pr20218
-endif
-
 ifeq ($(with_libffi),yes)
   debian_patches +=3D \
 =09libffi-configure

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#8 lore raw
In reply to a message not in the archive
Quoted 6 lines · Matthias Klose

The proposed fix seems to be wrong, as it disables the backport on all architectures. Please could you recheck with current trunk? As jda suggested, another backport is missing for hppa.

Matthias

Oh well, I didn't say I got it all right.

I just said the problem was there.
I submited the bug to the gcc bugtracker and to the debian gcc, but I didn't submit this patch as a potential fix.
There was no reaction on either site.

If you watch carefuly, this patch is not applied against some archs :
-ifneq (,$(filter $(DEB_TARGET_ARCH), amd64 i386 powerpc ppc64 sparc s390))
- debian_patches += pr20218
-endif