View previous topic :: View next topic |
Author |
Message |
Viiince Apprentice
Joined: 28 Jul 2004 Posts: 215 Location: france, alsace, brumath
|
Posted: Tue Dec 20, 2005 11:46 pm Post subject: [glibc] Problème de compilation version 2.3.6-r1 |
|
|
Salut tout le monde, voilà mon problème: je veux mettre à jour mon GCC vers la version 4.0.2-r2, donc j'ai suivi le howto ici, et j'en suis à la commande "emerge binutils gcc glibc -av".
Sauf que, pendant la compilation de glibc, ça plante, avec un message d'erreur comme quoi gcc ne trouve pas la fonction __libc_fork ou un truc comme ça (désolé j'ai plus le message sous la main ).
Voilà si quelqu'un a une idée du problème
(là je réessaye avec la 2.3.6, si jamais ça replante je vous poste le message d'erreur) |
|
Back to top |
|
|
Viiince Apprentice
Joined: 28 Jul 2004 Posts: 215 Location: france, alsace, brumath
|
Posted: Wed Dec 21, 2005 12:23 am Post subject: |
|
|
Bon la 2.3.6 passe pas non plus
Voilà l'erreur: Quote: | ./nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function `__libc_fork':
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:203: error: can't find a register in class `BREG' while reloading `asm'
i686-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/execve.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -fPIC -march=pentium4 -pipe -mpreferred-stack-boundary=2 -I../include -I. -I/var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl/posix -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl/posix/execve.o -MD -MP -MF /var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl/posix/execve.o.dt -MT /var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl/posix/execve.o
make[2]: *** [/var/tmp/portage/glibc-2.3.6/work/build-default-i686-pc-linux-gnu-nptl/posix/fork.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6/work/glibc-2.3.6/posix'
make[1]: *** [posix/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6/work/glibc-2.3.6'
make: *** [all] Error 2
!!! ERROR: sys-libs/glibc-2.3.6 failed.
!!! Function toolchain-glibc_src_compile, Line 246, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
|
|
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Wed Dec 21, 2005 12:49 am Post subject: |
|
|
Code: | ./nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function `__libc_fork':
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:203: error: can't find a register in class `BREG' while reloading `asm'
i686-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/execve.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -fPIC -march=pentium4 -pipe -mpreferred-stack-boundary=2
-I../include -I.
... |
Le "-fPIC" c'est toi qui l'a rajouté dans tes CFLAGS ou pas ? Parce que d'après ce post, ça cause des problèmes précisément à cet endroit là pour la glibc-2.3.5... donc j'imagine que c'est pareil pour la 2.3.6. |
|
Back to top |
|
|
Enlight Advocate
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Wed Dec 21, 2005 12:49 am Post subject: |
|
|
Je sais pas si ça a été fixé depuis ou pas mais t'aurais pas nptl (voir nptlonly) et -linuxthreads? Si c'est le cas le bug était que certaines fonctions des NPTL sont encore dépendantes de linuxthreads.
edit : remarque ce que dit widan me parrait plus plosible vu que d'après les mailing-lists redhat, le bug dont je parle devrait être fixé et vu le "reloading ASM"
Last edited by Enlight on Wed Dec 21, 2005 12:54 am; edited 1 time in total |
|
Back to top |
|
|
Viiince Apprentice
Joined: 28 Jul 2004 Posts: 215 Location: france, alsace, brumath
|
Posted: Wed Dec 21, 2005 12:51 am Post subject: |
|
|
@widan: je viens de tomber sur ce post, et justement j'ai ajouté le -fPIC moi même, donc là j'essaye sans.
@enlight: oui j'ai +nptl -linuxthreads. si ça a pas marché la solution du -fPIC j'essayerai ça. |
|
Back to top |
|
|
Viiince Apprentice
Joined: 28 Jul 2004 Posts: 215 Location: france, alsace, brumath
|
Posted: Wed Dec 21, 2005 12:18 pm Post subject: |
|
|
Bon alors effectivement ça venait bien du -fPIC, glibc 2.3.6-r1 et gcc 4.0.2-r2 ont compilés sans problèmes cette nuit !
Merci à vous deux, maintenant en avant pour recompiler tout les programmes |
|
Back to top |
|
|
Talosectos Guru
Joined: 31 Aug 2004 Posts: 329 Location: Bugey-Libre
|
|
Back to top |
|
|
|