Re: glibc built with gcc-4.1 (update)
On Tue, May 30, 2006 at 05:52:43PM +0200, Ingo Juergensmann wrote: > > > >I tried it on akire, but was interrupted by real world issues. > > >When you could give a more detailed HowTo (sbuild, dpkg-buildpackage, > > >whatever) I would retry... > > Very easy: > > dget http://people.debian.org/~aurel32/glibc/glibc_2.3.6-7+gcc41.dsc > > dpkg-source -x glibc_2.3.6-7+gcc41.dsc > > cd glibc-2.3.6 > > debuild or dpkg-buildpackage -rfakeroot > > and wait a long time... > > akire:/build/glibc/glibc-2.3.6# dpkg-buildpackage -rfakeroot | tee > ../glibc-build-2006-05-30.log > dpkg-source: building glibc in glibc_2.3.6-7+gcc41.diff.gz > ... > So, it's on its way... ;) It failed (again): gcc-4.1 ../sysdeps/m68k/fpu/s_isinf.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -fstrict-aliasin g -g -pipe -Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I. -I/build/glibc/glibc- 2.3.6/build-tree/m68k-libc/math -I.. -I../libio -I/build/glibc/glibc-2.3.6/build-tree/m68k-libc -I../sysdeps/m68k/elf -I.. /libidn/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux/m68k -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthr eads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthre ads/sysdeps/m68k -I../sysdeps/unix/sysv/linux/m68k -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/m68k/ m68020 -I../sysdeps/m68k/fpu -I../sysdeps/m68k -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/d bl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /us r/lib/gcc/m68k-linux-gnu/4.1.0/include -isystem /build/glibc/glibc-2.3.6/debian/include -D_LIBC_REENTRANT -include ../inclu de/libc-symbols.h -o /build/glibc/glibc-2.3.6/build-tree/m68k-libc/math/s_isinf.o -MD -MP -MF /build/glibc/glibc-2.3. 6/build-tree/m68k-libc/math/s_isinf.o.dt -MT /build/glibc/glibc-2.3.6/build-tree/m68k-libc/math/s_isinf.o In file included from ../math/math.h:382, from ../include/math.h:3, from ../sysdeps/m68k/fpu/s_isinf.c:19: ../sysdeps/m68k/fpu/bits/mathinline.h:128: error: expected ',' or ';' before '{' token [ lots of those lines deleted ] ../sysdeps/m68k/fpu/bits/mathinline.h:249: error: expected ',' or ';' before '{' token ../sysdeps/m68k/fpu/bits/mathinline.h:249: error: expected ',' or ';' before '{' token ../sysdeps/m68k/fpu/bits/mathinline.h:249: error: expected ',' or ';' before '{' token ../sysdeps/m68k/fpu/bits/mathinline.h:250: error: expected ',' or ';' before '{' token make[3]: *** [/build/glibc/glibc-2.3.6/build-tree/m68k-libc/math/s_isinf.o] Error 1 make[3]: Leaving directory /build/glibc/glibc-2.3.6/build-tree/glibc-2.3.6/math' make[2]: *** [math/subdir_lib] Error 2 make[2]: Leaving directory /build/glibc/glibc-2.3.6/build-tree/glibc-2.3.6' make[1]: *** [all] Error 2 make[1]: Leaving directory /build/glibc/glibc-2.3.6/build-tree/m68k-libc' Full logs are available at: http://www.buildd.net/files/glibc-build-2006-05-30.log http://www.buildd.net/files/glibc-build-2006-05-30_2.log -- Ciao...//Fon: 0381-2744150 Ingo \X/ SIP: [EMAIL PROTECTED] gpg pubkey: http://www.juergensmann.de/ij/public_key.asc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
Falk Hueffner wrote: > Aurelien Jarno <[EMAIL PROTECTED]> writes: > > > Falk Hueffner a écrit : > >> Aurelien Jarno <[EMAIL PROTECTED]> writes: > >> > >>>On arm, ia64 and alpha the glibc fails to build with gcc-4.1. > >> On Alpha the problem is: > >> {standard input}: Assembler messages: > >> {standard input}:341: Error: macro requires $at register while noat in > >> effect > >> {standard input}:374: Error: macro requires $at register while noat in > >> effect > >> {standard input}:438: Error: macro requires $at register while noat in > >> effect > >> {standard input}:471: Error: macro requires $at register while noat in > >> effect > >> make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] > >> Error 1 > >> Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as. > >> I cannot really think of anything better than > > > > Ok, thanks a lot, I will add it in the SVN soon. > > > > Do you think it is a fix or a workaround? Or rather do you think this > > behaviour is correct? > > Well, the right thing to do would be to turn arch to ev6, and then > restore it to whatever it was previously; with this patch, it remains > turned on for the rest of the file and could potentially hide errors. > However, I don't think that's possible with gas. So given this > deficiency, I don't think there's a better way. FYI, the MIPS gas has .set push .set mips32 # ... .set pop which is very useful to handle such situations. Alpha gas at least doesn't document anything similiar, but it might be useful to implement such a feature for it. Thiemo
Re: glibc built with gcc-4.1 (update)
Aurelien Jarno <[EMAIL PROTECTED]> writes: > Falk Hueffner a écrit : >> Aurelien Jarno <[EMAIL PROTECTED]> writes: >> >>>On arm, ia64 and alpha the glibc fails to build with gcc-4.1. >> On Alpha the problem is: >> {standard input}: Assembler messages: >> {standard input}:341: Error: macro requires $at register while noat in effect >> {standard input}:374: Error: macro requires $at register while noat in effect >> {standard input}:438: Error: macro requires $at register while noat in effect >> {standard input}:471: Error: macro requires $at register while noat in effect >> make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] >> Error 1 >> Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as. >> I cannot really think of anything better than > > Ok, thanks a lot, I will add it in the SVN soon. > > Do you think it is a fix or a workaround? Or rather do you think this > behaviour is correct? Well, the right thing to do would be to turn arch to ev6, and then restore it to whatever it was previously; with this patch, it remains turned on for the rest of the file and could potentially hide errors. However, I don't think that's possible with gas. So given this deficiency, I don't think there's a better way. -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
Falk Hueffner a écrit : Aurelien Jarno <[EMAIL PROTECTED]> writes: On arm, ia64 and alpha the glibc fails to build with gcc-4.1. On Alpha the problem is: {standard input}: Assembler messages: {standard input}:341: Error: macro requires $at register while noat in effect {standard input}:374: Error: macro requires $at register while noat in effect {standard input}:438: Error: macro requires $at register while noat in effect {standard input}:471: Error: macro requires $at register while noat in effect make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1 Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as. I cannot really think of anything better than Ok, thanks a lot, I will add it in the SVN soon. Do you think it is a fix or a workaround? Or rather do you think this behaviour is correct? -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `-people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
Aurelien Jarno <[EMAIL PROTECTED]> writes: > On arm, ia64 and alpha the glibc fails to build with gcc-4.1. On Alpha the problem is: {standard input}: Assembler messages: {standard input}:341: Error: macro requires $at register while noat in effect {standard input}:374: Error: macro requires $at register while noat in effect {standard input}:438: Error: macro requires $at register while noat in effect {standard input}:471: Error: macro requires $at register while noat in effect make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1 Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as. I cannot really think of anything better than --- ioperm.c~ 2001-07-06 06:56:13.0 +0200 +++ ioperm.c2006-05-30 21:22:54.0 +0200 @@ -173,13 +173,13 @@ static inline void stb_mb(unsigned char val, unsigned long addr) { - __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); + __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); } static inline void stw_mb(unsigned short val, unsigned long addr) { - __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); + __asm__("".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); } static inline void @@ -351,7 +351,7 @@ unsigned long int addr = dense_port_to_cpu_addr (port); unsigned char r; - __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); + __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); return r; } @@ -361,7 +361,7 @@ unsigned long int addr = dense_port_to_cpu_addr (port); unsigned short r; - __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); + __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); return r; } -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
On Tue, May 30, 2006 at 04:44:49PM +0200, Aurelien Jarno wrote: > >I tried it on akire, but was interrupted by real world issues. > >When you could give a more detailed HowTo (sbuild, dpkg-buildpackage, > >whatever) I would retry... > Very easy: > dget http://people.debian.org/~aurel32/glibc/glibc_2.3.6-7+gcc41.dsc > dpkg-source -x glibc_2.3.6-7+gcc41.dsc > cd glibc-2.3.6 > debuild or dpkg-buildpackage -rfakeroot > and wait a long time... akire:/build/glibc/glibc-2.3.6# dpkg-buildpackage -rfakeroot | tee ../glibc-build-2006-05-30.log dpkg-buildpackage: source package is glibc dpkg-buildpackage: source version is 2.3.6-7+gcc41 dpkg-buildpackage: source changed by Aurelien Jarno <[EMAIL PROTECTED]> dpkg-buildpackage: host architecture m68k dpkg-buildpackage: source version without epoch 2.3.6-7+gcc41 fakeroot debian/rules clean dh_clean rm -f debian/*.install* [...] rm -rf debian/include dpkg-source -b glibc-2.3.6 dpkg-source: building glibc using existing glibc_2.3.6.orig.tar.gz dpkg-source: building glibc in glibc_2.3.6-7+gcc41.diff.gz ... So, it's on its way... ;) -- Ciao...//Fon: 0381-2744150 Ingo \X/ SIP: [EMAIL PROTECTED] gpg pubkey: http://www.juergensmann.de/ij/public_key.asc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
On Tue, May 30, 2006 at 04:31:33PM +0200, Aurelien Jarno wrote: > I haven't done a build on m68k yet. I tried it on akire, but was interrupted by real world issues. When you could give a more detailed HowTo (sbuild, dpkg-buildpackage, whatever) I would retry... -- Ciao...//Fon: 0381-2744150 Ingo \X/ SIP: [EMAIL PROTECTED] gpg pubkey: http://www.juergensmann.de/ij/public_key.asc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
Ingo Juergensmann a écrit : On Tue, May 30, 2006 at 04:31:33PM +0200, Aurelien Jarno wrote: I haven't done a build on m68k yet. I tried it on akire, but was interrupted by real world issues. When you could give a more detailed HowTo (sbuild, dpkg-buildpackage, whatever) I would retry... Very easy: dget http://people.debian.org/~aurel32/glibc/glibc_2.3.6-7+gcc41.dsc dpkg-source -x glibc_2.3.6-7+gcc41.dsc cd glibc-2.3.6 debuild or dpkg-buildpackage -rfakeroot and wait a long time... -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `-people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc built with gcc-4.1 (update)
Aurelien Jarno a écrit : Hi all, As gcc-4.1 may be the default compiler soon (I hope so), I have tried to build the glibc with it. Currently it builds and works on the following architectures: amd64, hppa, i386, mips, mipsel, sparc The packages are available [1], but a but outdated. It should not be a problem, as the changes are not so important between this version and the current one. It would be nice if some other people could test them, so the problems (if any) could be fixed. It fails to build on powerpc, but I haven't investigated the problem yet. I have fixed the problem, it now builds ok on powerpc. The packages are on available on [1]. They work fine on my machine. I will build it on arm as soon as I get back home, as my machine is currently down. I am looking for people to build an test it on alpha, ia64, m68k and s390. The source is available on the same place as the binaries [1]. glibc builds fine with gcc-4.1 on s390, but I haven't tested the resulting packages, they are available on [1]. The testsuite looks ok. On arm, ia64 and alpha the glibc fails to build with gcc-4.1. I haven't found the time to investigate the problems now, but a quick look seems to say that on arm this is a glibc problem, whereas I suspect a problem with gcc-4.1 on ia64 and alpha. More to come as soon as I find some time... I haven't done a build on m68k yet. [1] http://people.debian.org/~aurel32/glibc -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `-people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
glibc built with gcc-4.1
Hi all, As gcc-4.1 may be the default compiler soon (I hope so), I have tried to build the glibc with it. Currently it builds and works on the following architectures: amd64, hppa, i386, mips, mipsel, sparc The packages are available [1], but a but outdated. It should not be a problem, as the changes are not so important between this version and the current one. It would be nice if some other people could test them, so the problems (if any) could be fixed. It fails to build on powerpc, but I haven't investigated the problem yet. I will build it on arm as soon as I get back home, as my machine is currently down. I am looking for people to build an test it on alpha, ia64, m68k and s390. The source is available on the same place as the binaries [1]. Bye, Aurelien [1] http://people.debian.org/~aurel32/glibc -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian GNU/Linux developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `-people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]