Hello Everyone,

I figured it may be useful to make a summary of the issues that I
encountered as I made a conda package for Scilab. The information already
exists in a couple of other threads but is scattered accross many messages.
Hopefully, the core team will be able to resolve some of these for the next
version of scilab.

*1) *Only scilab-cli was included in the conda package, and not the
graphical interface.

The reason is that scilab does not build with *openjdk* 11, and requires an
older version that has not been packaged for conda.

*2) *scilab does not build on OS X when using the *--without-matio* option.

The build ends with the following error:

ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make[1]: *** [libscimatio-algo.la] Error 1


Fortunately, we were able to package matio for conda-forge as well, so this
error does not impact us anymore. However, I do think that we should be
able to use that option.

*3)* We cannot build headless scilab on OS X

It seems that we cannot build scilab with the *--without-gui *option on OS
X. The build fails over the symbol *_initMacOSXEnv* not being found.

Stephane Mottelet proposed to apply a patch to the generated makefile after
the configure stage to overcome that issue.

macmottelet-cr-0:scilab mottelet$ diff -Naur Makefile.orig Makefile
--- Makefile.orig    2019-04-01 11:55:47.000000000 +0200
+++ Makefile    2019-04-01 11:56:12.000000000 +0200
@@ -109,7 +109,7 @@
 POST_UNINSTALL = :
 build_triplet = x86_64-apple-darwin17.7.0
 host_triplet = x86_64-apple-darwin17.7.0
-bin_PROGRAMS = scilab-bin$(EXEEXT) scilab-cli-bin$(EXEEXT)
+bin_PROGRAMS = scilab-cli-bin$(EXEEXT)
 am__append_1 = bin/checkmacosx.applescript



This patch allows scilab-cli to build completely on OS X, but then scilab
fails to start at runtime (the conda recipe has a sanity check that we can
run the executable)

+_CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_apple_darwin13_4_0
+ scilab-cli -version
dyld: Symbol not found: __ZN14CoverageModule4LoadEv

Stéphane advised to use the *--enable-code-coverage=no* option which does
not solve the issue unfortunately.

Hopefuly, this summary will be useful for others.

Best,

Sylvain
_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to