[Scilab-users] issue building Scilab 6.1.0 arm64 on Ubuntu 19.10 running inside Termux Proot Container

classic Classic list List threaded Threaded
4 messages Options
EnigmaVoidX EnigmaVoidX
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] issue building Scilab 6.1.0 arm64 on Ubuntu 19.10 running inside Termux Proot Container

I have been spending a few days compiling Scilab 6.1.0 git on my Ubuntu 19.10
arm64 OS running inside a proot container.  

After patching for the newer jogl2 packages and getting a few more extra
dependencies I have managed to configure and make up to this point:

```
make[1]: Entering directory '/opt/Scilab/scilab/scilab'
/bin/bash ./libtool  --tag=CXX   --mode=link g++ -std=c++17 -DNDEBUG -g1 -O2
-fno-stack-protector     -lstdc++ -lgfortran  -Wl,--no-as-needed -o
scilab-bin modules/startup/src/cpp/scilab_bin-scilab.o
./modules/libscilab.la ./modules/libscilab-cli.la  -lxml2
-L/usr/lib/aarch64-linux-gnu/valgrind -lcoregrind-arm64-linux
-lvex-arm64-linux -lgcc -L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lpthread -ldl -lcurses
-lgfortran -lm ./modules/console/libsciconsole.la ./modules/jvm/libscijvm.la
./modules/commons/libscicommons.la  ./modules/libscilab.la -lopenblas
-L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lpthread -ldl -lcurses
-lgfortran -lm -lpthread -ldl -lcurses  -lm
libtool: link: g++ -std=c++17 -DNDEBUG -g1 -O2 -fno-stack-protector
-Wl,--no-as-needed -o .libs/scilab-bin
modules/startup/src/cpp/scilab_bin-scilab.o  -lstdc++
-L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64
-L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64/server
-L/usr/lib/aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../..
./modules/.libs/libscilab-cli.so -L/usr/lib/aarch64-linux-gnu/valgrind
-lcoregrind-arm64-linux -lvex-arm64-linux -lgcc
./modules/console/.libs/libsciconsole.so ./modules/jvm/.libs/libscijvm.so
./modules/commons/.libs/libscicommons.so ./modules/.libs/libscilab.so
/opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui.so
/opt/Scilab/scilab/scilab/modules/renderer/.libs/libscirenderer.so
/opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics.so
/opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export.so
/opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole.so
/opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding.so
/opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects.so
/opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes.so
/opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data.so
/opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_browser.so
/opt/Scilab/scilab/scilab/modules/types/.libs/libscitypes-java.so
/opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences.so
/opt/Scilab/scilab/scilab/modules/external_objects_java/.libs/libsciexternal_objects_java.so
/opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm.so -ljava -lverify
-ljvm /opt/Scilab/scilab/scilab/modules/helptools/.libs/libscihelptools.so
/opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons.so
/opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci.so -ltk8.6
-ltcl8.6 /opt/Scilab/scilab/scilab/modules/.libs/libscilab-cli.so
/usr/lib/aarch64-linux-gnu/libcurl-gnutls.so
/opt/Scilab/scilab/scilab/modules/functions/.libs/libscifunctions.so
/opt/Scilab/scilab/scilab/modules/call_scilab/.libs/libscicall_scilab.so
/opt/Scilab/scilab/scilab/modules/localization/.libs/libscilocalization.so
/opt/Scilab/scilab/scilab/modules/special_functions/.libs/libscispecial_functions.so
/opt/Scilab/scilab/scilab/modules/completion/.libs/libscicompletion.so
/opt/Scilab/scilab/scilab/modules/history_manager/.libs/libscihistory_manager.so
-lpcreposix -lpcre
/opt/Scilab/scilab/scilab/modules/hdf5/.libs/libscihdf5.so -lhdf5_serial
-lhdf5_serial_hl -lfftw3
/opt/Scilab/scilab/scilab/modules/statistics/.libs/libscistatistics.so
/opt/Scilab/scilab/scilab/modules/ast/.libs/libsciast.so
/opt/Scilab/scilab/scilab/modules/functions_manager/.libs/libscifunctions_manager.so
/opt/Scilab/scilab/scilab/modules/xml/.libs/libscixml.so
/opt/Scilab/scilab/scilab/modules/external_objects/.libs/libsciexternal_objects.so
/opt/Scilab/scilab/scilab/modules/slint/.libs/libscislint.so
/opt/Scilab/scilab/scilab/modules/coverage/.libs/libscicoverage.so -lxml2
/opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui-disable.so
/opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics-disable.so
/opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export-disable.so
/opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole-minimal.so
/opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding-disable.so
/opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm-disable.so
/opt/Scilab/scilab/scilab/modules/xcos/.libs/libscixcos-disable.so
/opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects-disable.so
/opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes-disable.so
/opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data-disable.so
/opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_browser-disable.so
/opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons-disable.so
/opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences-cli.so
/opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci-disable.so
-lstdc++fs -lopenblas -lgfortran -lpthread -ldl -lcurses -lm -pthread
-Wl,-rpath -Wl,/usr/local/lib/scilab
/bin/ld:
/usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
in function `_start':
(.text+0x0): multiple definition of `_start';
/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o:(.text+0x0):
first defined here
/bin/ld:
/usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
in function `valgrind_main':
(.text+0x18ac): undefined reference to `vgPlain_tl_pre_clo_init'
/bin/ld: (.text+0x18b0): undefined reference to `vgPlain_tl_pre_clo_init'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1216: scilab-bin] Error 1
make[1]: Leaving directory '/opt/Scilab/scilab/scilab'
make: *** [Makefile:1608: all-recursive] Error 1
```
I have installed the latest Valgrind for my distro, version
1:3.15.0-1ubuntu3.1.  

Anyone can enlighten me why it's failing with undefined reference to
vgPlain_tl_pre_clo_init? I can't directly access the valgrind main class
either. My only guess is either my valgrind is to old or new.

I know scilab 6.0.1 works on ubuntu 20 on arm64 so I dont think its an
architecture limitation. Have compiled openfoam, elmerfem, gmsh, getdp,
freecad, paraview and su2 no issues, so what am I missing for scilab?



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Clément David-3 Clément David-3
Reply | Threaded
Open this post in threaded view
|

Re: issue building Scilab 6.1.0 arm64 on Ubuntu 19.10 running inside Termux Proot Container

Hello,

As a first build, I suggest you to compile without valgrind support as this is an optional dependency. This can be done using :
 $ ./configure VALGRIND_CFLAGS="" VALGRIND_LIBS=""

Otherwise, your analysis looks good. Either your valgrind installation provide an extra library we need to link against, either we don't need to link against the coregrind library.

Thanks,

Clément DAVID

> -----Original Message-----
> From: users <[hidden email]> On Behalf Of EnigmaVoidX
> Sent: Sunday, September 13, 2020 11:07 PM
> To: [hidden email]
> Subject: [Scilab-users] issue building Scilab 6.1.0 arm64 on Ubuntu 19.10
> running inside Termux Proot Container
>
> I have been spending a few days compiling Scilab 6.1.0 git on my Ubuntu
> 19.10
> arm64 OS running inside a proot container.
>
> After patching for the newer jogl2 packages and getting a few more extra
> dependencies I have managed to configure and make up to this point:
>
> ```
> make[1]: Entering directory '/opt/Scilab/scilab/scilab'
> /bin/bash ./libtool  --tag=CXX   --mode=link g++ -std=c++17 -DNDEBUG -g1 -
> O2
> -fno-stack-protector     -lstdc++ -lgfortran  -Wl,--no-as-needed -o
> scilab-bin modules/startup/src/cpp/scilab_bin-scilab.o
> ./modules/libscilab.la ./modules/libscilab-cli.la  -lxml2 -L/usr/lib/aarch64-
> linux-gnu/valgrind -lcoregrind-arm64-linux -lvex-arm64-linux -lgcc -
> L/usr/lib/gcc/aarch64-linux-gnu/9
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -
> L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-
> linux-gnu/9/../../.. -lpthread -ldl -lcurses -lgfortran -lm
> ./modules/console/libsciconsole.la ./modules/jvm/libscijvm.la
> ./modules/commons/libscicommons.la  ./modules/libscilab.la -lopenblas
> -L/usr/lib/gcc/aarch64-linux-gnu/9
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -
> L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-
> linux-gnu/9/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lpthread -ldl -lcurses
> -lm
> libtool: link: g++ -std=c++17 -DNDEBUG -g1 -O2 -fno-stack-protector -Wl,--
> no-as-needed -o .libs/scilab-bin modules/startup/src/cpp/scilab_bin-scilab.o
> -lstdc++
> -L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64
> -L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64/server
> -L/usr/lib/aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -
> L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../..
> ./modules/.libs/libscilab-cli.so -L/usr/lib/aarch64-linux-gnu/valgrind
> -lcoregrind-arm64-linux -lvex-arm64-linux -lgcc
> ./modules/console/.libs/libsciconsole.so ./modules/jvm/.libs/libscijvm.so
> ./modules/commons/.libs/libscicommons.so ./modules/.libs/libscilab.so
> /opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui.so
> /opt/Scilab/scilab/scilab/modules/renderer/.libs/libscirenderer.so
> /opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics.so
> /opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export.
> so
> /opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole.so
> /opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding.s
> o
> /opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects
> .so
> /opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes.so
> /opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data.so
> /opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_brows
> er.so
> /opt/Scilab/scilab/scilab/modules/types/.libs/libscitypes-java.so
> /opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences.so
> /opt/Scilab/scilab/scilab/modules/external_objects_java/.libs/libsciexternal
> _objects_java.so
> /opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm.so -ljava -lverify -ljvm
> /opt/Scilab/scilab/scilab/modules/helptools/.libs/libscihelptools.so
> /opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons.so
> /opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci.so -ltk8.6
> -ltcl8.6 /opt/Scilab/scilab/scilab/modules/.libs/libscilab-cli.so
> /usr/lib/aarch64-linux-gnu/libcurl-gnutls.so
> /opt/Scilab/scilab/scilab/modules/functions/.libs/libscifunctions.so
> /opt/Scilab/scilab/scilab/modules/call_scilab/.libs/libscicall_scilab.so
> /opt/Scilab/scilab/scilab/modules/localization/.libs/libscilocalization.so
> /opt/Scilab/scilab/scilab/modules/special_functions/.libs/libscispecial_functi
> ons.so
> /opt/Scilab/scilab/scilab/modules/completion/.libs/libscicompletion.so
> /opt/Scilab/scilab/scilab/modules/history_manager/.libs/libscihistory_manag
> er.so
> -lpcreposix -lpcre
> /opt/Scilab/scilab/scilab/modules/hdf5/.libs/libscihdf5.so -lhdf5_serial -
> lhdf5_serial_hl -lfftw3
> /opt/Scilab/scilab/scilab/modules/statistics/.libs/libscistatistics.so
> /opt/Scilab/scilab/scilab/modules/ast/.libs/libsciast.so
> /opt/Scilab/scilab/scilab/modules/functions_manager/.libs/libscifunctions_
> manager.so
> /opt/Scilab/scilab/scilab/modules/xml/.libs/libscixml.so
> /opt/Scilab/scilab/scilab/modules/external_objects/.libs/libsciexternal_obje
> cts.so
> /opt/Scilab/scilab/scilab/modules/slint/.libs/libscislint.so
> /opt/Scilab/scilab/scilab/modules/coverage/.libs/libscicoverage.so -lxml2
> /opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui-disable.so
> /opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics-disable.so
> /opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export-
> disable.so
> /opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole-minimal.so
> /opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding-
> disable.so
> /opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm-disable.so
> /opt/Scilab/scilab/scilab/modules/xcos/.libs/libscixcos-disable.so
> /opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects
> -disable.so
> /opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes-disable.so
> /opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data-disable.so
> /opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_brows
> er-disable.so
> /opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons-disable.so
> /opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences-cli.so
> /opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci-disable.so
> -lstdc++fs -lopenblas -lgfortran -lpthread -ldl -lcurses -lm -pthread
> -Wl,-rpath -Wl,/usr/local/lib/scilab
> /bin/ld:
> /usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-
> linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
> in function `_start':
> (.text+0x0): multiple definition of `_start';
> /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-
> gnu/Scrt1.o:(.text+0x0):
> first defined here
> /bin/ld:
> /usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-
> linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
> in function `valgrind_main':
> (.text+0x18ac): undefined reference to `vgPlain_tl_pre_clo_init'
> /bin/ld: (.text+0x18b0): undefined reference to `vgPlain_tl_pre_clo_init'
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:1216: scilab-bin] Error 1
> make[1]: Leaving directory '/opt/Scilab/scilab/scilab'
> make: *** [Makefile:1608: all-recursive] Error 1 ``` I have installed the latest
> Valgrind for my distro, version 1:3.15.0-1ubuntu3.1.
>
> Anyone can enlighten me why it's failing with undefined reference to
> vgPlain_tl_pre_clo_init? I can't directly access the valgrind main class either.
> My only guess is either my valgrind is to old or new.
>
> I know scilab 6.0.1 works on ubuntu 20 on arm64 so I dont think its an
> architecture limitation. Have compiled openfoam, elmerfem, gmsh, getdp,
> freecad, paraview and su2 no issues, so what am I missing for scilab?
>
>
>
> --
> Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-
> f2602246.html
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
EnigmaVoidX EnigmaVoidX
Reply | Threaded
Open this post in threaded view
|

Re: issue building Scilab 6.1.0 arm64 on Ubuntu 19.10 running inside Termux Proot Container

This post was updated on .
I'm trying that, currently in the process of make, however the configure log
still shows valgrind path even with the configure options you have given me,
hopefully that won't cause any issues.

Edit: I ran into a new error, here it is:

make[2]: Entering directory '/opt/Scilab/scilab/scilab/modules/renderer'
make  all-am
make[3]: Entering directory '/opt/Scilab/scilab/scilab/modules/renderer'
Buildfile: /opt/Scilab/scilab/scilab/modules/renderer/build.xml
  [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.

init:

compile:

jar:
      [jar] Building jar: /opt/Scilab/scilab/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar

BUILD SUCCESSFUL
Total time: 1 second
make[3]: Leaving directory '/opt/Scilab/scilab/scilab/modules/renderer'
make[2]: Leaving directory '/opt/Scilab/scilab/scilab/modules/renderer'
Making all in gui
make[2]: Entering directory '/opt/Scilab/scilab/scilab/modules/gui'
make  all-am
make[3]: Entering directory '/opt/Scilab/scilab/scilab/modules/gui'
/bin/bash ../../libtool  --tag=CXX   --mode=link g++ -std=c++17 -DNDEBUG -g1 -O2 -fno-stack-protector   -version-number 6:1:1 -Wl,--no-as-needed -o libscigui-algo.la  src/c/libscigui_algo_la-buildMainWindowTitle.lo src/c/libscigui_algo_la-getMainWindowTitle.lo src/c/libscigui_algo_la-setMainWindowTitle.lo src/c/libscigui_algo_la-addmenu.lo src/c/libscigui_algo_la-CreateUimenu.lo src/c/libscigui_algo_la-checkColorRange.lo src/c/libscigui_algo_la-messageboxoptions.lo src/c/libscigui_algo_la-ScilabTermination.lo src/jni/libscigui_algo_la-ScilabTermination_wrap.lo src/cpp/libscigui_algo_la-InitializeGUI.lo src/cpp/libscigui_algo_la-InitUIMenu.lo src/jni/libscigui_algo_la-CallScilabBridge.lo src/cpp/libscigui_algo_la-CreateUIControl.lo src/jni/libscigui_algo_la-Jxclick.lo src/jni/libscigui_algo_la-SwingView.lo src/cpp/libscigui_algo_la-CallJxclick.lo src/jni/libscigui_algo_la-Jxgetmouse.lo src/cpp/libscigui_algo_la-CallJxgetmouse.lo src/cpp/libscigui_algo_la-CallColorChooser.lo src/cpp/libscigui_algo_la-CallFontChooser.lo src/cpp/libscigui_algo_la-CallMessageBox.lo src/cpp/libscigui_algo_la-CallHelpBrowser.lo src/cpp/libscigui_algo_la-ContextMenu.lo src/cpp/libscigui_algo_la-Widget.lo src/cpp/libscigui_algo_la-SetUimenuLabel.lo src/cpp/libscigui_algo_la-GetUimenuLabel.lo src/cpp/libscigui_algo_la-GetUicontrolStyle.lo src/cpp/libscigui_algo_la-SetUicontrolString.lo src/cpp/libscigui_algo_la-GetUicontrolString.lo src/cpp/libscigui_algo_la-SetUicontrolTooltipString.lo src/cpp/libscigui_algo_la-GetUicontrolTooltipString.lo src/cpp/libscigui_algo_la-SetUicontrolBackgroundColor.lo src/cpp/libscigui_algo_la-GetUicontrolBackgroundColor.lo src/cpp/libscigui_algo_la-SetUiobjectForegroundColor.lo src/cpp/libscigui_algo_la-GetUiobjectForegroundColor.lo src/cpp/libscigui_algo_la-SetUicontrolPosition.lo src/cpp/libscigui_algo_la-GetUicontrolPosition.lo src/cpp/libscigui_algo_la-SetUicontrolFontName.lo src/cpp/libscigui_algo_la-GetUicontrolFontName.lo src/cpp/libscigui_algo_la-SetUicontrolFontWeight.lo src/cpp/libscigui_algo_la-GetUicontrolFontWeight.lo src/cpp/libscigui_algo_la-SetUicontrolFontUnits.lo src/cpp/libscigui_algo_la-GetUicontrolFontUnits.lo src/cpp/libscigui_algo_la-SetUicontrolFontSize.lo src/cpp/libscigui_algo_la-GetUicontrolFontSize.lo src/cpp/libscigui_algo_la-SetUicontrolFontAngle.lo src/cpp/libscigui_algo_la-GetUicontrolFontAngle.lo src/cpp/libscigui_algo_la-SetUiobjectEnable.lo src/cpp/libscigui_algo_la-GetUiobjectEnable.lo src/cpp/libscigui_algo_la-SetUimenuChecked.lo src/cpp/libscigui_algo_la-GetUimenuChecked.lo src/cpp/libscigui_algo_la-SetUicontrolMin.lo src/cpp/libscigui_algo_la-GetUicontrolMin.lo src/cpp/libscigui_algo_la-SetUicontrolMax.lo src/cpp/libscigui_algo_la-GetUicontrolMax.lo src/cpp/libscigui_algo_la-SetUicontrolValue.lo src/cpp/libscigui_algo_la-GetUicontrolValue.lo src/cpp/libscigui_algo_la-SetUicontrolListboxTop.lo src/cpp/libscigui_algo_la-GetUicontrolListboxTop.lo src/cpp/libscigui_algo_la-SetUicontrolUnits.lo src/cpp/libscigui_algo_la-GetUicontrolUnits.lo src/cpp/libscigui_algo_la-SetUicontrolRelief.lo src/cpp/libscigui_algo_la-GetUicontrolRelief.lo src/cpp/libscigui_algo_la-SetUicontrolHorizontalAlignment.lo src/cpp/libscigui_algo_la-GetUicontrolHorizontalAlignment.lo src/cpp/libscigui_algo_la-SetUicontrolVerticalAlignment.lo src/cpp/libscigui_algo_la-GetUicontrolVerticalAlignment.lo src/cpp/libscigui_algo_la-SetUicontrolSliderStep.lo src/cpp/libscigui_algo_la-GetUicontrolSliderStep.lo src/cpp/libscigui_algo_la-SetUicontrolSnapToTicks.lo src/cpp/libscigui_algo_la-GetUicontrolSnapToTicks.lo src/cpp/libscigui_algo_la-SetUicontrolIcon.lo src/cpp/libscigui_algo_la-GetUicontrolIcon.lo src/cpp/libscigui_algo_la-SetConsoleShowHiddenHandles.lo src/cpp/libscigui_algo_la-GetConsoleShowHiddenHandles.lo src/cpp/libscigui_algo_la-UnitsConversion.lo src/cpp/libscigui_algo_la-GetScreenProperty.lo src/cpp/libscigui_algo_la-CallClipboard.lo src/cpp/libscigui_algo_la-exportUserInterface.lo src/jni/libscigui_algo_la-LookAndFeelManager.lo src/jni/libscigui_algo_la-Juigetfile.lo src/cpp/libscigui_algo_la-CallJuigetfile.lo src/cpp/libscigui_algo_la-displaytree.lo src/jni/libscigui_algo_la-ScilabDisplayTree.lo src/jni/libscigui_algo_la-EditorManager.lo src/jni/libscigui_algo_la-StartGED.lo src/jni/libscigui_algo_la-StartPlotBrowser.lo src/jni/libscigui_algo_la-DatatipManager.lo src/jni/libscigui_algo_la-DatatipCreate.lo src/jni/libscigui_algo_la-DatatipDelete.lo src/jni/libscigui_algo_la-DatatipDrag.lo src/jni/libscigui_algo_la-DatatipSetStyle.lo src/jni/libscigui_algo_la-DatatipOrientation.lo  -lpthread -ldl -lcurses  -lm
libtool:   error: 'src/cpp/libscigui_algo_la-GetUimenuLabel.lo' is not a valid libtool object
make[3]: *** [Makefile:1642: libscigui-algo.la] Error 1
make[3]: Leaving directory '/opt/Scilab/scilab/scilab/modules/gui'
make[2]: *** [Makefile:1356: all] Error 2
make[2]: Leaving directory '/opt/Scilab/scilab/scilab/modules/gui'
make[1]: *** [Makefile:844: all-recursive] Error 1
make[1]: Leaving directory '/opt/Scilab/scilab/scilab/modules'
make: *** [Makefile:1608: all-recursive] Error 1
root@localhost:/opt/Scilab/scilab/scilab#


Clément David-3 wrote
> Hello,
>
> As a first build, I suggest you to compile without valgrind support as
> this is an optional dependency. This can be done using :
>  $ ./configure VALGRIND_CFLAGS="" VALGRIND_LIBS=""
>
> Otherwise, your analysis looks good. Either your valgrind installation
> provide an extra library we need to link against, either we don't need to
> link against the coregrind library.
>
> Thanks,
>
> Clément DAVID
>
>> -----Original Message-----
>> From: users <

> users-bounces@.scilab

> > On Behalf Of EnigmaVoidX
>> Sent: Sunday, September 13, 2020 11:07 PM
>> To:

> users@.scilab

>> Subject: [Scilab-users] issue building Scilab 6.1.0 arm64 on Ubuntu 19.10
>> running inside Termux Proot Container
>>
>> I have been spending a few days compiling Scilab 6.1.0 git on my Ubuntu
>> 19.10
>> arm64 OS running inside a proot container.
>>
>> After patching for the newer jogl2 packages and getting a few more extra
>> dependencies I have managed to configure and make up to this point:
>>
>> ```
>> make[1]: Entering directory '/opt/Scilab/scilab/scilab'
>> /bin/bash ./libtool  --tag=CXX   --mode=link g++ -std=c++17 -DNDEBUG -g1
>> -
>> O2
>> -fno-stack-protector     -lstdc++ -lgfortran  -Wl,--no-as-needed -o
>> scilab-bin modules/startup/src/cpp/scilab_bin-scilab.o
>> ./modules/libscilab.la ./modules/libscilab-cli.la  -lxml2
>> -L/usr/lib/aarch64-
>> linux-gnu/valgrind -lcoregrind-arm64-linux -lvex-arm64-linux -lgcc -
>> L/usr/lib/gcc/aarch64-linux-gnu/9
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib
>> -L/lib/aarch64-linux-gnu -
>> L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
>> -L/usr/lib/gcc/aarch64-
>> linux-gnu/9/../../.. -lpthread -ldl -lcurses -lgfortran -lm
>> ./modules/console/libsciconsole.la ./modules/jvm/libscijvm.la
>> ./modules/commons/libscicommons.la  ./modules/libscilab.la -lopenblas
>> -L/usr/lib/gcc/aarch64-linux-gnu/9
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib
>> -L/lib/aarch64-linux-gnu -
>> L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
>> -L/usr/lib/gcc/aarch64-
>> linux-gnu/9/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lpthread
>> -ldl -lcurses
>> -lm
>> libtool: link: g++ -std=c++17 -DNDEBUG -g1 -O2 -fno-stack-protector
>> -Wl,--
>> no-as-needed -o .libs/scilab-bin
>> modules/startup/src/cpp/scilab_bin-scilab.o
>> -lstdc++
>> -L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64
>> -L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64/server
>> -L/usr/lib/aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib
>> -L/lib/aarch64-linux-gnu -
>> L/lib/../lib -L/usr/lib/../lib
>> -L/usr/lib/gcc/aarch64-linux-gnu/9/../../..
>> ./modules/.libs/libscilab-cli.so -L/usr/lib/aarch64-linux-gnu/valgrind
>> -lcoregrind-arm64-linux -lvex-arm64-linux -lgcc
>> ./modules/console/.libs/libsciconsole.so ./modules/jvm/.libs/libscijvm.so
>> ./modules/commons/.libs/libscicommons.so ./modules/.libs/libscilab.so
>> /opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui.so
>> /opt/Scilab/scilab/scilab/modules/renderer/.libs/libscirenderer.so
>> /opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics.so
>> /opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export.
>> so
>> /opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole.so
>> /opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding.s
>> o
>> /opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects
>> .so
>> /opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes.so
>> /opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data.so
>> /opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_brows
>> er.so
>> /opt/Scilab/scilab/scilab/modules/types/.libs/libscitypes-java.so
>> /opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences.so
>> /opt/Scilab/scilab/scilab/modules/external_objects_java/.libs/libsciexternal
>> _objects_java.so
>> /opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm.so -ljava -lverify
>> -ljvm
>> /opt/Scilab/scilab/scilab/modules/helptools/.libs/libscihelptools.so
>> /opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons.so
>> /opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci.so -ltk8.6
>> -ltcl8.6 /opt/Scilab/scilab/scilab/modules/.libs/libscilab-cli.so
>> /usr/lib/aarch64-linux-gnu/libcurl-gnutls.so
>> /opt/Scilab/scilab/scilab/modules/functions/.libs/libscifunctions.so
>> /opt/Scilab/scilab/scilab/modules/call_scilab/.libs/libscicall_scilab.so
>> /opt/Scilab/scilab/scilab/modules/localization/.libs/libscilocalization.so
>> /opt/Scilab/scilab/scilab/modules/special_functions/.libs/libscispecial_functi
>> ons.so
>> /opt/Scilab/scilab/scilab/modules/completion/.libs/libscicompletion.so
>> /opt/Scilab/scilab/scilab/modules/history_manager/.libs/libscihistory_manag
>> er.so
>> -lpcreposix -lpcre
>> /opt/Scilab/scilab/scilab/modules/hdf5/.libs/libscihdf5.so -lhdf5_serial
>> -
>> lhdf5_serial_hl -lfftw3
>> /opt/Scilab/scilab/scilab/modules/statistics/.libs/libscistatistics.so
>> /opt/Scilab/scilab/scilab/modules/ast/.libs/libsciast.so
>> /opt/Scilab/scilab/scilab/modules/functions_manager/.libs/libscifunctions_
>> manager.so
>> /opt/Scilab/scilab/scilab/modules/xml/.libs/libscixml.so
>> /opt/Scilab/scilab/scilab/modules/external_objects/.libs/libsciexternal_obje
>> cts.so
>> /opt/Scilab/scilab/scilab/modules/slint/.libs/libscislint.so
>> /opt/Scilab/scilab/scilab/modules/coverage/.libs/libscicoverage.so -lxml2
>> /opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui-disable.so
>> /opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics-disable.so
>> /opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export-
>> disable.so
>> /opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole-minimal.so
>> /opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding-
>> disable.so
>> /opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm-disable.so
>> /opt/Scilab/scilab/scilab/modules/xcos/.libs/libscixcos-disable.so
>> /opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects
>> -disable.so
>> /opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes-disable.so
>> /opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data-disable.so
>> /opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_brows
>> er-disable.so
>> /opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons-disable.so
>> /opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences-cli.so
>> /opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci-disable.so
>> -lstdc++fs -lopenblas -lgfortran -lpthread -ldl -lcurses -lm -pthread
>> -Wl,-rpath -Wl,/usr/local/lib/scilab
>> /bin/ld:
>> /usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-
>> linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
>> in function `_start':
>> (.text+0x0): multiple definition of `_start';
>> /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-
>> gnu/Scrt1.o:(.text+0x0):
>> first defined here
>> /bin/ld:
>> /usr/lib/aarch64-linux-gnu/valgrind/libcoregrind-arm64-
>> linux.a(libnolto_coregrind_arm64_linux_a-m_main.o):
>> in function `valgrind_main':
>> (.text+0x18ac): undefined reference to `vgPlain_tl_pre_clo_init'
>> /bin/ld: (.text+0x18b0): undefined reference to `vgPlain_tl_pre_clo_init'
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [Makefile:1216: scilab-bin] Error 1
>> make[1]: Leaving directory '/opt/Scilab/scilab/scilab'
>> make: *** [Makefile:1608: all-recursive] Error 1 ``` I have installed the
>> latest
>> Valgrind for my distro, version 1:3.15.0-1ubuntu3.1.
>>
>> Anyone can enlighten me why it's failing with undefined reference to
>> vgPlain_tl_pre_clo_init? I can't directly access the valgrind main class
>> either.
>> My only guess is either my valgrind is to old or new.
>>
>> I know scilab 6.0.1 works on ubuntu 20 on arm64 so I dont think its an
>> architecture limitation. Have compiled openfoam, elmerfem, gmsh, getdp,
>> freecad, paraview and su2 no issues, so what am I missing for scilab?
>>
>>
>>
>> --
>> Sent from:
>> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-
>> f2602246.html
>> _______________________________________________
>> users mailing list
>>

> users@.scilab

>> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list

> users@.scilab

> http://lists.scilab.org/mailman/listinfo/users





--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
EnigmaVoidX EnigmaVoidX
Reply | Threaded
Open this post in threaded view
|

Re: issue building Scilab 6.1.0 arm64 on Ubuntu 19.10 running inside Termux Proot Container

This post was updated on .
In reply to this post by Clément David-3
It still fails even with the configure flag:

make[1]: Entering directory '/opt/Scilab/scilab/scilab'
/bin/bash ./libtool  --tag=CXX   --mode=link g++ -std=c++17 -DNDEBUG -g1 -O2
-fno-stack-protector     -lstdc++ -lgfortran  -Wl,--no-as-needed -o
scilab-bin modules/startup/src/cpp/scilab_bin-scilab.o
./modules/libscilab.la ./modules/libscilab-cli.la  -lxml2
-L/usr/local/lib/valgrind -lcoregrind-arm64-linux -lvex-arm64-linux -lgcc
-L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lpthread -ldl -lcurses
-lgfortran -lm ./modules/console/libsciconsole.la ./modules/jvm/libscijvm.la
./modules/commons/libscicommons.la  ./modules/libscilab.la -lopenblas
-L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lpthread -ldl -lcurses
-lgfortran -lm -lpthread -ldl -lcurses  -lm
libtool: link: g++ -std=c++17 -DNDEBUG -g1 -O2 -fno-stack-protector
-Wl,--no-as-needed -o .libs/scilab-bin
modules/startup/src/cpp/scilab_bin-scilab.o  -lstdc++
-L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64
-L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64/server
-L/usr/lib/aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu
-L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu
-L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../..
./modules/.libs/libscilab-cli.so -L/usr/local/lib/valgrind
-lcoregrind-arm64-linux -lvex-arm64-linux -lgcc
./modules/console/.libs/libsciconsole.so ./modules/jvm/.libs/libscijvm.so
./modules/commons/.libs/libscicommons.so ./modules/.libs/libscilab.so
/opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui.so
/opt/Scilab/scilab/scilab/modules/renderer/.libs/libscirenderer.so
/opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics.so
/opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export.so
/opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole.so
/opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding.so
/opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects.so
/opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes.so
/opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data.so
/opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_browser.so
/opt/Scilab/scilab/scilab/modules/types/.libs/libscitypes-java.so
/opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences.so
/opt/Scilab/scilab/scilab/modules/external_objects_java/.libs/libsciexternal_objects_java.so
/opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm.so -ljava -lverify
-ljvm /opt/Scilab/scilab/scilab/modules/helptools/.libs/libscihelptools.so
/opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons.so
/opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci.so -ltk8.6
-ltcl8.6 /opt/Scilab/scilab/scilab/modules/.libs/libscilab-cli.so
/usr/lib/aarch64-linux-gnu/libcurl-gnutls.so
/opt/Scilab/scilab/scilab/modules/functions/.libs/libscifunctions.so
/opt/Scilab/scilab/scilab/modules/call_scilab/.libs/libscicall_scilab.so
/opt/Scilab/scilab/scilab/modules/localization/.libs/libscilocalization.so
/opt/Scilab/scilab/scilab/modules/special_functions/.libs/libscispecial_functions.so
/opt/Scilab/scilab/scilab/modules/completion/.libs/libscicompletion.so
/opt/Scilab/scilab/scilab/modules/history_manager/.libs/libscihistory_manager.so
-lpcreposix -lpcre
/opt/Scilab/scilab/scilab/modules/hdf5/.libs/libscihdf5.so -lhdf5_serial
-lhdf5_serial_hl -lfftw3
/opt/Scilab/scilab/scilab/modules/statistics/.libs/libscistatistics.so
/opt/Scilab/scilab/scilab/modules/ast/.libs/libsciast.so
/opt/Scilab/scilab/scilab/modules/functions_manager/.libs/libscifunctions_manager.so
/opt/Scilab/scilab/scilab/modules/xml/.libs/libscixml.so
/opt/Scilab/scilab/scilab/modules/external_objects/.libs/libsciexternal_objects.so
/opt/Scilab/scilab/scilab/modules/slint/.libs/libscislint.so
/opt/Scilab/scilab/scilab/modules/coverage/.libs/libscicoverage.so -lxml2
/opt/Scilab/scilab/scilab/modules/gui/.libs/libscigui-disable.so
/opt/Scilab/scilab/scilab/modules/graphics/.libs/libscigraphics-disable.so
/opt/Scilab/scilab/scilab/modules/graphic_export/.libs/libscigraphic_export-disable.so
/opt/Scilab/scilab/scilab/modules/console/.libs/libsciconsole-minimal.so
/opt/Scilab/scilab/scilab/modules/action_binding/.libs/libsciaction_binding-disable.so
/opt/Scilab/scilab/scilab/modules/jvm/.libs/libscijvm-disable.so
/opt/Scilab/scilab/scilab/modules/xcos/.libs/libscixcos-disable.so
/opt/Scilab/scilab/scilab/modules/graphic_objects/.libs/libscigraphic_objects-disable.so
/opt/Scilab/scilab/scilab/modules/scinotes/.libs/libsciscinotes-disable.so
/opt/Scilab/scilab/scilab/modules/ui_data/.libs/libsciui_data-disable.so
/opt/Scilab/scilab/scilab/modules/history_browser/.libs/libscihistory_browser-disable.so
/opt/Scilab/scilab/scilab/modules/commons/.libs/libscicommons-disable.so
/opt/Scilab/scilab/scilab/modules/preferences/.libs/libscipreferences-cli.so
/opt/Scilab/scilab/scilab/modules/tclsci/.libs/libscitclsci-disable.so
-lstdc++fs -lopenblas -lgfortran -lpthread -ldl -lcurses -lm -pthread
-Wl,-rpath -Wl,/usr/local/lib/scilab
/bin/ld:
/usr/local/lib/valgrind/libcoregrind-arm64-linux.a(libcoregrind_arm64_linux_a-m_main.o):
in function `_start':
m_main.c:(.text+0x0): multiple definition of `_start';
/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/Scrt1.o:(.text+0x0):
first defined here
/bin/ld:
/usr/local/lib/valgrind/libcoregrind-arm64-linux.a(libcoregrind_arm64_linux_a-m_main.o):
in function `valgrind_main':
/root/Desktop/valgrind-3.12.0/coregrind/m_main.c:2081: undefined reference
to `vgPlain_tl_pre_clo_init'
/bin/ld: /root/Desktop/valgrind-3.12.0/coregrind/m_main.c:2081: undefined
reference to `vgPlain_tl_pre_clo_init'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1216: scilab-bin] Error 1
make[1]: Leaving directory '/opt/Scilab/scilab/scilab'
make: *** [Makefile:1608: all-recursive] Error 1
root@localhost:/opt/Scilab/scilab/scilab#


I even deleted the valgrind files and even make clean before attempting
this? The config still try to link valgrind.


Edit: I am using this source for scilab: https://github.com/scilab/scilab

Edit 2: Using -DENABLE_Valgrind=no did the trick, make was a success. You still need valgrind dir or else make complains.

--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users