RNT libcxa.so.5

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
feroda

RNT libcxa.so.5

#1 Unread post by feroda »

In RNT, I met a problem when run MAIN_ncfiles_forc.m:

??? Invalid MEX-file '/home/tiger/RNT/matlib/rnt/rnt_oa2d_mex.mexglx': libcxa.so.5: cannot open shared object file: No such file or directory.MAIN_ncfiles_forc.

Error in ==> rnt_oapmap at 47
[t2,t2err]=rnt_oa2d_mex(lonr,latr,t1,lon,lat,pmap,5,5);

Error in ==> rnc_Extract_UVwinds_NCEP at 134
[pmap]=rnt_oapmap(ncep.lon(noin),ncep.lat(noin),ncep.mask(noin) ,ncep.lon(in),ncep.lat(in),20);

Error in ==> rnc_Extract_SurfFluxes_NCEP at 38
ncep = rnc_Extract_UVwinds_NCEP(lonr,latr, mydatenum, avg_freq);end

Error in ==> MAIN_ncfiles_forc at 43
forcd = rnc_Extract_SurfFluxes_NCEP(grd.lonr,grd.latr, ctlf.datenum, 'clima',vars);


Is there any one has met this problem? What does it mean and how should it be fixed?
Thanks very much!

robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: RNT libcxa.so.5

#2 Unread post by robertson »

It appears that the mex file you're using (/home/tiger/RNT/matlib/rnt/rnt_oa2d_mex.mexglx) was compiled with the Intel Fortran compiler and you either don't have the Intel compiler or the lib directory for the Intel compiler is not in your library path. The error is telling you that rnt_oa2d_mex.mexglx is looking for libcxa.so.5. If you don't have that library on your system, you can find instructions for compiling the rnt mex files with g95 :arrow: here and should be able to adapt those instructions for your particular fortran compiler. If you do have it you can try setting your LD_LIBRARY_PATH environment variable to the directory that contains your libcxa.so.5 file before you start Matlab. However, this approach does not always work.

feroda

Re: RNT libcxa.so.5

#3 Unread post by feroda »

Thank you for your reply!
I did as the instruction in the link. Unfortunately, more errors pop up:

Filling nan for month... 12
sustr
svstr

------------------------------------------------------------------------
Segmentation violation detected at Thu Jan 22 01:50:56 2009
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.4.0.336 (R2007a)
MATLAB License: 161051
Operating System: Linux 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686
GNU C Library: 2.8.90 development
Window System: The X.Org Foundation (10502000), display :0.0
Current Visual: 0x21 (class 4, depth 24)
Processor ID: x86 Family 6 Model 7 Stepping 6, GenuineIntel
Virtual Machine: Java is not enabled
Default Charset: UTF-8

Register State:
eax = fffffff8 ebx = b289647c
ecx = b7502180 edx = 00000000
esi = fffffff8 edi = fffffff8
ebp = bf916638 esp = bf916540
eip = b283fc7c flg = 00010246

Stack Trace:
[0] rnt_oa2d_mex.mexglx:0xb283fc7c(0, 0, 0, 0)
[1] rnt_oa2d_mex.mexglx:mexfunction_~(0xbf916720, 0xbf916f14, 0xbf916728, 0xbf916f74) + 429 bytes
[2] libmex.so:mexRunMexFile(2, 0xbf916f14, 8, 0xbf916f74) + 137 bytes
[3] libmex.so:Mfh_mex::runMexFileWithSignalProtection(int, mxArray_tag**, int, mxArray_tag**)(0xb26f7c70, 2, 0xbf916f14, 8) + 173 bytes
[4] libmex.so:Mfh_mex::dispatch_file(int, mxArray_tag**, int, mxArray_tag**)(0xb26f7c70, 2, 0xbf916f14, 8) + 251 bytes
[5] libmwm_dispatcher.so:Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**)(0xb26f7c70, 2, 0xbf916f14, 8) + 217 bytes
[6] libmwm_interpreter.so:ResolverFunctionDesc::CallFunction(int, mxArray_tag**, int, mxArray_tag**)(0xbf9174e0, 2, 0xbf916f14, 8) + 808 bytes
[7] libmwm_interpreter.so:Resolver::CallMFunction(int, int, _m_operand*, m_operand_storage*, int, _m_operand*, m_operand_storage*, int*)(0xbf9170bc, 2, 2, 0xb4ecd2b0) + 1463 bytes
[8] libmwm_interpreter.so:inResolveMFunctionCall(_m_function_desc*, int, int, _m_operand*, m_operand_storage*, int, _m_operand*, m_operand_storage*, int*, inMarshalType*, int, mpsTypeSequenceNlhs const*)(0x0a421ae0, 2, 2, 0xb4ecd2b0) + 409 bytes
[9] libmwm_interpreter.so:accelMFunctionCall(_accelOp*, _accelOp**, int*, inMarshalType*, void*)(0x0a527220, 0xbf9175f8, 0xbf9175fc, 0xbf917780) + 193 bytes
[10] libmwm_interpreter.so:accelImpl::Exec()(0xbf9175e0, 0x0a422b60 ", 0xbf9175e8, 0xb75f4031) + 239 bytes
[11] libmwm_interpreter.so:inAccel(accelCode*, inMarshalType*, int*)(0xb28abb00 ", 0xbf917780, 0xbf91777c, 0xb7b0fbe0) + 87 bytes
[12] libmwm_interpreter.so:inExecuteHotSegment(_inJitAccelInfo*, opcodes*, int*, int*)(0xbf9177e4, 0xbf9177f4, 0xbf9177f0 ", 0xbf9177ec) + 1290 bytes
[13] libmwm_interpreter.so:inExecuteMFunctionOrScript(Mfh_mp*, bool)(0x0a6444e0, 0, 0x0a6444e0, 6) + 705 bytes
[14] libmwm_interpreter.so:inWordsj(1, 0xbf917bc4, 6, 0xbf917c24) + 303 bytes
[15] libmwm_interpreter.so:Mfh_mp::dispatch_file(_mdUnknown_workspace*, int, mxArray_tag**, int, mxArray_tag**)(0x0a6444e0, 0, 1, 0xbf917bc4) + 283 bytes
[16] libmwm_interpreter.so:Mfh_mp::dispatch_file(int, mxArray_tag**, int, mxArray_tag**)(0x0a6444e0, 1, 0xbf917bc4, 6) + 54 bytes
[17] libmwm_dispatcher.so:Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**)(0x0a6444e0, 1, 0xbf917bc4, 6) + 217 bytes
[18] libmwm_interpreter.so:ResolverFunctionDesc::CallFunction(int, mxArray_tag**, int, mxArray_tag**)(0xbf918190, 1, 0xbf917bc4, 6) + 808 bytes
[19] libmwm_interpreter.so:Resolver::CallMFunction(int, int, _m_operand*, m_operand_storage*, int, _m_operand*, m_operand_storage*, int*)(0xbf917d6c, 1, 1, 0xb299aa30) + 1463 bytes
[20] libmwm_interpreter.so:inResolveMFunctionCall(_m_function_desc*, int, int, _m_operand*, m_operand_storage*, int, _m_operand*, m_operand_storage*, int*, inMarshalType*, int, mpsTypeSequenceNlhs const*)(0x0af9d348, 1, 1, 0xb299aa30) + 409 bytes
[21] libmwm_interpreter.so:accelMFunctionCall(_accelOp*, _accelOp**, int*, inMarshalType*, void*)(0x0afaccd0, 0xbf9182a8 ", 0xbf9182ac, 0xbf918430) + 193 bytes
[22] libmwm_interpreter.so:accelImpl::Exec()(0xbf918290, 0x0a422b60 ", 0xbf918298 ", 0xb75f4031) + 239 bytes
[23] libmwm_interpreter.so:inAccel(accelCode*, inMarshalType*, int*)(0xb28abc00, 0xbf918430, 0xbf91842c, 0xb7b0fbe0) + 87 bytes
[24] libmwm_interpreter.so:inExecuteHotSegment(_inJitAccelInfo*, opcodes*, int*, int*)(0xbf9185a4, 0xbf9185ec, 0xbf9185b8 "v\n", 0xbf9189fc) + 1290 bytes
[25] libmwm_interpreter.so:.L694(1, 3630, 180, 0) + 210 bytes
[26] libmwm_interpreter.so:protected_inInterp(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(1, 3630, 21, 0) + 112 bytes
[27] libmwm_interpreter.so:inInterPcodeSJ(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(0, 0xbf918ae4, 0xbf9189fc, 0xbf9189fc) + 318 bytes
[28] libmwm_interpreter.so:inExecuteMFunctionOrScript(Mfh_mp*, bool)(0x0a643bd0, 0, 0x0a643bd0, 0xfffffffa) + 451 bytes
[29] libmwm_interpreter.so:inWordsj(1, 0xbf918d5c, 5, 0xbf918dbc) + 303 bytes
[30] libmwm_interpreter.so:Mfh_mp::dispatch_file(_mdUnknown_workspace*, int, mxArray_tag**, int, mxArray_tag**)(0x0a643bd0, 0, 1, 0xbf918d5c) + 283 bytes
[31] libmwm_interpreter.so:Mfh_mp::dispatch_file(int, mxArray_tag**, int, mxArray_tag**)(0x0a643bd0, 1, 0xbf918d5c, 5) + 54 bytes
[32] libmwm_dispatcher.so:Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**)(0x0a643bd0, 1, 0xbf918d5c, 5) + 217 bytes
[33] libmwm_interpreter.so:inDispatchWithDebug(0xbf918d5c, 5, 0xbf918dbc, 0) + 436 bytes
[34] libmwm_interpreter.so:inDispatchFromStack(680, 0x09c78876 "rnc_Extract_SurfFluxes_NCEP", 1, 5) + 1400 bytes
[35] libmwm_interpreter.so:.L89(33, 0xffffffef, 1, 0) + 38 bytes
[36] libmwm_interpreter.so:.L671(1, 0, 41, 0) + 209 bytes
[37] libmwm_interpreter.so:protected_inInterp(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(1, 0, 21, 0) + 112 bytes
[38] libmwm_interpreter.so:inInterPcodeSJ(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(0, 0xbf919514, 0xbf91942c, 0xbf91942c) + 318 bytes
[39] libmwm_interpreter.so:inExecuteMFunctionOrScript(Mfh_mp*, bool)(0x0a138d10, 1, 0xbf91978c, 0) + 451 bytes
[40] libmwm_interpreter.so:inExecCompScript(0, 0xbf91978c, 0x0a138d10, 0xb7bc44f4) + 270 bytes
[41] libmwm_interpreter.so:Mfh_mp::dispatch_file(_mdUnknown_workspace*, int, mxArray_tag**, int, mxArray_tag**)(0x0a138d10, 0, 0, 0xbf91978c) + 224 bytes
[42] libmwm_interpreter.so:Mfh_mp::dispatch_file(int, mxArray_tag**, int, mxArray_tag**)(0x0a138d10, 0, 0xbf91978c, 0) + 54 bytes
[43] libmwm_dispatcher.so:Mfh_file::dispatch_fh(int, mxArray_tag**, int, mxArray_tag**)(0x0a138d10, 0, 0xbf91978c, 0) + 217 bytes
[44] libmwm_interpreter.so:inDispatchWithDebug(0xbf91978c, 0, 0xbf9197ec, 0) + 436 bytes
[45] libmwm_interpreter.so:inDispatchFromStack(601, 0xb26ee5e4 "MAIN_ncfiles_forc", 0, 0) + 1400 bytes
[46] libmwm_interpreter.so:inDispatchCall(char const*, int, int, int, int*, int*)(0, 0xbf919ad8, 0xb26ee5d8, 0x09ba409c) + 160 bytes
[47] libmwm_interpreter.so:.L694(2, 0, 0, 0) + 165 bytes
[48] libmwm_interpreter.so:protected_inInterp(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(2, 0, 0, 0) + 112 bytes
[49] libmwm_interpreter.so:inInterPcodeSJ(inDebugCheck, int, int, opcodes, inPcodeNest_tag*, int*)(0, 0xb1cfa6f0, 0xbf919ec0, 0xbf919f7c) + 318 bytes
[50] libmwm_interpreter.so:inInterPcode(2, 0, 0xb76a8460, 0xb76a7a40) + 113 bytes
[51] libmwm_interpreter.so:inEvalStringWithIsVarFcn(_memory_context*, char const*, EvalType, int, mxArray_tag**, inDebugCheck, _pcodeheader*, int*, bool (*)(void*, char const*), void*)(0xb7ede528, 0x0a15fce0 "MAIN_ncfiles_forc\n", 0, 0) + 4149 bytes
[52] libmwm_interpreter.so:inEvalCmdNoEnd(0x0a15fce0 "MAIN_ncfiles_forc\n", 1, 0, 0x495ef97b) + 126 bytes
[53] libmwbridge.so:ThrowSignal(char const*)(0x0a15fce0 "MAIN_ncfiles_forc\n", 1, 0xb7e1e830, 0xb7bf5d5c) + 145 bytes
[54] libmwbridge.so:mnParser(0xbf91ac04, 0x09ad2a10, 1, 0xb7be4f12) + 277 bytes
[55] libmwmcr.so:mcrInstance::mnParser()(0x09ad2a10, 0xbf91ce98, 0x09ad2a00, 0x09ad2a48 ") + 52 bytes

This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

If it is an official MathWorks function, please
follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:

The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to segv@mathworks.com with the following file attached:
/home/tiger/matlab_crash_dump.10759

If the problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contac ... est_1.html

A technical support engineer might contact you with further information.

Thank you for your help. Save your workspace and restart MATLAB.

Error in ==> rnt_oapmap at 47
[t2,t2err]=rnt_oa2d_mex(lonr,latr,t1,lon,lat,pmap,5,5);

Error in ==> rnc_Extract_SurfFluxes_NCEP at 186
[pmap]=rnt_oapmap(ncep.lon(noin),ncep.lat(noin),ncep.mask(noin) ,ncep.lon(in),ncep.lat(in),20);

Error in ==> MAIN_ncfiles_forc at 41
forcd = rnc_Extract_SurfFluxes_NCEP(grd.lonr,grd.latr, ctlf.datenum, 'clima',vars);



It is really terrible!
RNT is quite convenient to use. But it is highly OS depended, I think, which limits it's power.

Anyway, I am greatly appreciated your help for the above issues. Thank you very much.

DongYe
Posts: 7
Joined: Mon Oct 13, 2008 6:21 pm
Location: Institue of Atmospheric Physics,CAS

Re: RNT libcxa.so.5

#4 Unread post by DongYe »

have you figure out your problem ,I also encounter the problem

mathieu
Posts: 74
Joined: Fri Sep 17, 2004 2:22 pm
Location: Institut Rudjer Boskovic

Re: RNT libcxa.so.5

#5 Unread post by mathieu »

Another method to avoid the libcxa problem is to compile with the option -static-libcxa.

angelolemos
Posts: 34
Joined: Wed Mar 11, 2009 4:24 pm
Location: UFES

Re: RNT libcxa.so.5

#6 Unread post by angelolemos »

Hi Dears,

My problem is almost the same.

>> MAIN_ncfiles_clima_TS
----------STAGE 3 ----------
Doing Levitus Clima ...
RNT_GRIDINFO - brazilconfigured
HC set from minumum depth WARNING! -10
-- time level 1
Updating ...
WARNING: check always spacing of depth array - manu
NaN values found in Tn
??? Invalid MEX-file '/home/angelolemos/src/ROMS/roms-grid/matlab/rnt/rnt_2s_mex.mexglx': libifcoremt.so.5:
cannot open shared object file: No such file or directory.

Error in ==> rnt_2s at 47
Ts1=reshape( rnt_2s_mex(Tn1,size(Tn1),Sn1,size(Sn1),Zn,size(Zn)), [size(Sn1)]);

Error in ==> rnc_UpdateLevitusClima at 23
tmp=rnt_2s(tempgr,z_r,z);

Error in ==> MAIN_ncfiles_clima_TS at 21
rnc_UpdateLevitusClima(grd,clmfile,levitus); % LevitusClima.m

Someone can help me?

Post Reply