Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ot] matlab 7 e glibc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu May 05, 2005 2:37 pm    Post subject: [ot] matlab 7 e glibc Reply with quote

EDIT: la soluzione al problema me lo hanno risolto così:
https://forums.gentoo.org/viewtopic.php?p=2584006#2584006
1)riemergere le glibc 2.3.5-r1 mascherate con le use "glibc-compat20 nptl -nptlonly"
2)eseguire il matlab con LD_ASSUME_KERNEL=2.4.19
infatti come supponevo il glibc-2.3.5 non era stato patchato con le patch del 2.3.4 e quindi il matlab non andava più
ora và una bomba.. anche se il problema dell'opengl non l'ho ancora risolto

EXPOST
Oggi mi sono accorto che il matlab 7 non funziona più
mi dà quest'errore
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future ## questo lo dava anche prima
Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 75: _dl_next_tls_modid: Assertion `result <= _rtld_local._dl_tls_max_dtv_idx' failed!
potrebbe essere l'aggiornamento che ho fatto al glibc 2.3.5 ?
_________________
C.


Last edited by CarloJekko on Tue Jul 19, 2005 2:55 pm; edited 4 times in total
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu May 05, 2005 3:25 pm    Post subject: Re: [ot] matlab 7 e glibc Reply with quote

CarloJekko wrote:
Oggi mi sono accorto che il matlab 7 non funziona più
mi dà quest'errore
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future ## questo lo dava anche prima


infatto non é un problema. se vuoi puoi correggere lo script come indicato e rimuoverlo

Quote:
Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 75: _dl_next_tls_modid: Assertion `result <= _rtld_local._dl_tls_max_dtv_idx' failed!
potrebbe essere l'aggiornamento che ho fatto al glibc 2.3.5 ?


beh quello sembra essere un problema in una libreria....
lo strano é che normalmente i programmi proprietari sono linkati staticamente
_________________
Ciao da me!
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu May 05, 2005 3:27 pm    Post subject: Reply with quote

hai perfettamente ragione... sembra strano anche a me
_________________
C.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Thu May 05, 2005 3:48 pm    Post subject: Reply with quote

CarloJekko wrote:
hai perfettamente ragione... sembra strano anche a me


Prova con ldd a scoprire le librerie che cerca matlab... oppure manda una mail al loro supporto tecnico
_________________
Ciao da me!
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu May 05, 2005 4:28 pm    Post subject: Reply with quote

randomaze wrote:
oppure manda una mail al loro supporto tecnico

hmmm.... Forse no :wink:
P.s. meglio se provo con ldd....
_________________
C.
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Thu May 05, 2005 5:41 pm    Post subject: Reply with quote

Mi pare che matlab abbia problemi con la versione NPTL delle glibc. Spero che tu abbia compilato le glibc con flag -nptlonly: in questo caso prova a lanciarlo con
Code:
LD_ASSUME_KERNEL=2.4.1 matlab

per usare la vecchia thread library.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu May 05, 2005 5:58 pm    Post subject: Reply with quote

Code:
LD_ASSUME_KERNEL=2.4.1 matlab
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory


Code:
 LD_PRELOAD=/lib/libdl.so.2  LD_ASSUME_KERNEL=2.4.1   matlab
ERROR: ld.so: object '/lib/libdl.so.2' from LD_PRELOAD cannot be preloaded: ignored.
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory


mie use
Code:
USE="cups slp opengl arts avi cdparanoia cdrom divx4linux dvd dvdr \
     dvdread dxr3 ffmpeg real gimp gimpprint mmx mmx2  mp3 mpeg mpeg4 \
     mplayer nvidia avi dv esd sblive fbcon java gphoto2 hal javascript \
     kde xv quicktime sse sse2 v4l v4l2 X xine xvid win32codecs joystick \
     ogg font-server nptl nptlonly codecs -pam \
     mozdevelop moznoxft mozsvg mozxmlterm"


_________________
C.
Back to top
View user's profile Send private message
fabius
Guru
Guru


Joined: 29 Nov 2004
Posts: 525

PostPosted: Thu May 05, 2005 6:06 pm    Post subject: Reply with quote

Prova a dare un
Code:
eu-readelf -n /lib/libc-${LIBC_VERSION}.so

dove LIBC_VERSION dipende da quale hai installato. Io ottengo ad esempio
Code:
Note segment of 32 bytes at offset 0x00000174:
  Owner          Data size  Type
  GNU                   16  VERSION
    OS: Linux, ABI: 2.4.1

Ora metti in LD_ASSUME_KERNEL il numero vicino ad ABI
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Thu May 05, 2005 6:26 pm    Post subject: Reply with quote

è stupido usare nptlonly se si ha software proprietario nel sistema

a me matlab 7 funziona sia con glibc 2.3.5 nptl che con glibc 2.3.5 linuxthreads, però diversi toolbox su nptl non vanno
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Fri May 06, 2005 1:07 pm    Post subject: Reply with quote

Code:
PenguinianRemake root # eu-readelf -n /lib/libc-2.3.5.so

Note segment of 32 bytes at offset 0x00000194:
  Owner          Data size  Type
  GNU                   16  VERSION
    OS: Linux, ABI: 2.6.6
PenguinianRemake root # LD_ASSUME_KERNEL=2.6.6   matlab
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 75: _dl_next_tls_modid: Assertion `result <= _rtld_local._dl_tls_max_dtv_idx' failed!

Ma con il 2.3.4-2005 funzionava con nptl e nptl-only
Dovrei ricompilare il glibc senza queste due use?
Ma poi il sistema perde il 33% più o meno della velocità
@Ghepeu
mi dici quali toolbox non funzionano con nptl?
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Tue May 17, 2005 3:43 pm    Post subject: Reply with quote

Ho da poco ricompilato il glibc con le sole librerie nptl
Il matalab funziona ma con il comando LD_ASSUME

Googlando un pò e facendo una ricerca ho trovato un post di uno che aveva il mio stesso problema https://forums.gentoo.org/viewtopic-t-288348-highlight-matlab+glibc+nptl.html

Pare che il problema sia dei driver NVIDIA
lui risolve facendo opengl-update xorg-x11
io installando i driver nvdia con il suffisso --force-tls=classic

Domanda : volendo rimanere con l'installazione di gentoo che è moooolto più comoda mi conviane fare opengl-update xorg-x11 e quando ho finito di lavorare opengl-update nvidia ? torna tutto come prima ? Pure l'accelerazione 3d ? Grazie cmq a tutti
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Tue Jun 14, 2005 12:38 pm    Post subject: Reply with quote

riesumo questo post....
Allora ho visto che il matlab R14 non è ufficialmente compatibile con il kernel 2.6.x
http://www.mathworks.com/support/sysreq/release14/unix.html
questi i requisiti
Linux - built using Kernel 2.4.x and glibc (glibc6) 2.2.5
Io Kernel Linux 2.6.11-gentoo-r9 e glibc (glibc6) 2.3.5
E molte cose come il symbolic (necessario per le eq differenziali) non mi fungono

solo Matlab R14 Sp2 supporta
Linux Kernel 2.6.x and glibc (glibc6) 2.3.2 ( http://www.mathworks.com/support/sysreq/current_release/unix.html )
visto che non ho la possibilità di installare l'sp2, la domanda è questa:
Posso avere due kernel differenti (sono sicuro di sì ma non sò come fare)
Questa è più difficile : Posso avere due glibc differenti ?
Grazie in anticipo...
_________________
C.
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Tue Jun 14, 2005 3:10 pm    Post subject: Reply with quote

c'è una FAQ di fedeli per quello, mi ricordo di averne visto il titolo
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Tue Jun 14, 2005 9:28 pm    Post subject: Reply with quote

quella di fedeli è di avere 2 kernel... e di metterli nel file di grub.. ma questo lo sò...
il prob mio è di mettere due kernel di cui unoi deve essere 2.4.28 ke sappia usare le glibc nptl ma non nptlonly... o di avere due glibc
_________________
C.
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Tue Jun 14, 2005 11:04 pm    Post subject: Reply with quote

matlab r14 (compreso il symbolic) funziona senza problemi su kernel 2.6 e glibc 2.3.5, lo uso da mesi

l'unica cosa che serve è avere le glibc compilate SENZA nptlonly, in modo da avviarlo con LD_ASSUME_KERNEL=2.4.1
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Wed Jun 15, 2005 8:33 am    Post subject: Reply with quote

fai questa operazione.. a me dà un errore nel libc6 (con ld_assume)
Code:
a=sym(1)/sym(2)
b=sym(1)/sym(3)
a+b

Così proviamo se è veramente il miomatlab..
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Sat Jun 25, 2005 8:58 pm    Post subject: Reply with quote

Riesumo per l'ennesima volta questo post... SCUSATE SE VI ROMPO DI NUOVO!
allora, a scanso di equivoci ho messo il matlab r14 sp2 che funziona perfettamente con il mandrake di un mio amico con ld_assume_kernel=2.4.1 con kerne 2.6.8.
A me, quando carico il symbolic, mi restituisce
Code:
??? Invalid MEX-file '/home/matlab/toolbox/symbolic/maplemex.mexglx': /home/matlab/bin/glnx86/libmaple.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference.

Error in ==> maple at 104
[result,status] = maplemex(statement);

Error in ==> sym.sym at 107
         maple([x ':=''' x '''']);

Che può essere ?
Code:
PenguinRemake carlo # eu-readelf -n /lib/libc-2.3.5.so

Note segment of 32 bytes at offset 0x194:
  Owner          Data size  Type
  GNU                   16  VERSION
    OS: Linux, ABI: 2.4.1

Code:
PenguinRemake carlo # emerge -pv glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5  -build -debug -erandom -hardened (-multilib) +nls -nomalloccheck +nptl -nptlonly -pic +userlocales 0 kB

Total size of downloads: 0 kB
E' possibile che debba ricompilare qualcosa?
EDIT
sul sito ho trovato questo
Code:
obtain a version of the C library that contains support for the version 2.0 symbols -- glibc-2.2.5 supports these symbols. Place this version of the library into $MATLAB/sys/os/glnx86 for MATLAB's use, where $MATLAB is the root MATLAB directory.

come faccio a compilare il glibc-2.2.5 e metterlo qui $MATLAB/sys/os/glnx86 ? senza però toccare il glibc che già ho?
facendo
Code:
emerge -B glibc-2.2.5.ebuild
? GRAZIE
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Sun Jun 26, 2005 9:53 pm    Post subject: Reply with quote

Anche emergendo quel pacchetto e mettendolo in /os/glx86 mi dà un secondo errore con sed (credo che sed awk e grep non supportino quelle librerie)
Che casino ho da fare un'esame :( ... la soluzione che ho trovato è la + triviale ma è la + veloce e sopratutto è l'unica
installo un secondo gentoo su una parrtizione scema di 200 Mb e metto solo il glibc il gcc il kernel e l'x11 :twisted: :twisted: :twisted: :twisted: :twisted:
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Wed Jul 06, 2005 5:49 pm    Post subject: Reply with quote

Riesumo questo post per la 150.000 volta... (appena faccio quest'esame vado dalla mathworks e gli lancio i loro cd appresso :lol: )
Allora.. dopo aver installato una "nuova gentoo super minimale" tutto filava liscio come l'olio... era stupenda matlab fungeva al 101% (andava anche l'openGL che sul winzozz di un mio collega con una cpu di 400 Mhz in più e con tecnologia HT, andava a scatti.. come godevo :D )
Però, con la mia testa fracica, mi sono messo a "sbariare" e ricompilare il glibc... solo che alla fine una einfo che ho appena fatto in tempo a leggere mi diceva che il glibc lo dovevo compilare con -Wl ed altre cose che non ho fatto in tempo a segnarmi... conclusione il matlab mi dà gli stessi errori della Super-Gentoo originale... Come faccio a prendere questa einfo? nel suo ebuild non c'è... Cmq se non si risolve reinstallo tutto... tanto con lo stage3 e la funzione super-minimale impiego 2 ore ad installarlo... solo che se riesco a risolvere senza è meglio... Grazie a tutti...
_________________
C.
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Tue Jul 19, 2005 2:56 pm    Post subject: Reply with quote

up soluzione... vedi 1° post
_________________
C.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum