bug-glibc
[Top][All Lists]
Advanced

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

bug when compiling libc2.2.5 + linuxthreads with -Os with a gcc 3.2 cros


From: Hans-Christian Armingeon
Subject: bug when compiling libc2.2.5 + linuxthreads with -Os with a gcc 3.2 crosscompiler
Date: Mon, 26 Aug 2002 15:56:58 +0200
User-agent: KMail/1.4.3

Dear Hackers,

I got this message below. I read http://www.gnu.org/software/gcc/bugs.html, and 
I decided, that it would be much easier to reproduce this bug, if you take my 
script, and let it run.
I you need some other things [the things described in 
http://www.gnu.org/software/gcc/bugs.html], then mail me. Please no rtfms, I'm 
a beginner.

The build is ok, when I build with -O2 . Well, I know that playing with -O is 
dangerous with libc.

I applied this patch to gcc 3.2 and libc 2.2.5

#> diff -r unpatched/ patched/
diff -r unpatched/gcc-3.2/libjava/java/net/natInetAddress.cc 
patched/gcc-3.2/libjava/java/net/natInetAddress.cc
59c59
< extern "C" int gethostname (char *name, int namelen);
---
> //extern "C" int gethostname (char *name, int namelen);
diff -r unpatched/glibc-2.2.5/sysdeps/unix/sysv/linux/errlist.c 
patched/glibc-2.2.5/sysdeps/unix/sysv/linux/errlist.c
40d39
< strong_alias (__old_sys_nerr, _old_sys_nerr);
41a41
> strong_alias (__old_sys_nerr, _old_sys_nerr);

##End of patch

There are three more patches appended, these patches are needed by the build 
script. Additional information about the build script is at 
http://www.kegel.com/xgcc3/ .

Many thanks in advance,

Hans-Christian Armingeon

/opt/xgcc3.2/ppc823-Os/bin/powerpc-linux-gcc strcoll.c -c -Os -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -mcpu=823 -mnew-mnemonics -Wa,-mppc 
-mpowerpc  -pg    -I../include -I. 
-I/usr/src/kegel.com/xgcc3/ppc823-Os/glibc-build/string -I.. -I../libio  
-I/usr/src/kegel.com/xgcc3/ppc823-Os/glibc-build -I../sysdeps/powerpc/elf 
-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/powerpc 
-I../sysdeps/unix/sysv/linux/powerpc -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/powerpc 
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/powerpc/soft-fp -I../sysdeps/ieee754 
-I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem 
/opt/xgcc3.2/ppc823-Os/lib/gcc-lib/powerpc-linux/3.2/include -isystem 
/usr/src/kegel.com/xgcc3/ppc823-Os/linux/include/ -D_LIBC_REENTRANT -include 
../include/libc-symbols.h  -DPROF    -o 
/usr/src/kegel.com/xgcc3/ppc823-Os/glibc-build/string/strcoll.op
strcoll.c: In function `findidx':
strcoll.c:549: Attempt to delete prologue/epilogue insn:
(insn 666 665 668 (parallel[
            (set (reg:SI 30 r30)
                (mem:SI (plus:SI (reg/f:SI 1 r1)
                        (const_int 24 [0x18])) [1 S4 A8]))
            (set (reg/f:SI 31 r31)
                (mem:SI (plus:SI (reg/f:SI 1 r1)
                        (const_int 28 [0x1c])) [1 S4 A8]))
        ] ) -1 (nil)
    (nil))
strcoll.c:549: Internal compiler error in propagate_one_insn, at flow.c:1615
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [/usr/src/kegel.com/xgcc3/ppc823-Os/glibc-build/string/strcoll.op] 
Error 1
make[2]: Leaving directory 
`/data/compilerbau/kegel.com/xgcc3/ppc823-Os/glibc-2.2.5/string'
make[1]: *** [string/subdir_lib] Error 2
make[1]: Leaving directory 
`/data/compilerbau/kegel.com/xgcc3/ppc823-Os/glibc-2.2.5'
make: *** [all] Error 2

Attachment: glibc-ppc-nofpu.patch1
Description: Text Data

Attachment: glibc-ppc-nofpu.patch2
Description: Text Data

Attachment: glibc-ppc-nofpu.patch3
Description: Text Data

Attachment: build-all.sh
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]