[scilab-Users] can't compile the very latest git (Scilab 5.4.0 alpha1)

Clément DAVID clement.david at scilab-enterprises.com
Thu Jun 21 13:40:46 CEST 2012


Hello,

I also got this error. Rebuilding from scratch [1] fix this issue on my 
machine.

[1]: make distclean && ./configure && make

--
Clément DAVID

Le 21/06/2012 13:37, Masaru Nomiya a écrit :
> Hello,
>
> I got the very latest git of scilab with 'git pull' command, then
> tried to compile.
> But it failed.
>
> 1. the result of configure.
>
> Scilab is configured as follows. Please verify that this configuration
> matches your expectations.
>
> Host system type : x86_64-unknown-linux-gnu
>
>                    Option                        Value
> -------------------------------------------------------------------------
> Shared libraries.......      --enable-shared=yes
> Static libraries.......      --enable-static=no
> GNU ld.................      --with-gnu-ld=yes
> Enable debug ..........      --enable-debug=no
> Enable debug C.........      --enable-debug-C=no
> Enable debug C++.......      --enable-debug-CXX=no
> Enable debug Java......      --enable-debug-java=
> Enable debug Fortran...      --enable-debug-fortran=no
> Enable stop on warning.      --enable-stop-on-warning=
>
> Compiler Configuration:
>    Intel (--with-intelcompilers) .... =
>    GNU gcc (--with-gcc) ............. =
>    GNU Fortran 95 (--with-gfortran) . =
>
> Options:
>    Do not use TCL/TK (--without-tk) ................. =
>    TCL include (--with-tcl-include) ................. =
>    TCL library (--with-tcl-library) ................. =
>    TK include (--with-tk-include) ................... =
>    TK library (--with-tk-library) ................... =
>    Install XML Help (--with-install-help-xml) ....... =
>    Compilation tests (--enable-compilation-tests) ... = no
>    Make the package relocatable (--enable-relocatable)= no
>    Use FFTW (--without-fftw) ........................ =
>    Use MATIO (--without-matio) ...................... =
>
> Xcos enable
> Build modelica compiler (--without-modelica) ....... =
>
> Ocaml Configuration (for Modelica compiler):
>    OCAMLC ............. = ocamlc
>    OCAMLOPT ........... = ocamlopt
>    OCAMLDEP ........... = ocamldep
>
> Not using code coverage
>
> OpenMP Configuration:
> OpenMP CFLAGS ...... = -fopenmp
> OpenMP CXXFLAGS .... = -fopenmp
> OpenMP LIBS ........ = -lgomp
> OpenMP FFLAGS ...... =
>
> FFTW Configuration:
>    FFTW LIBS .......... = -lfftw3
>    FFTW CFLAGS ........ =
>
> MATIO Configuration:
>    MATIO LIBS .......... = -lmatio -lz
>    MATIO CFLAGS ........ =
>
> UMFPACK Configuration:
>    UMFPACK LIBS ....... = -lumfpack -lamd
>    UMFPACK CFLAGS ..... =
>    UMFPACK SUITESPARSE  = Yes
>
> BLAS/LAPACK/ATLAS Configuration:
>    BLAS LIBS ............. = -lblas
>    BLAS TYPE ............. = Generic Blas
>    LAPACK LIBS ........... = -llapack
>    LAPACK TYPE ........... = Library -llapack
>    ARPACK LIBS ........... = -larpack
>
>
> Gettext/localization configuration:
>    xgettext ............... = /usr/bin/xgettext
>    msgfmt  ................ = /usr/bin/msgfmt
>    msgfmt_opts ............ =
>    msgcat  ................ = /usr/bin/msgcat
>
> Documentation building configuration:
>    Docbook XSL path ....... = /usr/share/xml/docbook/stylesheet/nwalsh/current/
>    Saxon XSLT ............. = /usr/share/java/saxon.jar
>    XML commons external ... = /usr/share/java/xml-commons-jaxp-1.3-apis-ext-1.3.04.jar
>
> Java Configuration:
>    JAVA_HOME ........... = /usr/lib64/jvm/java
>    JAVAC ............... = /usr/lib64/jvm/java/bin/javac
>    JAVA_CLASSPATH ...... =
>    JAVA_VERSION ........ = 1.6
>    JAVAC_FLAGS ......... = -g
>    JAVA_JNI_INCLUDE .... = -I/usr/lib64/jvm/java/include -I/usr/lib64/jvm/java/include/linux
>    JAVA_JNI_LIBS ....... = -L/usr/lib64/jvm/java/jre/lib/amd64 -ljava -lverify -L/usr/lib64/jvm/java/jre/lib/amd64/server -ljvm
>    JAVA_JNI_LIBS_PRELOAD =
>    JAVA ................ = /usr/lib64/jvm/java/bin/java
>    JAVADOC ............. = /usr/lib64/jvm/java/bin/javadoc
>    JAR ................. = /usr/lib64/jvm/java/bin/jar
>    ANT ................. = /usr/bin/ant
>
> Java dependencies:
>    Flexdock ............ = /usr/share/java/flexdock.jar
>    JOGL 2............... = /usr/share/java/jogl2.jar
>    JOGL 2 LIBS (JNI) ... = -ljogl_desktop -lGL
>    Gluegen 2 ........... = /usr/share/java/gluegen2-rt.jar
>    Gluegen 2 LIBS (JNI)  =
>    Jeuclid (MathML) .... = /usr/share/java/jeuclid-core.jar
>    Jhall  .............. = /usr/share/java/javahelp2.jar
>    Jrosetta (API) ...... = /usr/share/java/jrosetta-API.jar
>    Jrosetta (Engine) ... = /usr/share/java/jrosetta-engine.jar
>    Commons Logging ..... = /usr/share/java/commons-logging.jar
>    JGraph X ............ = /usr/share/java/jgraphx.jar
>    SciRenderer ......... = /usr/share/java/scirenderer-0.4.9.jar
>    JLaTeXMath .......... = /usr/share/java/jlatexmath.jar
>
> Documentation, graphic export:
>    FOP (XML =>  PDF) .... = /usr/share/java/xmlgraphics-fop-1.0.jar
>    JLaTeXMath Fop ...... = /usr/share/java/jlatexmath-fop.jar
>    Batik (SVG) ......... = /usr/share/java/batik-all.jar
>    Avalon Framework .... = /usr/share/java/excalibur/avalon-framework.jar
>    Commons I/O ......... = /usr/share/java/commons-io.jar
>    XML graphics commons  = /usr/share/java/xmlgraphics-commons.jar
>
> Code quality (optional):
>    Checkstyle .......... = /usr/share/java/checkstyle-5.5.jar
>    Commons-beanutils ... = /usr/share/java/commons-beanutils.jar
>    Antlr ............... = /usr/share/java/antlr.jar
>    Junit4 .............. =
>    Cobertura ........... =
>    splint .............. = no
>
> TCL/TK configuration:
>    TK_INC_PATH ........ = -I/usr/include
>    TCL_INC_PATH ....... = -I/usr/include
>    TCLTK_LIBS ......... =  -L/usr/lib64 -ltk8.5   -L/usr/lib64 -ltcl8.5  -ldl
>    TCL_SERIAL_VERSION . = 8.5.10
>    TK_SERIAL_VERSION .. = 8.5.10
>
> XML configuration:
>    XML_FLAGS .......... = -I/usr/include/libxml2
>    XML_LIBS ........... = -lxml2 -lz -lm
>    XML_VERSION ........ = 2.7.8
>
> ./configure: line 42569: test: =: unary operator expected
> Not using HDF5
>
> PCRE configuration:
>    PCRE_CFLAGS ........ =
>    PCRE_LIBS .......... = -L/usr/lib64 -lpcreposix -lpcre
>    PCRE_VERSION ....... = 8.13
>
> SWIG Configuration:
>    SWIG generation disabled
>
> GIWS Configuration:
>    GIWS generation disabled
>
> Libtool config:
>    objext .............. = o
>    libext (static) ..... = a
>    shrext_cmds ......... = .so
>    exeext .............. =
>
> Compilation paths:
>    srcdir .............. = .
>    srcdir_full ......... = /tmp/tes/scilab.old/scilab
>    builddir ............ = /tmp/tes/scilab.old/scilab
>
> Platform informations:
>    host ........... = x86_64-unknown-linux-gnu
>    host_cpu ....... = x86_64
>    host_vendor .... = unknown
>    host_os ... .... = linux-gnu
>    hostname ....... = linux-7lcw
>    CPU 64 bits .... = true
>
> Options used to compile and link:
>    prefix ......... = /usr
>    localedir ...... = ${datarootdir}/locale
>    VERSION ........ = 5
>    CC ............. = gcc
>    CFLAGS ......... = -g -O2
>    SCI_CFLAGS ..... = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector
>    DEFS ........... = -DHAVE_CONFIG_H
>    LD ............. = /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
>    LDFLAGS ........ =
>    SCI_LDFLAGS .... = -lstdc++ -Wl,--no-as-needed
>    LIBS ........... = -lpthread -ldl -lncurses  -lm
>    CXX ............ = g++
>    CXXFLAGS ....... = -g -O2
>    SCI_CXXFLAGS ... = -DNDEBUG -fno-stack-protector
>    F77 ............ = gfortran
>    FFLAGS ......... = -g -O2
>    SCI_FFLAGS ..... = -DNDEBUG -m64 -fPIC
>    F77_LDFLAGS .... =
>    TERMCAP_LIB .... = no
>
> 2. the result of compilation.
>
> [...]
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I/usr/lib64/jvm/java/include -I/usr/lib64/jvm/java/include/linux -I./includes/ -I./src/cpp/ -I./src/c/ -I./src/jni/ -I../../libs/MALLOC/includes/ -I../../modules/api_scilab/includes/ -I../../modules/commons/src/jni/ -I../../modules/core/includes/ -I../../modules/jvm/includes/ -I../../modules/localization/includes/ -I../../modules/output_stream/includes/ -DNDEBUG -fno-stack-protector -g -O2 -MT libscigraphic_objects_la-createGraphicObject.lo -MD -MP -MF .deps/libscigraphic_objects_la-createGraphicObject.Tpo -c src/cpp/createGraphicObject.cpp  -fPIC -DPIC -o .libs/libscigraphic_objects_la-createGraphicObject.o
> src/cpp/createGraphicObject.cpp: In function 'char* createGraphicObject(const char*)':
> src/cpp/createGraphicObject.cpp:27:77: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
> ./src/jni/CallGraphicController.hxx:166:15: error:   initializing argument 2 of 'static char* org_scilab_modules_graphic_objects::CallGraphicController::askGraphicObject(JavaVM*, char*)' [-fpermissive]
> src/cpp/createGraphicObject.cpp: In function 'char* cloneGraphicObject(const char*)':
> src/cpp/createGraphicObject.cpp:32:77: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
> ./src/jni/CallGraphicController.hxx:164:15: error:   initializing argument 2 of 'static char* org_scilab_modules_graphic_objects::CallGraphicController::cloneGraphicObject(JavaVM*, char*)' [-fpermissive]
> src/cpp/createGraphicObject.cpp: In function 'void buildFigureMenuBar(const char*)':
> src/cpp/createGraphicObject.cpp:42:76: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
> ./src/jni/CallGraphicController.hxx:210:13: error:   initializing argument 2 of 'static void org_scilab_modules_graphic_objects::CallGraphicController::buildFigureMenuBar(JavaVM*, char*)' [-fpermissive]
> make[3]: *** [libscigraphic_objects_la-createGraphicObject.lo] error 1
> make[3]: ディレクトリ `/tmp/tes/scilab/scilab/modules/graphic_objects' から出ます
> make[2]: *** [all] error 2
> make[2]: ディレクトリ `/tmp/tes/scilab/scilab/modules/graphic_objects' から出ます
> make[1]: *** [all-recursive] error 1
> make[1]: ディレクトリ `/tmp/tes/scilab/scilab/modules' から出ます
>
> Any idea?
>
> Thanks in advance.
>
> ---
> ┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
> ┃\/彡
> ┗━━┛ "Bill! You married with Computers.
>            Not with Me!"
>           "No..., with money."
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> users-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
>


-- 
Clément DAVID
Scilab Enterprises

mobile: 06 26 26 51 90
skype://clement_david_scilab



More information about the users mailing list