View previous topic :: View next topic |
Author |
Message |
gbobr n00b
Joined: 10 Apr 2012 Posts: 10
|
Posted: Wed Nov 07, 2012 10:39 pm Post subject: Se me pudrió el rancho, libstdc++ y gcc rotos |
|
|
Todo comenzó esta mañana,
Estuve instalando algunos plasmoids que encontré en kde-look, y resulta que fallaron... Nada raro, estoy usando la versión del overlay del KDE 4.9, así que estoy acostumbrado a que algunas cosas no funcionen como debería.
Luego tranquila y pacíficamente fui a compilar del git la versión de mplayer que soporta vaapi.
Resulta que la compilación falló porque no encontró una .h
No le di importancia, era código bajado de un git, podía llegar a fallar.
Parecía un día normal, hasta que de pronto, una de las aplicaciones que intenté levantar me dijo por consola:
Quote: | error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
Que raro dije, reinicié la notebook y no levantó el kdm, miro el log y veo:
Quote: | /usr/lib64/kde4/libexec/kdm_greet: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Server terminated successfully (0). Closing log file.
|
Ah, te haces la viva netbook, ok voy a reinstalar la libstdc++
Quote: |
# emerge libstdc++
[...]
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
/usr/lib/../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld devolvió el estado de salida 1
*** The command 'gcc -o conftest -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
* ERROR: sys-libs/libstdc++-v3-3.3.6 failed (compile phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 2770: Called econf '--enable-shared' '--with-system-zlib' '--enable-languages=c++' '--enable-threads=posix' '--enable-long-long' '--disable-checking' '--enable-cstdio=stdio' '--enable-__cxa_atexit' '--enable-multilib' '--enable-nls' '--without-included-gettext'
* phase-helpers.sh, line 467: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of `emerge --info '=sys-libs/libstdc++-v3-3.3.6'`,
* the complete build log and the output of `emerge -pqv '=sys-libs/libstdc++-v3-3.3.6'`.
* The complete build log is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/environment'.
* Working directory: '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/build'
* S: '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6'
>>> Failed to emerge sys-libs/libstdc++-v3-3.3.6
|
En ese momento me di cuenta de que ya no podía compilar absolutamente nada.
Tengo roto el gcc
Otra pista:
Quote: | # gcc-config -l
* gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.4
[1] x86_64-pc-linux-gnu-4.5.4 *
|
El contenido de ese archivo es:
Quote: | LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4:/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/32"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/info"
STDCXX_INCDIR="g++-v4"
GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4"
|
¿Alguna idea de que puedo hacer?
Aparentemente faltan archivos, carpetas, cosas del gcc, no entiendo como pasó... probablemente alguno de los scripts de plasma que bajé estaba hecho para alguna maldad o algo así.
Estaba pensando en descomprimir un stage sobre mi instalación para recuperar el GCC andando
¿Alguna opinion a ese respecto? ¿Voy a romper todo peor?
Saludos
Last edited by gbobr on Wed Nov 07, 2012 10:51 pm; edited 1 time in total |
|
Back to top |
|
|
cameta Veteran
Joined: 04 Aug 2004 Posts: 1329
|
Posted: Wed Nov 07, 2012 10:51 pm Post subject: |
|
|
Salva los datos importantes en otro disco duro y haz una instalación limpia.
Tardarás menos que intentando arreglar este desaguisado. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
|
gbobr n00b
Joined: 10 Apr 2012 Posts: 10
|
Posted: Wed Nov 07, 2012 11:01 pm Post subject: |
|
|
cameta wrote: | Salva los datos importantes en otro disco duro y haz una instalación limpia.
Tardarás menos que intentando arreglar este desaguisado. |
Agradezco el consejo, pero no quiero reinstalar! tiene que haber alguna otra forma :S |
|
Back to top |
|
|
cameta Veteran
Joined: 04 Aug 2004 Posts: 1329
|
Posted: Wed Nov 07, 2012 11:17 pm Post subject: |
|
|
El problema es que no sabes que has metido en el sistema. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
|
miguel_senso n00b
Joined: 11 Nov 2009 Posts: 68 Location: Guatemala, Guatemala C.A.
|
Posted: Sat Nov 10, 2012 1:30 am Post subject: |
|
|
Hola a todos, gbobr si aún no has resuelto tu problema recuerdo haber visto algo similar en este post https://forums.gentoo.org/viewtopic-t-900814-start-0.html y le pondría especial atención a la solucion propuesta por agdg que hasta un post realizó en su blog , espero te sirva de algo. |
|
Back to top |
|
|
cameta Veteran
Joined: 04 Aug 2004 Posts: 1329
|
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1524
|
Posted: Sun Nov 11, 2012 8:08 pm Post subject: |
|
|
Mira si te queda algo de gcc instalado.
Code: | ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/ |
|
|
Back to top |
|
|
Arctic Apprentice
Joined: 04 Jul 2011 Posts: 207
|
Posted: Sun Nov 11, 2012 11:50 pm Post subject: |
|
|
Prueba esto:
Como tengas roto el gcc, vas a tener un quebradero de cabeza.................. lo unico que se me ocurre es una inconsistencia del sistema de ficheros ,porque si no has tocado a nada .............
Salu2 _________________ ln -s /user/artic /user/arctic |
|
Back to top |
|
|
Theasker l33t
Joined: 18 Nov 2006 Posts: 656 Location: Zaragoza (Spain)
|
Posted: Mon Nov 12, 2012 8:53 pm Post subject: |
|
|
Prueba con fix_libtool_files.sh pertenece al gcc, yo hace poco lo arreglé con eso, suerte pero lo arreglarás con eso, no reinstales, q eso es lo "facil" _________________ "Oigo y olvido. Veo y recuerdo. Hago y comprendo" |
|
Back to top |
|
|
cameta Veteran
Joined: 04 Aug 2004 Posts: 1329
|
Posted: Mon Nov 12, 2012 10:29 pm Post subject: |
|
|
Bueno a reinstalar siempre hay tiempo. _________________ Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual. |
|
Back to top |
|
|
JotaCE l33t
Joined: 10 Jul 2007 Posts: 769 Location: SANTIAGO, CHILE!!!
|
Posted: Wed Nov 14, 2012 2:04 am Post subject: |
|
|
cameta wrote: | Bueno a reinstalar siempre hay tiempo. |
De acuerdo contigo! _________________ La derrota no es motivo de vergüenza si el espíritu sigue sin conquistar! |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Nov 14, 2012 9:16 am Post subject: |
|
|
que tienes en /etc/env.d/gcc ?
igual se soluciona simplemente con hacer un gcc-config 1 para que se vuelva a regenerar el perfil.
saluetes |
|
Back to top |
|
|
SS3 n00b
Joined: 23 Oct 2010 Posts: 20
|
Posted: Tue Dec 04, 2012 2:03 am Post subject: |
|
|
No creo que sea motivo para reinstalar, antes de nada ejecuta la herramienta revdep-rebuild como te dicen más arriba. |
|
Back to top |
|
|
|