This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
informatica:hp_z400_600_topspin21 [2013/02/13 12:51] miquel [Problemes de compilació] |
informatica:hp_z400_600_topspin21 [2013/02/13 17:38] miquel [Problemes de compilació - Compilació de poptau i paropt] |
||
---|---|---|---|
Line 36: | Line 36: | ||
* :ok: '' | * :ok: '' | ||
* :ok: '' | * :ok: '' | ||
- | ==== Problemes de compilació | + | ==== Problemes de compilació |
- | + | ||
- | === Llibreria libpthread === | + | |
Al compilar els programes AU dóna un error perquè no troba la llibreria // | Al compilar els programes AU dóna un error perquè no troba la llibreria // | ||
Line 64: | Line 62: | ||
</ | </ | ||
- | === Llibreries de 32-bits en un entorn de 64-bits === | + | ==== Problemes de compilació - Llibreries de 32-bits en un entorn de 64-bits |
Per compilar els programes AU en un entorn de 64-bits i enllaçar-los amb les llibreries de 32-bits, cal modificar el fitxer //makeau//. Aparentment el programa d' | Per compilar els programes AU en un entorn de 64-bits i enllaçar-los amb les llibreries de 32-bits, cal modificar el fitxer //makeau//. Aparentment el programa d' | ||
Line 115: | Line 113: | ||
' -Wl, | ' -Wl, | ||
</ | </ | ||
+ | |||
+ | ==== Problemes de compilació - Compilació de poptau i paropt ==== | ||
+ | |||
+ | La compilació del programa AU //poptau// al Topspin 2.x genera un executable que dóna un error de segmentació quan s' | ||
+ | |||
+ | < | ||
+ | # ldd / | ||
+ | linux-gate.so.1 => (0xf76fd000) | ||
+ | auliba.so => not found | ||
+ | aulibp.so => not found | ||
+ | chparmod.so => not found | ||
+ | librrs.so => not found | ||
+ | liblrs.so => not found | ||
+ | editpar.so => not found | ||
+ | libacq.so => not found | ||
+ | util.so => not found | ||
+ | uni.so => not found | ||
+ | par.so => not found | ||
+ | libPath.so => not found | ||
+ | libcb.so => not found | ||
+ | libdl.so.2 => / | ||
+ | libstdc++.so.6 => / | ||
+ | libm.so.6 => / | ||
+ | libgcc_s.so.1 => / | ||
+ | libc.so.6 => / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | i veig que hi ha moltes que no troba, però una comprovació d' | ||
+ | |||
+ | Si executo la comanda '' | ||
+ | |||
+ | < | ||
+ | # ldd -r poptau | ||
+ | linux-gate.so.1 => (0xf770d000) | ||
+ | auliba.so => not found | ||
+ | aulibp.so => not found | ||
+ | chparmod.so => not found | ||
+ | librrs.so => not found | ||
+ | liblrs.so => not found | ||
+ | editpar.so => not found | ||
+ | libacq.so => not found | ||
+ | util.so => not found | ||
+ | uni.so => not found | ||
+ | par.so => not found | ||
+ | libPath.so => not found | ||
+ | libcb.so => not found | ||
+ | libdl.so.2 => / | ||
+ | libstdc++.so.6 => / | ||
+ | libm.so.6 => / | ||
+ | libgcc_s.so.1 => / | ||
+ | libc.so.6 => / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | mentre que a l' | ||
+ | |||
+ | < | ||
+ | [root@cie-55-32 bin]# ldd -r poptau | ||
+ | auliba.so => not found | ||
+ | aulibp.so => not found | ||
+ | chparmod.so => not found | ||
+ | librrs.so => not found | ||
+ | liblrs.so => not found | ||
+ | editpar.so => not found | ||
+ | libacq.so => not found | ||
+ | util.so => not found | ||
+ | uni.so => not found | ||
+ | par.so => not found | ||
+ | libPath.so => not found | ||
+ | libcb.so => not found | ||
+ | libdl.so.2 => / | ||
+ | libstdc++.so.6 => / | ||
+ | libm.so.6 => / | ||
+ | libgcc_s.so.1 => / | ||
+ | libc.so.6 => / | ||
+ | / | ||
+ | undefined symbol: ssleep (./ | ||
+ | undefined symbol: PathXWinNMRProg (./ | ||
+ | undefined symbol: Change_object (./ | ||
+ | undefined symbol: Start_unimar (./ | ||
+ | undefined symbol: DurationToAscii (./ | ||
+ | undefined symbol: setcurdat (./ | ||
+ | undefined symbol: RemoveTree (./ | ||
+ | undefined symbol: Gets (./ | ||
+ | undefined symbol: CPR_exec (./ | ||
+ | undefined symbol: Show_status (./ | ||
+ | undefined symbol: fetchstor (./ | ||
+ | undefined symbol: getcurdat (./ | ||
+ | undefined symbol: Proc_err (./ | ||
+ | undefined symbol: Exit_unimar (./ | ||
+ | undefined symbol: PathSystemTemp (./ | ||
+ | undefined symbol: getparamunit (./ | ||
+ | undefined symbol: Get_command (./ | ||
+ | undefined symbol: GetCPR_object (./ | ||
+ | undefined symbol: PathXWinNMRCurDir (./ | ||
+ | undefined symbol: execau (./ | ||
+ | </ | ||
+ | |||
+ | Per altra banda, el programa //paropt// també dóna un error semblant de // | ||
+ | |||
+ | Una cerca de '' | ||
+ | * item 9577 - workaround - TOPSPIN - 1.3.10 - non-critical - CentOS5 TopSpin 1.3pl10 cannot compile AU programs under CentOS 5. Proporciona una nova versió del programa //makeau,// derivada de la versió distribuïda amb el TS-3.x, i esmenta que, si el directori d' | ||
+ | |||
+ | que, en el nostre cas, no és la causa, ja que la primera línia al fitxer //makeau// és correcte. | ||
+ | |||
+ | Al fitxer // | ||
+ | < | ||
+ | Insert Codexport LD_LIBRARY_PATH=" | ||
+ | </ | ||
+ | |||
+ | on | ||
+ | |||
+ | < | ||
+ | szProgPath=`" | ||
+ | szExpPath=`" | ||
+ | </ | ||
+ | |||
+ | és a dir, en el cas de Topspin '' | ||
+ | < | ||
+ | # ls -F | ||
+ | Atma.so* ipsoRout.so* | ||
+ | auliba.so* libacb.so* | ||
+ | aulibp.so* libacq.so* | ||
+ | Bird.so* libap.so* | ||
+ | Bis.so* libAqRack.so* | ||
+ | chparmod.so* libArg.so* | ||
+ | convpw_deb.so* libAsuBbis.so* | ||
+ | convpw.so* libaxis_client.so | ||
+ | ConvSf.so* libaxis_xerces.so | ||
+ | editpar.so* libBbis.so* | ||
+ | Error.so* libBmpc.so* | ||
+ | gc.so* libBpsu.so* | ||
+ | Gilson.so* libcb.so* | ||
+ | golibipso.so* libCf.so* | ||
+ | gosim.so* libcrypto.so.0.9.8* | ||
+ | Hppr.so* libCt.so* | ||
+ | </ | ||
+ | |||
+ | **Potser la solució passi per emprar i/o adaptar el fitxer '' | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # basic cc- options | ||
+ | # | ||
+ | %ccopt =( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | %erropt =( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | %warnopt =( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | ## | ||
+ | </ | ||
+ | |||
+ | Per altra banda, no estic segur de si caldria afegir aquesta definició que surt al '' | ||
+ | |||
+ | < | ||
+ | my @alwaysSharedLibs = qw | ||
+ | ( | ||
+ | | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | però que a la versió de l'itej #9577 surt com, | ||
+ | |||
+ | < | ||
+ | my @alwaysSharedLibs = (); | ||
+ | </ | ||
+ | |||
+ | en tot cas, caldria tenir present que la variable definida al TS-2x seria '' | ||