[Scilab-users] Scilab compilation from scratch (was Re: spec can crash scilab)

Clément David Clement.David at esi-group.com
Mon May 10 09:12:22 CEST 2021


This one is less obvious and will require more explanation.
In Scilab 6, we use modern C++ (C++11 and later) on our codebase which requires to have modern compilers and runtime libraries (libstdc++ libgfortran). For the compilation chain, we build gcc 8 on an old centos 6 distribution so runtimes are available. For people using Scilab, to avoid clashing between the system libstdc++/libgfortran and Scilab libstdc++/libgfortran, the Scilab runtime libraries are renamed to libscistdc++/libscigfortran.  

For building toolboxes against the Scilab runtime libraries and their libstdc++.so and libgfortran.so development libraries are provided on the Prerequirements. This is the source of your issue as the Prerequirements LDFLAGS are detected and used at configure-time. To fix, remove libstdc++.so and libgfortran.so on the Prerequirements; this will make your Scilab-build tied to your system; this is good for development purposes.

Regards,

Clément

> -----Original Message-----
> From: users <users-bounces at lists.scilab.org> On Behalf Of Antoine
> Monmayrant
> Sent: Sunday, May 9, 2021 4:39 PM
> To: users at lists.scilab.org
> Subject: Re: [Scilab-users] Scilab compilation from scratch (was Re: spec can
> crash scilab)
> 
> Hello all,
> 
> Just a quick update:
> (1) I installed & configured as default : openjdk-8 gcc-8 g++8
> (2) I had to rm everything and restart from scratch: somehow, my first try at
> compiling with openjdk-11 had left some *.class files behind (with the wrong
> version) that make clean is not removing
> (3) Now I am stuck at libscigfortran not being found. I'm pretty sure I miss
> some mystery -lrandomlibame flag or someLD_* stuff... :
>      /usr/bin/ld: warning: libscigfortran.so.5, needed by
> /home/amonmayr/softs/scilab-
> recompile/scilab_master/scilab/usr/lib/liblapack.so,
> not found (try using -rpath or -rpath-link)
> 
> If anyone who knows more than me about ld flags wants to chime in, I could
> do with a bit of help...
> 
> Cheers,
> 
> 
> Antoine
> PS: I tried to join config.log but the email got too big for the mailing list...
> 
> On 07/05/2021 18:18, Clément David wrote:
> > Hello Antoine,
> >
> > This issue might comes from a wrong jdk version, you should have
> > openjdk8 installed on your machine and it should be listed at
> > configure time. Could you post the config.log file for further
> > investigation ?
> >
> > Thanks,
> >
> > Clément
> >
> > -----Original Message-----
> > From: users <users-bounces at lists.scilab.org> On Behalf Of Antoine
> > Monmayrant
> > Sent: Friday, May 7, 2021 5:40 PM
> > To: users at lists.scilab.org
> > Subject: [Scilab-users] Scilab compilation from scratch (was Re: spec
> > can crash scilab)
> >
> > Hello all,
> >
> > In order to try to mitigate bug 15330, I try to compile scilab from
> > source on Linux Ubuntu 18.04 64bits.
> > I follow the explanations from
> > https://wiki.scilab.org/Compilation%20of%20Scilab [Linux x86_64 cheat
> > sheet].
> > Sadly, I don't go really far as the prebuild of java fails:
> >
> >
> >     Makefile:756: recipe for target 'java' failed
> >
> > Am I missing something?
> > Are there other infos somewhere, in particular concerning the
> > dependencies ?
> > Is there a more detailed tutorial for building scilab?
> >
> > Cheers,
> >
> > Antoine
> >
> >
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> > http://lists.scilab.org/mailman/listinfo/users
> >
> 
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


More information about the users mailing list