glibc-2.3.3: a warning with gcc-3.3 become an error with gcc-3.5
Hi all,
As the title mail said, the following warning with gcc-3.3:../sysdeps/hppa/fpu/feupdateenv.c: In function `feupdateenv':../sysdeps/hppa/fpu/feupdateenv.c:31: warning: assignment of read-only member `__status_word'
become an error with gcc-3.5:../sysdeps/hppa/fpu/feupdateenv.c: In function `feupdateenv':../sysdeps/hppa/fpu/feupdateenv.c:31: error: assignment of read-only member `__status_word'
make[2]: *** [/Develop/parisc-linux/build/glibc/math/feupdateenv.o] Error 1
make[2]: Leaving directory `/Develop/parisc-linux/sources/glibc-2.3.3-20040301/math' make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/Develop/parisc-linux/sources/glibc-2.3.3-20040301'
make: *** [all] Error 2
And regarding the definition of feupdateenv():
int
feupdateenv (const fenv_t *envp)
[snip]
I couldn't blame gcc.
So I would suggest to use sysdeps/mips/fpu/feupdateenv.c as model:
int
feupdateenv (const fenv_t *envp)
{
int temp;
/* Save current exceptions. */ _FPU_GETCW (temp); temp &= FE_ALL_EXCEPT; /* Install new environment. */ fesetenv (envp);
/* Raise the safed exception. Incidently for us the implementation
defined format of the values in objects of type fexcept_t is the same as the ones specified using the FE_* constants. */
feraiseexcept (temp);
/* Success. */
return 0;
}
but replacing:
* 'int temp;' by 'fenv_t *temp;'
* '_FPU_GETCW (temp);' by 'fegetenv(temp);' (as we don't have _FPU_GETCW()
)
But not sure it's the best solution.
Thanks in advance for all advise,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 19,50 €/mois, pendant 3 mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr
Quoted 2 lines · Joel Soete
But not sure it's the best solution.
Thanks in advance for all advise,
Show me a patch.
c.
Quoted 3 lines
Show me a patch.
something like this perhaps?
feupdateenv.c renamed from feupdateenv.c.orig +6 -1
@@ -28,11 +28,16 @@/* Get the current exception status. */ __asm__ ("fstd %%fr0,0(%1)" :"=m" (*sw) :"r" (sw)); sw[0 ] &=FE_ALL_EXCEPT ; - envp->__status_word = envp->__status_word | sw[0 ]; +/* envp->__status_word = envp->__status_word | sw[0]; */ /* Install new environment. */ fesetenv (envp); +/* Raise the safed exception. Incidently for us the implementation +defined format of the values in objects of type fexcept_t is the +same as the ones specified using the FE_* constants. */ +feraiseexcept (sw[0 ]); +/* Success. */ return 0 ; }
Thanks in advance for attention,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 19,50 €/mois, pendant 3 mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr
Quoted 1 line · Joel Soete
+ /* Raise the safed exception. Incidently for us the implementation
"saved exception" or "safe exception"?
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain
Joel,
Could you lookup the C99 specification please?
feupdateenv.c line 31
Quoted 8 lines
feupdateenv.c renamed from feupdateenv.c.orig +1
-1@@ -28,11 +28,16 @@/* Get the current exception status. */ __asm__ ("fstd %%fr0,0(%1)" :"=m" (*sw) :"r" (sw)); sw[0 ] &=FE_ALL_EXCEPT ; - envp->__status_word = envp->__status_word | sw[0 ]; +/* envp->__status_word = envp->__status_word | sw[0]; */
This is required to set the flags. Please review the specfications.
feupdateenv.c line 40
Quoted 8 lines
feupdateenv.c renamed from feupdateenv.c.orig +5
-0/* Install new environment. */ fesetenv (envp); +/* Raise the safed exception. Incidently for us the implementation +defined format of the values in objects of type fexcept_t is the +same as the ones specified using the FE_* constants. */ +feraiseexcept (sw[0 ]); +
AFAIK, this is not correct, the spec says that it will be an OR of the raised exceptions, e.g. an OR of the raised flags.
Calling feraiseexcept could fault the program.
feupdateenv.c line 43
Quoted 3 lines
feupdateenv.c renamed from feupdateenv.c.orig +0
-0/* Success. */ return 0 ; }
c.
Quoted 28 lines · Carlos O'Donell
Joel,
Could you lookup the C99 specification please?
feupdateenv.c line 31
Quoted 8 lines
feupdateenv.c renamed from feupdateenv.c.orig +1
-1@@ -28,11 +28,16 @@/* Get the current exception status. */ __asm__ ("fstd %%fr0,0(%1)" :"=m" (*sw) :"r" (sw)); sw[0 ] &=FE_ALL_EXCEPT ; - envp->__status_word = envp->__status_word | sw[0 ]; +/* envp->__status_word = envp->__status_word | sw[0]; */ This is required to set the flags. Please review the specfications.
feupdateenv.c line 39
Quoted 8 lines
feupdateenv.c renamed from feupdateenv.c.orig +5
-0/* Install new environment. */ fesetenv (envp); +/* Raise the safed exception. Incidently for us the implementation +defined format of the values in objects of type fexcept_t is the +same as the ones specified using the FE_* constants. */ +feraiseexcept (sw[0 ]); +
Quoted 10 lines
AFAIK, this is not correct, the spec says that it will be an OR of the raised exceptions, e.g. an OR of the raised flags.
Calling feraiseexcept could fault the program.
Quoted 3 lines
feupdateenv.c renamed from feupdateenv.c.orig +0
-0/* Success. */ return 0 ; }
Taken into account of your relevant remarks here is my new proposal:
=========><=========
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +6 -5
@@ -23,15 +23,16 @@ int feupdateenv (const fenv_t *envp) { - unsigned int sw[2]; + struct fenv_t saved_env, new_env; /* Get the current exception status. */ - __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= FE_ALL_EXCEPT; - envp->__status_word = envp->__status_word | sw[0]; + fegetenv(&saved_env); + saved_env.__status_word &= FE_ALL_EXCEPT; + new_env.__status_word = envp->__status_word | saved_env.__status_word; + for (i = 0; i < 7; i++) new_env.__exception[i] = envp->__exception[i]; /* Install new environment. */ - fesetenv (envp); + fesetenv (&new_env); /* Success. */ return 0;
=========><=========
Joel
Quoted 5 lines · Joel Soete
Taken into account of your relevant remarks here is my new proposal:
=========><=========
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 line 31
Quoted 10 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-4@@ -23,15 +23,16 @@ int feupdateenv (const fenv_t *envp) { - unsigned int sw[2]; + struct fenv_t saved_env, new_env; /* Get the current exception status. */ - __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= FE_ALL_EXCEPT; - envp->__status_word = envp->__status_word | sw[0];
Yeah, this is bad, because 'envp' is const, and we shouldn't be changing its value.
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 line 32
Quoted 4 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +4
-0+ fegetenv(&saved_env); + saved_env.__status_word &= FE_ALL_EXCEPT; + new_env.__status_word = envp->__status_word | saved_env.__status_word; + for (i = 0; i < 7; i++) new_env.__exception[i] = envp->__exception[i];
Why do you use "new_env" at all? Just use saved_env. Then you don't have to have a silly loop to copy the exceptions, they'll already be there. Then you can call fesetenv(&saved_env);
Quoted 7 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-1/* Install new environment. */ - fesetenv (envp); + fesetenv (&new_env); /* Success. */ return 0;=========><=========
c.
Quoted 23 lines · Carlos O'Donell
Quoted 8 lines · Joel Soete
Taken into account of your relevant remarks here is my new proposal:
=========><=========hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +0
-0@@ -23,15 +23,16 @@int
feupdateenv (constfenv_t*envp)
{hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100
Quoted 7 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-4- unsigned int sw[2]; + struct fenv_t saved_env, new_env; /* Get the current exception status. */ - __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= FE_ALL_EXCEPT; - envp->__status_word = envp->__status_word | sw[0];Yeah, this is bad, because 'envp' is const, and we shouldn't be changing its value.
Quoted 7 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100
Quoted 4 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +4
-0+ fegetenv(&saved_env); + saved_env.__status_word &= FE_ALL_EXCEPT; + new_env.__status_word = envp->__status_word | saved_env.__status_word; + for (i = 0; i < 7; i++) new_env.__exception[i] = envp->__exception[i];Why do you use "
new_env" at all?
The reason is very simple: I just begin with glibc and my knowledge is still at stone age in this field.
This is an evidence that sun appears red in the early morning or at the end of the evening but white for the rest of a suny day, why? The same here, hppa don't need feraiseexcept() but the alpha, i386, ia64, m68k, mips, (ppc), s390 and sparc need and I don't yet understand why ;)
Quoted 13 lines
Just use
saved_env. Then you don't have
to have a silly loop to copy the exceptions, they'll already be there. Then you can callfesetenv(&saved_env);Quoted 7 lines
/* Install new environment. */
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-1- fesetenv (envp); + fesetenv (&new_env); /* Success. */ return 0;=========><=========
I will send you another patch which take into account your relevant remarks.
In the mean time I encounter this new pb:
/Sources/parisc-linux/xc/bin/hppa-linux-gcc dl-sym.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/Sources/parisc-linux/build/glibc/elf -I.. -I../libio -I/Sources/parisc-linux/build/glibc -I../sysdeps/hppa/elf -I../linuxthreads/sysdeps/unix/sysv/linux/hppa -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/hppa -I../sysdeps/unix/sysv/linux/hppa -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/hppa/hppa1.1 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/hppa/fpu -I../sysdeps/hppa -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /Sources/parisc-linux/xc/lib/gcc/hppa-linux/3.5.0/include -isystem /Sources/parisc-linux/sources/linux/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /Sources/parisc-linux/build/glibc/elf/dl-sym.o -MD -MP -MF
/Sources/parisc-linux/build/glibc/elf/dl-sym.o.dt
In file included from dl-sym.c:27:../sysdeps/generic/dl-tls.h:2:2: #error "architecture-specific version of <dl-tls.h> missing" make[2]: *** [/Sources/parisc-linux/build/glibc/elf/dl-sym.o] Error 1
make[2]: Leaving directory `/Sources/parisc-linux/sources/glibc-2.3.3-20040306/elf' make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/Sources/parisc-linux/sources/glibc-2.3.3-20040306'
make: *** [all] Error 2
and would suggest this patch:
dl-sym.c 2004-03-07 11:41:21.219605000 +0100 renamed from dl-sym.c.orig 2004-03-07 11:44:11.219605000 +0100 +2 -2
@@ -24,10 +24,10 @@ #include <dlfcn.h> #include <ldsodefs.h> #include <dl-hash.h> -#include <dl-tls.h> - #if defined USE_TLS && defined SHARED +#include <dl-tls.h> + /* Systems which do not have tls_index also probably have to define DONT_USE_TLS_INDEX. */
=========><=========
Thanks,
Joel
Quoted 8 lines · Joel Soete
Quoted 1 line
Why do you use "
new_env" at all?The reason is very simple: I just begin with glibc and my knowledge is still at stone age in this field.
This is an evidence that sun appears red in the early morning or at the end of the evening but white for the rest of a suny day, why?
The same here, hppa don't needferaiseexcept()but the alpha, i386, ia64, m68k, mips, (ppc), s390 and sparc need and I don't yet understand why ;)
Because our feraiseexcept() is different from theirs?
Quoted 38 lines
In the mean time I encounter this new pb:
/Sources/parisc-linux/xc/bin/hppa-linux-gccdl-sym.c-c -std=gnu99 -O2(quoted diff) +0
-15-Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/Sources/parisc-linux/build/glibc/elf -I.. -I../libio -I/Sources/parisc-linux/build/glibc -I../sysdeps/hppa/elf -I../linuxthreads/sysdeps/unix/sysv/linux/hppa -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/hppa -I../sysdeps/unix/sysv/linux/hppa -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/hppa/hppa1.1 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/hppa/fpu -I../sysdeps/hppa -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem/Sources/parisc-linux/xc/lib/gcc/hppa-linux/3.5.0/include -isystem /Sources/parisc-linux/sources/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h-o
/Sources/parisc-linux/build/glibc/elf/dl-sym.o -MD -MP -MF /Sources/parisc-linux/build/glibc/elf/dl-sym.o.dt
In file included from dl-sym.c:27:../sysdeps/generic/dl-tls.h:2:2: #error "architecture-specific version of <dl-tls.h> missing"
make[2]: *** [/Sources/parisc-linux/build/glibc/elf/dl-sym.o] Error 1 make[2]: Leaving directory `/Sources/parisc-linux/sources/glibc-2.3.3-20040306/elf' make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/Sources/parisc-linux/sources/glibc-2.3.3-20040306'
make: *** [all] Error 2and would suggest this patch:
dl-sym.c 2004-03-07 11:41:21.219605000 +0100 renamed from dl-sym.c.orig 2004-03-07 11:44:11.219605000 +0100 +0
-0@@ -24,10 +24,10 @@ #include <dlfcn.h>
dl-sym.c 2004-03-07 11:41:21.219605000 +0100 line 32
Quoted 10 lines
dl-sym.c 2004-03-07 11:41:21.219605000 +0100 renamed from dl-sym.c.orig 2004-03-07 11:44:11.219605000 +0100 +2
-2#include <ldsodefs.h> #include <dl-hash.h> -#include <dl-tls.h> - #if defined USE_TLS && defined SHARED +#include <dl-tls.h> + /* Systems which do not have tls_index also probably have to define DONT_USE_TLS_INDEX. */
I'm doing a build right now, if I see this issue I'll report it upstream with this fix.
c.
Carlos,
Quoted 29 lines · Carlos O'Donell
Quoted 8 lines · Joel Soete
Taken into account of your relevant remarks here is my new proposal:
=========><=========hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +0
-0@@ -23,15 +23,16 @@int
feupdateenv (constfenv_t*envp)
{hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100
Quoted 7 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-4- unsigned int sw[2]; + struct fenv_t saved_env, new_env; /* Get the current exception status. */ - __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= FE_ALL_EXCEPT; - envp->__status_word = envp->__status_word | sw[0];Yeah, this is bad, because 'envp' is const, and we shouldn't be changing its value.
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100
Quoted 4 lines
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +4
-0+ fegetenv(&saved_env); + saved_env.__status_word &= FE_ALL_EXCEPT; + new_env.__status_word = envp->__status_word | saved_env.__status_word; + for (i = 0; i < 7; i++) new_env.__exception[i] = envp->__exception[i];
Quoted 13 lines
Why do you use "
new_env" at all? Just usesaved_env. Then you don't have to have a silly loop to copy the exceptions, they'll already be there. Then you can callfesetenv(&saved_env);Quoted 7 lines
/* Install new environment. */
hppa/fpu/feupdateenv.c 2004-03-06 21:22:21.839605000 +0100 renamed from hppa/fpu/feupdateenv.c.orig 2004-03-06 21:18:40.789605000 +0100 +1
-1- fesetenv (envp); + fesetenv (&new_env); /* Success. */ return 0;=========><=========
Taken into account of your remarks here is the final patch:
sysdeps/hppa/fpu/feupdateenv.c 2004-03-14 12:06:13.286349000 +0100 renamed from sysdeps/hppa/fpu/feupdateenv.c.orig 2003-12-18 04:57:50.000000000 +0100 +5 -5
@@ -23,15 +23,15 @@ int feupdateenv (const fenv_t *envp) { - unsigned int sw[2]; + fenv_t tmp_env; /* Get the current exception status. */ - __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); - sw[0] &= FE_ALL_EXCEPT; - envp->__status_word = envp->__status_word | sw[0]; + fegetenv(&tmp_env); + tmp_env.__status_word &= FE_ALL_EXCEPT; + tmp_env.__status_word |= envp->__status_word; /* Install new environment. */ - fesetenv (envp); + fesetenv (&tmp_env); /* Success. */ return 0;
=========><=========
it compiles well with gcc-3.3.
I hope it will not break anything :)
Joel
Quoted 2 lines · Joel Soete
it compiles well with gcc-3.3.
I hope it will not break anything :)
Hope?? What does the testsuite for glibc say?
c.
Quoted 8 lines · Carlos O'Donell
Quoted 2 lines · Joel Soete
it compiles well with gcc-3.3.
I hope it will not break anything :)Hope?? What does the testsuite for glibc say?
Right now I reach to build glibc completely (with just a warning less ;) )
This c110 is unfortunately too slow to let me complete the make -k check now, I will so continue tomorrow ;)
Regards,
Joel
PATCH 1/1 glibc-2.3.3 error with debian unstable compiler...
In reply to Matthew WilcoxQuoted 4 lines · Matthew Wilcox
Quoted 1 line · Joel Soete
+ /* Raise the safed exception. Incidently for us the implementation
"saved exception" or "safe exception"?
That's a typo that *every* other arch has because they copied the code from i386, I think rth was the only one anal enough to fix the spelling mistake ;)
I snatched the C99 spec and fixed our implementation based on my reading of the current code, other arch code, and the spec. The correct feupdateenv is provided below.
I'm sending this upstream to debian, so we can build again.
c.
Index: feupdateenv.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/hppa/fpu/feupdateenv.c,v retrieving revision 1.3
feupdateenv.c +2 -3
@@ -27,11 +27,10 @@ feupdateenv (const fenv_t *envp)/* Get the current exception status. */ __asm__ ("fstd %%fr0,0(%1)" :"=m" (*sw) :"r" (sw)); - sw[0 ] &=FE_ALL_EXCEPT ; - envp->__status_word = envp->__status_word | sw[0 ]; -/* Install new environment. */ fesetenv (envp); +/* Raise the saved exceptions */ +feraiseexcept (sw[0 ] &FE_ALL_EXCEPT );/* Success. */ return 0 ;
[parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Carlos,
I just apply your patch against the glibc cvs dated 20040405 (yesterday for me).
It compiles well with last updated gcc (3.3.3-6 dpkg iirc) :)
I just complete the 'make -k check' (on chroot disk) which finished with nothing more then well known bug :)
... And the compile (always in the chroot disk) of the last k-2.6.5-pa3 just finishes with success :)
hth,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 11 lines · Joel Soete
Carlos,
I just apply your patch against the glibc cvs dated 20040405 (yesterday for me). It compiles well with last updated gcc (3.3.3-6 dpkg iirc) :)
I just complete the 'make -k check' (on chroot disk) which finished with nothing more then well known bug :)
... And the compile (always in the chroot disk) of the last k-2.6.5-pa3 just finishes with success :)
Thanks for the check Joel!
c.
RE: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
In reply to Joel SoeteCarlos,
Last week I encounter some pb to co last cvs, sorry.
This week and can apply your patch against the glibc cvs dated 20040419 (just some hunk failled because in the uptream: great).
I just complete the 'make -k check' (on chroot disk) which finished with just one more error then well known ones:
make[2]: *** [/Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out] Error 1
make[1]: *** [stdio-common/tests] Error 2
... And the compile (always in the chroot disk) of the last k-2.6.6-rc1-pa0 works still fine and even boot well on a b180.
hth,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 7 lines · Joel Soete
Carlos,
Last week I encounter some pb to co last cvs, sorry.
This week and can apply your patch against the glibc cvs dated 20040419 (just some hunk failled because in the uptream: great).
Quoted 8 lines
I just complete the 'make -k check' (on chroot disk) which finished with just one more error then well known ones:
make[2]: *** [/Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out] Error 1
make[1]: *** [stdio-common/tests] Error 2... And the compile (always in the chroot disk) of the last k-2.6.6-rc1-pa0 works still fine and even boot well on a b180.
I'm seeing an extra error with realtime signal delivery tst-timer4, but not this error. I'm working on fixing tst-timer4, can you find out why tst-rndseek fails?
What does tst-rndseek.out say? I don't see this error?
Cheers,
Carlos.
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 7 lines
Quoted 7 lines
I just complete the 'make -k check' (on chroot disk) which finished with just one more error then well known ones:
make[2]: *** [/Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out] Error 1
make[1]: *** [stdio-common/tests] Error 2
Quoted 5 lines
Quoted 2 lines
... And the compile (always in the chroot disk) of the last k-2.6.6-rc1-pa0 works still fine and even boot well on a b180.
I'm seeing an extra error with realtime signal delivery tst-timer4, but not this error. I'm working on fixing tst-timer4,
:) and I don't see your's (not exactly the same co may be)
# grep Error glibc-2.3.3-20040419_Make-check make[2]: *** [/Develop/parisc-linux/build/glibc/math/test-float.out] Error 1 make[2]: *** [/Develop/parisc-linux/build/glibc/math/test-double.out] Error 1 make[2]: *** [/Develop/parisc-linux/build/glibc/math/test-ifloat.out] Error 1 make[1]: *** [math/tests] Error 2 make[2]: *** [/Develop/parisc-linux/build/glibc/stdlib/tst-strtod.out] Error 1 make[2]: *** [/Develop/parisc-linux/build/glibc/stdlib/bug-strtod.out] Error 1 make[1]: *** [stdlib/tests] Error 2 make[2]: *** [/Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out] Error 1 make[1]: *** [stdio-common/tests] Error 2 make[2]: [/Develop/parisc-linux/build/glibc/posix/annexc.out] Error 1 (ignored) make[2]: *** [/Develop/parisc-linux/build/glibc/elf/tst-tls13.out] Error 1 make[1]: *** [elf/tests] Error 2 make: *** [check] Error 2
Quoted 3 lines
can you find out why tst-rndseek fails?
What does tst-rndseek.out say? I don't see this error?
grrr just a time out (I would have to put the 'export TIMEOUTFACTOR=4' in the root profile on my chroot disk :? )
GCONV_PATH=/Develop/parisc-linux/build/glibc/iconvdata LC_ALL=C /Develop/parisc-linux/build/glibc/elf/ld.so.1
--library-path /Develop/parisc-linux/build/glibc:/Develop/parisc-linux/build/glibc/math:/Develop/parisc-linux/build/glibc/elf:/Develop/parisc-linux/build/glibc/dlfcn:/Develop/parisc-linux/build/glibc/nss:/Develop/parisc-linux/build/glibc/nis:/Develop/p arisc-linux/build/glibc/rt:/Develop/parisc-linux/build/glibc/resolv:/Develop/parisc-linux/build/glibc/crypt:/Develop/parisc-linux/build/glibc/linuxthreads /Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek > /Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out
Timed out: killed the child process
hth,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 9 lines
Quoted 1 line
What does tst-rndseek.out say? I don't see this error?
grrr just a time out (I would have to put the 'export TIMEOUTFACTOR=4' in the root profile on my chroot disk :? )
GCONV_PATH=/Develop/parisc-linux/build/glibc/iconvdata LC_ALL=C /Develop/parisc-linux/build/glibc/elf/ld.so.1
--library-path /Develop/parisc-linux/build/glibc:/Develop/parisc-linux/build/glibc/math:/Develop/parisc-linux/build/glibc/elf:/Develop/parisc-linux/build/glibc/dlfcn:/Develop/parisc-linux/build/glibc/nss:/Develop/parisc-linux/build/glibc/nis:/Develop/p arisc-linux/build/glibc/rt:/Develop/parisc-linux/build/glibc/resolv:/Develop/parisc-linux/build/glibc/crypt:/Develop/parisc-linux/build/glibc/linuxthreads /Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek > /Develop/parisc-linux/build/glibc/stdio-common/tst-rndseek.out
Timed out: killed the child process
Yes, the default timeout is too short, add a TIMEOUTFACTOR of 5 or more.
c.
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Hello Carlos,
Here is my weekly test: cvs 20040426.
Nothing new to mention: always well known errors collected after make -k check. I just build a 2.6.6-_rc2_-pa2 (for the fun) without pb (which boot fine on my b180)
Cheers,
Joel
PS:
Quoted 1 line
Yes, the default timeout is too short, add a TIMEOUTFACTOR of 5 or more.
This time I put TIMEOUTFACTOR=4 in the chroot root profile and seems to be enough to bypass timeout errors :)
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 4 lines
Here is my weekly test: cvs 20040426.
Nothing new to mention: always well known errors collected after make -k check. I just build a 2.6.6-_rc2_-pa2 (for the fun) without pb (which boot fine on my b180)
You aren't seeing a failure in tst-timer4?
Can you verify this by running tst-timer4 by hand and sending the output ot the list?
c.
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 2 lines
You aren't seeing a failure in tst-timer4?
uhm ... No (definitely :^)
Quoted 2 lines
Can you verify this by running tst-timer4 by hand and sending the output ot the list?
Yes naturally, here there are:
# ./tst-timer4
clock_gettime returned timespec = { 1083087449, 554351000 }
clock_getres returned timespec = { 0, 10000000 }
# echo $?
0Well duno if results are right (first line different on each test but the second is constant with or without TIMEOUTFACTOR)?
Don't hesitate with more questions ;)
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 10 lines · Joel Soete
Quoted 2 lines
Can you verify this by running tst-timer4 by hand and sending the output ot the list?
Yes naturally, here there are:
# ./tst-timer4 clock_gettime returned timespec = { 1083087449, 554351000 } clock_getres returned timespec = { 0, 10000000 } # echo $? 0
Quoted 4 lines
Well duno if results are right (first line different on each test but the second is constant with or without TIMEOUTFACTOR)?
Don't hesitate with more questions ;)
Okay, it's a 64-bit kernel problem them. What kernel are you running right now?
c.
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 3 lines
Okay, it's a 64-bit kernel problem them. What kernel are you running right now?
a merged 2.6.6-rc1-pa2 and upstream 2.6.6-rc2 :) 32bits build with lastest gcc-3.3, binutils (debian unstable) and libc6 (cvs 20040426 + your patches :)
I also have a b2k on which I can try to build 64bits kernel with gcc-3.0?
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Carlos,
Quoted 9 lines
Quoted 3 lines
Okay, it's a 64-bit kernel problem them. What kernel are you running right now?
a merged 2.6.6-rc1-pa2 and upstream 2.6.6-rc2 :) 32bits build with lastest gcc-3.3, binutils (debian unstable) and libc6 (cvs 20040426 + your patches :)
I also have a b2k on which I can try to build 64bits kernel with gcc-3.0?
Certainly: I just rebuild my own merge of 2.6.6-rc1-pa6 and 2.6.6-rc3 with gcc-hppa64 (from ftp.p-l.org) and reboot my b2k with it and effectively the result of tst-timer4 is a bit different:
# ./tst-timer4
clock_gettime returned timespec = { 1083142973, 718981000 }
clock_getres returned timespec = { 0, 10000000 }
*** sig1_sigval.sival_ptr (nil) != 0xbff00690
*** sig2_sigval.sival_ptr 0 != 163
# echo $?
0hth,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 10 lines · Joel Soete
Certainly: I just rebuild my own merge of 2.6.6-rc1-pa6 and 2.6.6-rc3 with gcc-hppa64 (from ftp.p-l.org) and reboot my b2k with it and effectively the result of tst-timer4 is a bit different:
# ./tst-timer4 clock_gettime returned timespec = { 1083142973, 718981000 } clock_getres returned timespec = { 0, 10000000 } *** sig1_sigval.sival_ptr (nil) != 0xbff00690 *** sig2_sigval.sival_ptr 0 != 163 # echo $? 0
It does help, we have a padding problem in siginfo, I never had enough test cases to prove the __SI_RT parts were in the right place. This goes to show that what you can't test is probably wrong.
I have to work on this today...
c.
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Quoted 6 lines
It does help, we have a padding problem in siginfo, I never had enough test cases to prove the
__SI_RTparts were in the right place. This goes to show that what you can't test is probably wrong.I have to work on this today...
I trust it is not related but btw I encounter another strange pb with this kernel:
I launch a find on a big disk and get severall messages:
find: /a/dir/of/mine: Input/Output error
...
the same when ls -l /a/dir/of/mine (I/O error)
well this is a merge of our 2.6.6-rc1-pa6 and upsteam 2.6.6-rc3 64bits. if i reboot with 2.6.6-rc1-pa0 32bits no pb.
So i will try to rebuild 2.6.6-rc1-pa6 alone in 64bit and see if the pb is there or in my merge?
Cheers,
Joel
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable compiler...
Well,
That must be something wrong in my merge 2.6.6-rc1-pa6 works fine. I will wait the p-l merge.
Joel
Quoted 6 lines
-- Original Message --
Date: Wed, 28 Apr 2004 18:29:55 +0200
From: "Joel Soete" <[email protected]>
To: "Carlos O'Donell" <[email protected]>
Cc: [email protected]
Subject: Re: [parisc-linux] RE: [PATCH] glibc-2.3.3 error with debian unstable
compiler...
Quoted 8 lines
Quoted 3 lines
It does help, we have a padding problem in siginfo, I never had enough test cases to prove the
__SI_RTparts were in the right place. This goes to show that what you can't test is probably wrong.I have to work on this today...
I t
Quoted 1 line
ust it is not related but btw I encounter another strange pb with this
kernel:
I launch a find on a big disk and get severall messages:
find: /a/dir/of/mine: Input/Output error
...
the same when ls -l /a/dir/of/mine (I/O error)
well this is a
Quoted 1 line
merge of our 2.6.6-rc1-pa6 and upsteam 2.6.6-rc3 64bits.
if i reboot with 2.6.6-rc1-pa0 32bits no pb.
So i will try to rebuild 2.6.6-rc1-pa6 alone in 64bit and see if the pb is there or in my merge?
Cheers,
Joel
--------------------
Quoted 1 line
-------------------------------------------------------------------
Tiscali ADSL: 35 ?/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr
_______________________________________________
parisc-linux mailing list
pari
Quoted 1 line
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
----------------------------------------------------------------------------------------
Tiscali ADSL: 35 €/mois, la meilleure offre du marché!
http://reg.tiscali.be/default.asp?lg=fr