[Ifit-users] ifit: external programs and library errors

farhi farhi at ill.fr
Thu Nov 19 14:31:59 CET 2015


 

Hi Victor,

This issue is related to libraries shipped by MATLAB being older than
that of the system.
In your case this relates to LIBGCC_S. Other libraries may also be
concerned, e.g. LIBGFORTRAN.
I suggest an iterative solution.

REMOVE THE MATLAB LIBRARY
% sudo mv
/opt/MATLAB/MATLAB_Compiler_Runtime/v713/sys/os/glnxa64/libgcc_s.so.1
/opt/MATLAB/MATLAB_Compiler_Runtime/v713/sys/os/glnxa64/libgcc_s.so.1.org

then try again in case MATLAB would seek for the library from the
system.

IF THIS DOES NOT WORK, COPY THE SYSTEM LIBRARY IN PLACE OF THE MATLAB
ONE
% locate libgcc_s
/lib/x86_64-linux-gnu/libgcc_s.so.1
/usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so
% sudo cp /lib/x86_64-linux-gnu/libgcc_s.so.1
/opt/MATLAB/MATLAB_Compiler_Runtime/v713/sys/os/glnxa64/libgcc_s.so.1

Tell me if this works.
Emmanuel.

Le 2015-11-19 14:18, laliena a écrit : 

> Dear Emmanuel,
> 
> I am trying to use ifit for optimizing a guide, as I did one year ago, 
> and it does not work. There is a problem with compilation.
> The instrument can be compiled and run on the command line with the same 
> parameters. The compilation gives many warnings but no error.
> 
> Do you know what is happening and how to solve the problem? Below I copy 
> the error message from ifit.
> 
> Many thanks in advance.
> 
> Best whishes,
> Victor
> 
> -----------------------------------------
> 
> 1.7 iFit/iData (Oct. 14, 2015) by E.Farhi, P. Willendrup and Y.Debab, 
> (c) ILL/DS/CS <farhi at ill.eu> EUPL. $Date$
> 
> ** Starting iFit on 19-Nov-2015 14:09:59
> Type 'help' to learn how to use this software.
> iFit help is fully available at <http://ifit.mccode.org [1]>.
> Matlab help is fully available at 
> <http://www.mathworks.com/help/techdoc [2]>.
> Type 'exit' or Ctrl-C to exit.
> 
> iFit:1>> argument optim_multi.m
> Reading file 
> /home/victor/Work/neutrons/NMI3/simulations/IN5_guide/simulations/whole_instr/optim_multi.m
> 
> options =
> 
> monitors: 'sampleMon_nD'
> TolFun: '0.1%'
> 
> mcstas: optimize: mcrun ILL_H16_IN5_new.instr --ncount=100000000 
> --dir=run_1 --mpi=4 he12=41 re21=0.5 re22=0.5 hi11=41 hi12=31 ri21=0.5 
> ri22=0.5 mExt=2 mInt=2
> Can't load '/usr/lib/perl5/auto/PGPLOT/PGPLOT.so' for module PGPLOT: 
> /opt/MATLAB/MATLAB_Compiler_Runtime/v713/sys/os/glnxa64/libgcc_s.so.1: 
> version `GCC_4.3.0' not found (required by 
> /usr/lib/x86_64-linux-gnu/libgfortran.so.3) at 
> /usr/lib/perl/5.18/DynaLoader.pm line 184.
> at /usr/share/mcstas/2.2a/tools/Perl/perl/mccode_config.perl line 123.
> Compilation failed in require at 
> /usr/share/mcstas/2.2a/tools/Perl/perl/mccode_config.perl line 123.
> Compilation failed in require at /usr/bin/mcrun line 55.
> 
> Error when evaluating expression:
> p.he12=[1.0 41 70]; % range min,start,max
> p.re21=[0.0 0.5 1.0];
> p.re22=[0.0 0.5 1.0];
> p.hi11=[1.0 41 70];
> p.hi12=[1.0 31 52];
> p.ri21=[0.0 0.5 1.0];
> p.ri22=[0.0 0.5 1.0];
> p.mExt=2;
> p.mInt=2;
> 
> ---------------------------------------------

-- 
FARHI Emmanuel <farhi at ill.fr>
Groupe DS/CS, ILL4/156, Tel (33) 4 76 20 71 35
ILL, Grenoble
 

Links:
------
[1] http://ifit.mccode.org
[2] http://www.mathworks.com/help/techdoc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mcstasmailman.esss.dk/pipermail/ifit-users/attachments/20151119/1c47c13c/attachment.html>


More information about the ifit-users mailing list