Scilab compile fails with cast error

Hello all,

i need/want to compile scilab from source. I pulled the latest from github using

git clone -b main git@gitlab.com:scilab/scilab.git

I although unpacked the prerequirements from

https://oos.eu-west-2.outscale.com/scilab-releases-dev/prerequirements/prerequirements-scilab-branch-main.bin.x86_64-linux-gnu.tar.xz

./configure finishes nicely.

but make fails with:

rc/c/scicos.c: In function 'scicos_':
src/c/scicos.c:600:31: warning: ISO C forbids assignment between function pointer and 'void *' [-Wpedantic]
  600 |             Blocks[kf].scsptr = p; /* set scilab function adress for sciblk */
      |                               ^
src/c/scicos.c:328:32: warning: unused variable 'job' [-Wunused-variable]
  328 |     int i1, kf, lprt, in, out, job = 1;
      |                                ^~~
src/c/scicos.c: In function 'cossim':
src/c/scicos.c:1456:27: error: passing argument 1 of 'SUNContext_Create' makes integer from pointer without a cast [-Wint-conversion]
 1456 |     if (SUNContext_Create(NULL, &scicos_sunctx) < 0)
      |                           ^~~~
      |                           |
      |                           void *
In file included from ../../modules/differential_equations/src/patched_sundials/include/sundials/sundials_errors.h:23,
                 from ../../modules/differential_equations/src/patched_sundials/include/sundials/sundials_iterative.h:30,
                 from ../../modules/differential_equations/src/patched_sundials/include/cvodes/cvodes_ls.h:22,
                 from ../../modules/differential_equations/src/patched_sundials/include/cvodes/cvodes.h:20,
                 from src/c/scicos.c:44:

Any help ?

Thanks in advance ….

kaffeesurrogat

This means we failed at Update SUNDIALS to latest version 7.4 (!1433) · Merge requests · scilab / scilab · GitLab ; ther will be a quick fix soon as int-conversion is blocker for us :slight_smile:

Hello,

The fix is on the way : Fix #17478 (!1495) · Merge requests · scilab / scilab · GitLab

S.

MR has been merged, your code should compile now.