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

2007-06-12 Thread seb
On Mon, Jun 11, 2007 at 06:27:45PM +0200, [EMAIL PROTECTED] wrote:
 Here is the diff from environnement :
 Package   | buildd vers   | current vers
 ---
 make  | 3.81.3| 3.81.3
 gawk  | 3.1.5.dfsg-4  | 3.1.5.dfsg-4
 intltool-debian   | 0.35.0+20060710.1 | 0.35.0+20060710.1
 gettext-base  | 0.16.1-1  | 0.16.1-1
 gettext   | 0.16.1-1  | 0.16.1-1
 autoconf  | 2.61-4| 2.61-4
 html2text | 1.3.2a-3+b1   | 1.3.2a-3+b1
 po-debconf| 1.0.8 | 1.0.8
 bzip2 | 1.0.3-7   | 1.0.3-7
 lzma  | 4.43-7| 4.43-7
 diffstat  | 1.43-2| 1.43-2
 m4| 1.4.9-1   | 1.4.9-1
 quilt | 0.46-2| 0.46-2
 --
 dpkg-dev  | 1.14.3| 1.14.4
 sed   | 4.1.5-1   | 4.1.5-2
 binutils  | 2.17cvs20070428-6 | 2.17cvs20070426-8
 gcc-4.1   | 4.1.2-7   | 4.1.2-11
 g++-4.1   | 4.1.2-7   | 4.1.2-12
 libstdc++6-4.1-dev | 4.1.2-7  | 4.1.2-12
 libstdc++6| 4.1.2-7   | 4.1.2-12
 libmagic1 | 4.20-8| 4.21-1
 file  | 4.20-8| 4.21-1
 debhelper   | 5.0.49  | 5.0.50
 linux-libc-dev| 3.6.21-2  | 2.6.21-4
 libc6-dev | 2.5-7 | 2.5-9
 --

We have a winner.
The glibc build breakage is the gcc fault.

The gcc-4.1 4.1.2-8 builds the package ok.
The gcc-4.1 4.1.2-11 is ko.

  Seb


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-06-12 Thread seb
On Tue, Jun 12, 2007 at 10:48:06AM +0200, [EMAIL PROTECTED] wrote:
 
 The gcc-4.1 4.1.2-8 builds the package ok.
 The gcc-4.1 4.1.2-11 is ko.
 
   Seb

Problem logged on debian bug #428509.

Seb


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [parisc-linux] -pie is broken on hppa

2007-06-12 Thread Kyle McMartin
On Sun, Jun 10, 2007 at 09:57:35AM -0500, James Bottomley wrote:
 This patch looks to be correct based on what's in
 fs/compat.c:compat_sys_getdents()/compat_filldir()
 

Indeed, looking carefully at what other architectures changed it looks
correct.

 But it does beg the question of why we're not using the generic compat
 code in the first place?
 

It likely didn't exist when that code was added, I'll look at a merge.

--Kyle


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-06-12 Thread Sébastien Bernard

[EMAIL PROTECTED] a écrit :

On Tue, Jun 12, 2007 at 10:48:06AM +0200, [EMAIL PROTECTED] wrote:

The gcc-4.1 4.1.2-8 builds the package ok.
The gcc-4.1 4.1.2-11 is ko.

  Seb


Problem logged on debian bug #428509.

Seb
___
parisc-linux mailing list
[EMAIL PROTECTED]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux


Here is the reduced diff. I removed anything that is unrelated to hppa,
C or anything.
The diff is between -7 and -12.
The diff is mere 300 lines long.
The problem lies here.


diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/configure gcc-4.1-4.1.2-12/src/configure
--- gcc-4.1-4.1.2-7/src/configure   2007-06-12 22:08:36.0 +0200
+++ gcc-4.1-4.1.2-12/src/configure  2006-11-21 18:48:36.0 +0100
@@ -16,8 +16,6 @@
 ac_help=$ac_help
   --enable-libsspBuilds libssp directory
 ac_help=$ac_help
-  --enable-libffiBuilds libffi directory
-ac_help=$ac_help
   --with-mpfr-dir=PATHSpecify source directory for MPFR library
 ac_help=$ac_help
   --with-mpfr=PATHSpecify directory for installed MPFR library
@@ -1109,20 +1107,6 @@
   noconfigdirs=$noconfigdirs target-libssp
 fi
 
-# Check whether --enable-libffi or --disable-libffi was given.
-if test ${enable_libffi+set} = set; then
-  enableval=$enable_libffi
-  ENABLE_LIBFFI=$enableval
-else
-  ENABLE_LIBFFI=yes
-fi
-
-if test ${ENABLE_LIBFFI} != yes ; then
-  noconfigdirs=$noconfigdirs target-libffi
-else
-  libgcj=`echo $libgcj | sed 's/target-libffi *//'`
-fi
-
 # Save it here so that, even in case of --enable-libgcj, if the Java
 # front-end isn't enabled, we still get libgcj disabled.
 libgcj_saved=$libgcj
diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/configure.in 
gcc-4.1-4.1.2-12/src/configure.in
--- gcc-4.1-4.1.2-7/src/configure.in2007-06-12 22:08:36.0 +0200
+++ gcc-4.1-4.1.2-12/src/configure.in   2006-11-21 18:48:36.0 +0100
@@ -315,16 +315,6 @@
   noconfigdirs=$noconfigdirs target-libssp
 fi
 
-AC_ARG_ENABLE(libffi,
-[  --enable-libffiBuilds libffi directory],
-ENABLE_LIBFFI=$enableval,
-ENABLE_LIBFFI=yes)
-if test ${ENABLE_LIBFFI} != yes ; then
-  noconfigdirs=$noconfigdirs target-libffi
-else
-  libgcj=`echo $libgcj | sed 's/target-libffi *//'`
-fi
-
 # Save it here so that, even in case of --enable-libgcj, if the Java
 # front-end isn't enabled, we still get libgcj disabled.
 libgcj_saved=$libgcj
diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/gcc/cgraphunit.c 
gcc-4.1-4.1.2-12/src/gcc/cgraphunit.c
--- gcc-4.1-4.1.2-7/src/gcc/cgraphunit.c2007-01-05 20:44:10.0 
+0100
+++ gcc-4.1-4.1.2-12/src/gcc/cgraphunit.c   2007-06-12 22:13:19.0 
+0200
@@ -1330,8 +1330,6 @@
   return;
 }
 
-  process_pending_assemble_externals ();
-  
   /* Frontend may output common variables after the unit has been finalized.
  It is safe to deal with them here as they are always zero initialized.  */
   cgraph_varpool_analyze_pending_decls ();
diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/gcc/combine.c 
gcc-4.1-4.1.2-12/src/gcc/combine.c
--- gcc-4.1-4.1.2-7/src/gcc/combine.c   2007-01-21 23:34:57.0 +0100
+++ gcc-4.1-4.1.2-12/src/gcc/combine.c  2007-06-12 22:12:56.0 +0200
@@ -5443,11 +5443,11 @@
  SUBST(SET_SRC (x), op0);
  src = SET_SRC (x);
 }
-  else
-   {
  /* Otherwise, update the COMPARE if needed.  */
- SUBST (XEXP (src, 0), op0);
- SUBST (XEXP (src, 1), op1);
+  else if (XEXP (src, 0) != op0 || XEXP (src, 1) != op1)
+   {
+ SUBST (SET_SRC (x), gen_rtx_COMPARE (compare_mode, op0, op1));
+ src = SET_SRC (x);
}
 }
   else
--- gcc-4.1-4.1.2-7/src/gcc/config/elfos.h  2006-08-01 00:08:47.0 
+0200
+++ gcc-4.1-4.1.2-12/src/gcc/config/elfos.h 2007-06-12 22:13:19.0 
+0200
@@ -494,3 +494,13 @@
 fprintf ((FILE), \\n);  \
 }  \
   while (0)
+
+/* A C statement (sans semicolon) to output to the stdio stream STREAM
+   any text necessary for declaring the name of an external symbol
+   named NAME whch is referenced in this compilation but not defined.
+   It is needed to properly support non-default visibility.  */
+
+#ifndef ASM_OUTPUT_EXTERNAL
+#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \
+  default_elf_asm_output_external (FILE, DECL, NAME)
+#endif
diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/gcc/config/t-libc-ok 
gcc-4.1-4.1.2-12/src/gcc/config/t-libc-ok
--- gcc-4.1-4.1.2-7/src/gcc/config/t-libc-ok2002-11-26 23:47:18.0 
+0100
+++ gcc-4.1-4.1.2-12/src/gcc/config/t-libc-ok   2007-06-12 22:13:19.0 
+0200
@@ -1 +1 @@
-CRTSTUFF_T_CFLAGS_S=-fPIC
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
diff -r -u -b -B -w gcc-4.1-4.1.2-7/src/gcc/config/t-netbsd 
gcc-4.1-4.1.2-12/src/gcc/config/t-netbsd
--- gcc-4.1-4.1.2-7/src/gcc/config/t-netbsd 2003-09-23 20:56:00.0 

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

2007-06-12 Thread John David Anglin
 Here is the reduced diff. I removed anything that is unrelated to hppa,
 C or anything.
 The diff is between -7 and -12.
 The diff is mere 300 lines long.
 The problem lies here.

The odds are the problem lies in the change to varasm.c.

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]