The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Get Error "RTW.genMakefileAndBuild at 937" while RTI procedure is running
Replies: 15   Last Post: Aug 24, 2016 1:34 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 5
Registered: 8/17/07
Get Error "RTW.genMakefileAndBuild at 937" while RTI procedure is running
Posted: Aug 17, 2007 5:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi there,

I got a real big problem. I worked with Dymola v. 6.1,
Matlab R2007a and dSPACE DS1006 board.

I create a small Dymola Modell an build the s-function in
Simulink. That works well, but if I choose in the Dymola
Modell that the Option "Evaluate parameter to reduce
modells" Experiment setup\translation. I didn't get the
inner parameters in the s-function. That is the second
problem with the Interface between Dymola and Matlab.

To compile this modell it works fine, the *.mdl file is
created and I get correct values after the simulation in

Now I like to build the *.sdf file to run this modell at the
dSPACE expansion box. But the Compiler stops and I get the
following Message:

Error building Real-Time Workshop target for block diagram
'Simulink_Test'. MATLAB error message:
Error using ==> RTW.genMakefileAndBuild at 937
*** Make process failed while compiling, linking, or loading
*** Detailed error messages are printed in the MATLAB
Command Window
*** Aborted RTI build procedure for model Simulink_Test.

This is shown in the command window:

Starting build procedure with RTI 5.5 (RTI1006, 27-Jun-2007)
Model: "Simulink_Test"
*** Using configuration set : "Configuration"
*** Working directory :
Warning: Output port 1 of 'Simulink_Test/DymolaBlock' is not
*** Optional User System Description File
simulink_test_usr.sdf not available
*** Initializing code generation
### Starting Real-Time Workshop build procedure for model:
### Generating code into build directory:
Warning: Output port 1 of 'Simulink_Test/DymolaBlock' is not
### Invoking Target Language Compiler on Simulink_Test.rtw
-aCCompilerOptimizationOptsPopup="Default (-O2
-finline-functions -D_INLINE)"

### Loading TLC function libraries

### Initial pass through model to cache user defined code
*** Postprocessing RTI blocks
*** Starting I/O block checking
*** Passed I/O block checking
### Caching model source code
### Writing header file Simulink_Test_types.h
### Writing header file Simulink_Test.h
### Writing source file Simulink_Test.c
### Writing header file Simulink_Test_private.h
### Writing header file rtmodel.h
### Writing source file Simulink_Test_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### TLC code generation complete.
### Generating TLC interface API.
*** Generating file Simulink_Test_rti.c
*** Generating file
*** Generating Variable Description File Simulink_Test.trc

NOTE: The following option in the Configuration Parameters
dialog has been

"Conditional input branch execution" On

This leads to code optimization in which blocks are
not computed if their
outputs are not required in the simulation step, for
example, if their
output values are used as input for a Switch block and
the Switch
currently routes another signal. When the
corresponding output signals
are displayed in ControlDesk, their values are static.

To ensure that the blocks are computed, turn off the
"Conditional input branch execution" option and
rebuild the model.
*** Optional User Variable Description File
Simulink_Test_usr.trc not available
*** Found User-Code File Simulink_Test_usr.c from
17-Aug-2007 10:33:49
*** Found User Makefile from
17-Aug-2007 10:33:49
### Processing Template Makefile:
### which is generated from
C:\dSPACE\matlab\rti1006\m\rti1006.tmf is up to date
### Building Simulink_Test: dsmake -f


WORK DIRECTORY "d:\owl_tutoren\sebastian\simulink"
TARGET COMPILER "C:\x86Tools" (Vs 3.3.5)

COMPILING Simulink_Test.c
COMPILING Simulink_Test_data.c
COMPILING C:\PROGRA~1\MATLAB\R2007a\rtw\c\src\rt_matrx.c
COMPILING rt_nonfinite.c
COMPILING C:\dSPACE\MATLAB\RTI1006\C\rti_sim_engine.c
COMPILING ..\sinusgenerator_dy8147e2cu6.c
../sinusgenerator_dy8147e2cu6.c:8:20: ss2dym.c: No such file
or directory
../sinusgenerator_dy8147e2cu6.c:15:22: matrixop.h: No such
file or directory
../sinusgenerator_dy8147e2cu6.c:21:20: moutil.c: No such
file or directory
../sinusgenerator_dy8147e2cu6.c:22:22: dsblock1.c: No such
file or directory
../sinusgenerator_dy8147e2cu6.c:34: error: parse error
before "BoundParameterSection"
../sinusgenerator_dy8147e2cu6.c:39: error: `false'
undeclared here (not in a function)
../sinusgenerator_dy8147e2cu6.c:39: warning: data definition
has no type or storage class
../sinusgenerator_dy8147e2cu6.c:39: error: parse error
before numeric constant
../sinusgenerator_dy8147e2cu6.c:39: warning: data definition
has no type or storage class
../sinusgenerator_dy8147e2cu6.c:39: error: redefinition of
../sinusgenerator_dy8147e2cu6.c:39: error: `Init' previously
defined here
../sinusgenerator_dy8147e2cu6.c:39: error: `true' undeclared
here (not in a function)
../sinusgenerator_dy8147e2cu6.c:39: warning: data definition
has no type or storage class
../sinusgenerator_dy8147e2cu6.c:42: error: parse error
before "Output"
../sinusgenerator_dy8147e2cu6.c:42: error: function `Output'
is initialized like a variable
../sinusgenerator_dy8147e2cu6.c:42: warning: implicit
declaration of function `Parameter'
../sinusgenerator_dy8147e2cu6.c:42: warning: implicit
declaration of function `Input'
../sinusgenerator_dy8147e2cu6.c:42: warning: data definition
has no type or storage class
../sinusgenerator_dy8147e2cu6.c:46: error: parse error
before "AcceptedSection1"
../sinusgenerator_dy8147e2cu6.c:54:22: dsblock6.c: No such
file or directory
../sinusgenerator_dy8147e2cu6.c:92:22: dsblock5.c: No such
file or directory
{standard input}: Assembler messages:
{standard input}:13: Error: symbol `Init' is already defined



*** Stopped RTI build procedure

Please could someone tell me what is wrong to comile clean
Simulink modells it works without any errors, but if I like
to use s-function it doesn'nt do this.

I have read th bug reports

and I have done these to workarounds:

Thank you for your great help and advanced

Sebastian Nowoisky

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.