Scilab gives the error "SCI environment variable not defined." when run in profiling mode

354 Views Asked by At

I am trying to run Scilab in profiling mode as shown here.So I run the following commands

$ export SCILAB_VALGRIND_OPT="--db-attach=no --log-file=myfile.txt"
$ scilab-cli -profiling

But I get the error

 Running profiling of Scilab  :  valgrind --show-below-main=yes --num-callers=12 --demangle=yes --leak-check=full --show-reachable=yes --smc-check=all --db-attach=yes --gen-suppressions=all --show-below-main=yes --track-origins=yes --suppressions=/usr/share/scilab//tools/profiling/valgrind.supp --db-attach=no --log-file=scilabsegerr.txt /usr/bin/scilab-cli-bin -profiling
valgrind: Unknown option: --db-attach=yes
valgrind: Use --help for more information or consult the user manual.

Somehow db-attach is repeated twice.When I just run valgrind and remove db-attach option like the following

$ valgrind --show-below-main=yes --num-callers=12 --demangle=yes --leak-check=full --show-reachable=yes --smc-check=all --gen-suppressions=all --show-below-main=yes --track-origins=yes --suppressions=/usr/share/scilab//tools/profiling/valgrind.supp --log-file=scilabsegerr.txt /usr/bin/scilab-cli-bin -profiling

I get the error "SCI environment variable not defined."

0

There are 0 best solutions below