Go Back   Champions of Regnum > Español > La Taberna

La Taberna Un lugar para conversar sobre casi cualquier tema

Reply
 
Thread Tools Display Modes
Old 01-13-2010, 05:33 PM   #1
sunos
Count
 
sunos's Avatar
 
Join Date: Jan 2007
Location: Rosario
Posts: 1,440
sunos has a spectacular aura aboutsunos has a spectacular aura about
Default Pido ayuda , Problema con DISTCC

Buenas gente, escribo este post para ver si alguien me puede dar una manito con distcc, la idea es armar una pequeña granja de compilacion sobre sistemas heterogeneos, el problema pasa por la diversidad entre los sistemas de 32 y 64 (ble, en realidad hay uno solo de 64 contra 4 de 32)

El problema pasa por hacer que los sistemas de 32 puedan devolver codigo de 64 bits, se que gcc es capas de compilar para x86_64 en i386 pero me devuelve codigo objeto i386 y obviamente falla

alguien tiene alguna idea de que podria hacer? (principalmente porque el equipo a 64 es un slack 13 que estoy provando y es una maquina de baja potencia (semprom 3500)
__________________
Usuario GNU/linux registrado Nº450915
"Sólo hay un problema con el sentido común: que no es demasiado común" -- Milt Bryce
sunos no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:35 PM   #2
surak
Legend
 
surak's Avatar
 
Join Date: Mar 2006
Location: Oslo
Posts: 2,176
surak has a spectacular aura aboutsurak has a spectacular aura about
Default

No hay que pasarle -m64 al compilador y al linker?
__________________
Surak Remember... this is just a game! - Xephandor existe y Miriya es su profeta!
surak no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:48 PM   #3
sunos
Count
 
sunos's Avatar
 
Join Date: Jan 2007
Location: Rosario
Posts: 1,440
sunos has a spectacular aura aboutsunos has a spectacular aura about
Default

Quote:
Originally Posted by surak View Post
No hay que pasarle -m64 al compilador y al linker?
le paso con -m64 pero en programas simples como htop me devuelve i386 y en cosas mas bonitas como libnice me devuelve una sarta de errores terrible, estoy empezanod a sospechar de problemas entre las versiones de gcc, lo raro es que en i386 en otro slack 13 no tuve problemas, ahi dejo log


Code:
stuncrc32.c:1: sorry, unimplemented: 64-bit mode not compiled in
distcc[25544] ERROR: compile stuncrc32.c on 192.168.1.19 failed
make[3]: *** [stuncrc32.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  distcc -DHAVE_CONFIG_H -I. -I.. -I.. -std=gnu99 -DG_LOG_DOMAIN=\"libnice-stun\" -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c -o md5.o >/dev/null 2>&1
mv -f .deps/ice.Tpo .deps/ice.Plo
mv -f .deps/md5.Tpo .deps/md5.Plo
sha1.c:1: sorry, unimplemented: 64-bit mode not compiled in
distcc[25558] ERROR: compile sha1.c on 192.168.1.19 failed
make[3]: *** [sha1.lo] Error 1
libtool: compile:  distcc -DHAVE_CONFIG_H -I. -I.. -I.. -std=gnu99 -DG_LOG_DOMAIN=\"libnice-stun\" -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -MT rand.lo -MD -MP -MF .deps/rand.Tpo -c rand.c -o rand.o >/dev/null 2>&1
libtool: compile:  distcc -DHAVE_CONFIG_H -I. -I.. -I.. -std=gnu99 -DG_LOG_DOMAIN=\"libnice-stun\" -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -MT bind.lo -MD -MP -MF .deps/bind.Tpo -c usages/bind.c -o bind.o >/dev/null 2>&1
mv -f .deps/rand.Tpo .deps/rand.Plo
stunhmac.c:1: sorry, unimplemented: 64-bit mode not compiled in
distcc[25574] ERROR: compile stunhmac.c on 192.168.1.19 failed
make[3]: *** [stunhmac.lo] Error 1
mv -f .deps/bind.Tpo .deps/bind.Plo
stunmessage.c:1: sorry, unimplemented: 64-bit mode not compiled in
stunmessage.c: In function 'stun_message_find64':
stunmessage.c:178: warning: left shift count >= width of type
stunmessage.c: In function 'stun_message_append64':
stunmessage.c:370: warning: right shift count >= width of type
distcc[25521] ERROR: compile stunmessage.c on 192.168.1.19 failed
make[3]: *** [stunmessage.lo] Error 1
make[3]: Leaving directory `/tmp/SBo/libnice-0.0.9/stun'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/libnice-0.0.9/stun'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/libnice-0.0.9'
make: *** [all] Error 2
bash-3.1#
y distcc log en el "server"
Code:
distccd[22525] job complete
distccd[22525] (dcc_cleanup_tempfiles) deleted 4 temporary files
distccd[22526] (dcc_r_file) received 56466 bytes to file /tmp/distccd_e3befd70.i
distccd[22526] (dcc_r_file_timed) 56466 bytes received in 1.976277s, rate 28kB/s
distccd[22526] (dcc_set_input) changed input from "stunhmac.c" to "/tmp/distccd_e3befd70.i"
distccd[22526] (dcc_set_input) command after: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_e3befd70.i -fPIC -o .libs/stunhmac.o
distccd[22526] (dcc_set_output) changed output from ".libs/stunhmac.o" to "/tmp/distccd_e304fd70.o"
distccd[22526] (dcc_set_output) command after: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_e3befd70.i -fPIC -o /tmp/distccd_e304fd70.o
distccd[22526] (dcc_check_compiler_masq) /usr/bin/cc is a safe symlink to gcc
distccd[22526] (dcc_spawn_child) forking to execute: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_e3befd70.i -fPIC -o /tmp/distccd_e304fd70.o
distccd[468] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[22526] (dcc_spawn_child) child started as pid468
distccd[22526] (dcc_collect_child) cc child 468 terminated with status 0x100
distccd[22526] (dcc_collect_child) cc times: user 0.040002s, system 0.004000s, 1326 minflt, 0 majflt
distccd[22526] (dcc_x_token_int) send DONE00000001
distccd[22526] (dcc_x_token_int) send STAT00000100
distccd[22526] (dcc_x_file) send 64 byte file /tmp/distcc_b7d9fd70.stderr with token SERR
distccd[22526] (dcc_x_token_int) send SERR00000040
distccd[22526] (dcc_x_file) send 0 byte file /tmp/distcc_b0acfd70.stdout with token SOUT
distccd[22526] (dcc_x_token_int) send SOUT00000000
distccd[22526] (dcc_x_token_int) send DOTO00000000
distccd[22526] cc stunhmac.c on localhost failed
distccd[22526] job complete
distccd[22526] (dcc_cleanup_tempfiles) deleted 4 temporary files
distccd[22528] (dcc_r_file) received 83429 bytes to file /tmp/distccd_940cfd6f.i
distccd[22528] (dcc_r_file_timed) 83429 bytes received in 3.195774s, rate 25kB/s
distccd[22528] (dcc_set_input) changed input from "stunmessage.c" to "/tmp/distccd_940cfd6f.i"
distccd[22528] (dcc_set_input) command after: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_940cfd6f.i -fPIC -o .libs/stunmessage.o
distccd[22528] (dcc_set_output) changed output from ".libs/stunmessage.o" to "/tmp/distccd_94a5fd6f.o"
distccd[22528] (dcc_set_output) command after: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_940cfd6f.i -fPIC -o /tmp/distccd_94a5fd6f.o
distccd[22528] (dcc_check_compiler_masq) /usr/bin/cc is a safe symlink to gcc
distccd[22528] (dcc_spawn_child) forking to execute: cc -std=gnu99 -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -O0 -fPIC -m64 -c /tmp/distccd_940cfd6f.i -fPIC -o /tmp/distccd_94a5fd6f.o
distccd[470] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[22528] (dcc_spawn_child) child started as pid470
distccd[22528] (dcc_collect_child) cc child 470 terminated with status 0x100
distccd[22528] (dcc_collect_child) cc times: user 0.056003s, system 0.008000s, 1471 minflt, 0 majflt
distccd[22528] (dcc_x_token_int) send DONE00000001
distccd[22528] (dcc_x_token_int) send STAT00000100
distccd[22528] (dcc_x_file) send 294 byte file /tmp/distcc_629afd6f.stderr with token SERR
distccd[22528] (dcc_x_token_int) send SERR00000126
distccd[22528] (dcc_x_file) send 0 byte file /tmp/distcc_6199fd6f.stdout with token SOUT
distccd[22528] (dcc_x_token_int) send SOUT00000000
distccd[22528] (dcc_x_token_int) send DOTO00000000
distccd[22528] cc stunmessage.c on localhost failed
distccd[22528] job complete
distccd[22528] (dcc_cleanup_tempfiles) deleted 4 temporary files
asi que el sistema 32 no me genera codigo a 64 y no se me ocurre como solucionrlo
__________________
Usuario GNU/linux registrado Nº450915
"Sólo hay un problema con el sentido común: que no es demasiado común" -- Milt Bryce
sunos no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:52 PM   #4
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

Quote:
Originally Posted by sunos View Post
asi que el sistema 32 no me genera codigo a 64 y no se me ocurre como solucionrlo
no probaste a actualizar el gcc? aún no se como tienes algún slack 12.1 que creo haberte leído que tienes
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:53 PM   #5
sunos
Count
 
sunos's Avatar
 
Join Date: Jan 2007
Location: Rosario
Posts: 1,440
sunos has a spectacular aura aboutsunos has a spectacular aura about
Default

Quote:
Originally Posted by arlick View Post
no probaste a actualizar el gcc? aún no se como tienes algún slack 12.1 que creo haberte leído que tienes
no creo que venga por ahi, seguramente me esta faltando algo pero no se que =(, por eso comento que lo mismo (en el ejemplo libnice) en otro slack13 pero a 32 anduvo barbaro

snif snif snif, seguro que surak me va a decir pt :'(

PD: no, no tengo experiencia en cross compiler en sistemas heterogeneos :-(
__________________
Usuario GNU/linux registrado Nº450915
"Sólo hay un problema con el sentido común: que no es demasiado común" -- Milt Bryce
sunos no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:55 PM   #6
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

Quote:
Originally Posted by sunos View Post
no creo que venga por ahi, seguramente me esta faltando algo pero no se que =(, por eso comento que lo mismo (en el ejemplo libnice) en otro slack13 pero a 32 anduvo barbaro

snif snif snif, seguro que surak me va a decir pt :'(

PD: no, no tengo experiencia en cross compiler en sistemas heterogeneos :-(
Pero usando diferentes versiones de gcc en diferentes máquinas no puede ser el problema? eso entendí que haces.
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 05:58 PM   #7
sunos
Count
 
sunos's Avatar
 
Join Date: Jan 2007
Location: Rosario
Posts: 1,440
sunos has a spectacular aura aboutsunos has a spectacular aura about
Default

Quote:
Originally Posted by arlick View Post
Pero usando diferentes versiones de gcc en diferentes máquinas no puede ser el problema? eso entendí que haces.
creo que encontre el problema, mira bien esto

Code:
sunos@stradivarius:~$ gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.3/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.3/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.2.3
Code:
sunos|~$>gcc -v
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/specs
Target: x86_64-slackware-linux
Configured with: ../gcc-4.3.3/configure --prefix=/usr --libdir=/usr/lib64 --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-checking=release --with-system-zlib --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --with-gnu-ld --verbose --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.3.3 (GCC)
__________________
Usuario GNU/linux registrado Nº450915
"Sólo hay un problema con el sentido común: que no es demasiado común" -- Milt Bryce
sunos no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 06:01 PM   #8
arlick
Duke
 
arlick's Avatar
 
Join Date: Jan 2007
Posts: 3,939
arlick is a jewel in the rougharlick is a jewel in the rougharlick is a jewel in the rough
Default

w00t!

_= D of S =_~$ gcc -m64 cosa.c -o cosa
cosa.c:1: sorry, unimplemented: 64-bit mode not compiled in

según interpreto habría que recompilar el gcc.. porqué habrán hecho esto?
__________________
"Nunca un científico ha quemado a un religioso por afirmar a Dios sin pruebas". Manuel Toharia
"uno empieza a darse cuenta que eso de no hacer ejercicio, comer y beber como si fuese la ultima cena y mantener la figura ya no existe...". Maryan
arlick no ha iniciado sesión   Reply With Quote
Old 01-13-2010, 06:20 PM   #9
piritio
Secondary account
 
piritio's Avatar
 
Join Date: Dec 2008
Posts: 121
piritio is on a distinguished road
Default

uh no entiendo nada jaja en todo caso me dio risa mi ginorancia
piritio no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved