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 [2012/02/22 08:57] miquel [Configuració del Topspin 2.1] |
informatica:hp_z400_600_topspin21 [2013/02/13 17:08] miquel [Problemes de compilació - Compilació de poptau i paropt] |
||
---|---|---|---|
Line 34: | Line 34: | ||
* :ok: '' | * :ok: '' | ||
* :ok: '' | * :ok: '' | ||
+ | * :ok: '' | ||
+ | * :ok: '' | ||
+ | ==== Problemes de compilació - Llibreria libpthread ==== | ||
+ | Al compilar els programes AU dóna un error perquè no troba la llibreria // | ||
- | ==== Problemes de compilació ==== | + | < |
+ | # find ./ | ||
+ | lrwxrwxrwx 1 root root 34 Feb 21 2012 ./ | ||
+ | -> ../ | ||
+ | lrwxrwxrwx 1 root root 20 Feb 21 2012 ./ | ||
+ | -> libpthread-2.11.3.so | ||
+ | -rwxr-xr-x 1 root root 116809 Feb 21 2012 ./ | ||
+ | |||
+ | # cp --archive / | ||
+ | |||
+ | # ls -l / | ||
+ | -rwxr-xr-x 1 root root 116809 Feb 21 2012 / | ||
+ | lrwxrwxrwx 1 root root 20 Feb 21 2012 / | ||
+ | -> libpthread-2.11.3.so | ||
+ | |||
+ | # cp --archive / | ||
+ | |||
+ | # ls -l / | ||
+ | lrwxrwxrwx 1 root root 34 Feb 21 2012 / | ||
+ | -> ../ | ||
+ | </ | ||
+ | |||
+ | ==== Problemes de compilació | ||
+ | |||
+ | 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' | ||
+ | |||
+ | Les modificacions a fer al fitxer /// | ||
+ | |||
+ | < | ||
+ | *** makeau 2012-02-21 16: | ||
+ | --- makeau.ts216 2012-02-21 13: | ||
+ | *************** if (($opersys ne " | ||
+ | *** 104,116 **** | ||
+ | $CC = $GCC . ' -B' . $GCC_EXEC_PREFIX; | ||
+ | $LPATH = ' -L' | ||
+ | $LD = $GCC_PLUS . ' -B' | ||
+ | ! | ||
+ | ! ## | ||
+ | ! # Extend with 32Bit library path on debian/ | ||
+ | ! $LD .= ' | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | if (open(FD,"/ | ||
+ | { | ||
+ | my $redhat = < | ||
+ | --- 104,111 ---- | ||
+ | $CC = $GCC . ' -B' . $GCC_EXEC_PREFIX; | ||
+ | $LPATH = ' -L' | ||
+ | $LD = $GCC_PLUS . ' -B' | ||
+ | ! | ||
+ | ! | ||
+ | if (open(FD,"/ | ||
+ | { | ||
+ | my $redhat = < | ||
+ | *************** $IndexStaticExt = 6; | ||
+ | *** 346,352 **** | ||
+ | ); | ||
+ | ## | ||
+ | %ldopt = ( | ||
+ | ! ' | ||
+ | | ||
+ | ' | ||
+ | ' -Wl, | ||
+ | --- 341,347 ---- | ||
+ | ); | ||
+ | ## | ||
+ | %ldopt = ( | ||
+ | ! ' | ||
+ | | ||
+ | ' | ||
+ | ' -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 '' | ||
- | <note important> | ||
- | * **Afegir** nota sobre la llibreria // | ||
- | * **Afegir** nota sobre els canvis al fitxer //makeau// necessaris per compilar i enllaçar els executables de 32-bits en un Debian/ | ||
- | * després de la línia 106 afegir < | ||
- | # Extend with 32Bit library path on debian/ | ||
- | $LD .= ' | ||
- | </ | ||
- | * a la línia 344 afegir //-m32// < | ||
- | * ... crec que no he fet més canvis. | ||
- | </ |