Menu

#9 Building RTSS on Vista with LCC-win32

open
5
2014-08-17
2008-03-12
Anonymous
No

I got the following when I tried to use the precompiled rtss under windows vista:

Startup execution:
loading initial environment

-->exec c:\robot\loader.sce;
shared archive loaded
Link done
shared archive loaded

Loading macros in c:\robot\macros\ shared archive loaded
Link done

Loading help chapter in c:\robot\help\eng/scifuncs/

Loading help chapter in c:\robot\help\eng/blocks/

Loading palette in c:\robot\scicos_palette\

Loading demos in c:\robot\demos\ Warning :redefining function: title

-->exec c:\robot\demos\rt_demo3.sce;
Warning !!!
Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
with "librt" function.
Scilab may become unstable.

So I tried compiling rtss under Vista with the LCC-win32 compiler configured in Scilab and got the following:

___________________________________________
scilab-4.1.2

Copyright (c) 1989-2007
Consortium Scilab (INRIA, ENPC)
___________________________________________

Startup execution:
loading initial environment

-->exec c:\robot\builder.sce;
generate a loader file
generate a Makefile: Makelib
running the makefile
compilation of rt-common
compilation of rt_frne
compilation of vmath
building shared library (be patient)
generate a loader file
generate a Makefile: Makelib
running the makefile
compilation of rt_singen
compilation of rt_square
compilation of rt_eulerint
building shared library (be patient)
generate a gateway file
generate a loader file
generate a Makefile: Makelib
running the makefile
compilation of sci_rt_creation_of_link
compilation of sci_rt_insertion_in_link
compilation of sci_rt_extraction_from_link
compilation of sci_rt_creation_of_robot
compilation of sci_rt_insertion_in_robot
compilation of sci_rt_extraction_from_robot
compilation of sci_rt_creation_of_quaternion
compilation of sci_rt_extraction_from_quaternion
compilation of sci_rt_utils
compilation of sci_rt_frne
building shared library (be patient)
Incorrect argument -s
Warning librt.c: 80 static function direct_gateway is never used
Warning librt.c: 2 static 'int function(pointer to char,pointer to void function(void)) direct_gateway' is not refer
enced
Warning c:/progra~1/scilab~1.2/routines\stack-c.h: 94 static 'int c_local' is not referenced
Warning c:/progra~1/scilab~1.2/routines\stack-c.h: 93 static 'int c1_local' is not referenced
cannot open ../src/librtsrc.ilib
!--error 10000
unix_s: error during ``make -f Makelib.lcc librt.dll'' execution
at line 50 of function unix_s called by :
line 29 of function ilib_compile called by :
line 20 of function ilib_build called by :
ilib_build(ilib_name, table, files, libs, makename, ldflags, cflags, fflags);
line 49 of exec file called by :
exec("buildsci_gateway.sce");
line 39 of exec file called by :
exec c:\robot\builder.sce;

-->

Is this a problem with my LCC-win32 or RTSS?
librtsrc.lib was created but librtsrc.ilib was not created therefore it could not be opened.

my email is gfwright@telus.net

Discussion

  • Matteo Morelli

    Matteo Morelli - 2008-03-21

    Logged In: YES
    user_id=1800819
    Originator: NO

    Hello,

    >> I got the following when I tried to use the precompiled rtss under windows
    >> vista:
    >> [ ... cut ... ]
    >> -->exec c:\robot\demos\rt_demo3.sce;
    >> Warning !!!
    >> Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
    >> with "librt" function.
    >> Scilab may become unstable.

    it is a known issue that prebuilt RTSS doesn't work with Scilab-4.1.2 running on Windows Vista (see the bug report #1820632 at http://sourceforge.net/tracker/index.php?func=detail&aid=1830632&group_id=206553&atid=998060\).

    >> So I tried compiling rtss

    As I suggested in the bug report, this could have fixed the problem. Unfortunately, despite that I thought, even by compiling the source version of RTSS on Windows Vista, the problem occurs anyway. Infact, at long last, I could test RTSS on a Vista system and I noticed that both the distributions (prebuilt and source) have trouble executing some /particular/ commands. As an example --among others-- an exception is thrown when attempting to operate on text strings in a robot object:

    -->exec robot\models\rt_puma560.sce;

    -->p560.name = "TEST";
    Warning !!!
    Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)
    with "librt" function.
    Scilab may become unstable.

    warning: stack problem..., cleared

    -->

    Without going into details, by typing the command p560.name = "TEST", the Interface Program sci_rt_ins_c_in_robot (see robot\sci_gateway\sci_rt_insertion_in_robot.c) is executed, but it always crashes executing the "realloc" at line 72: R->name = (char *) realloc(R->name, (strlen(*pv) + 1) * sizeof(char));.

    Instead, all works fine under Windows XP. Therefore, according to this and to other similar examples, it can be supposed that there is a problem with the build process for /external/ toolboxes on Windows Vista with VS 2005. I pointed out the problem to Scilab Developers and this issue should be fixed in Scilab 5.

    >> I tried compiling rtss under Vista with the LCC-win32 compiler
    >> configured in Scilab and got the following:
    >> [... cut ... ]
    >> Is this a problem with my LCC-win32 or RTSS?
    >> librtsrc.lib was created but librtsrc.ilib was not created therefore it
    >> could not be opened.

    In all honesty, I had never tried to build RTSS with the lcc-win32 compiler. I get the same error as you building RTSS both under Windows Vista and XP. I will go more into the question in the next days.

    Thanks for your interest in RTSS.

    Regards,

    --
    Matteo

     
  • Matteo Morelli

    Matteo Morelli - 2008-03-21
    • milestone: --> version 0.3.0 and lower
     

Log in to post a comment.