Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Real Time Workshop build error 1070

80 views
Skip to first unread message

Kate J.

unread,
Mar 17, 2010, 1:06:06 PM3/17/10
to
I’m trying to build a model using Real Time Workshop, but each time I try to build, the following error message pops up:


Error building Real-Time Workshop target for block diagram 'test_model'. MATLAB error message:
Error using ==> genMakefileAndBuild at 1070
Error(s) encountered while building model "test_model".

I have investigated all of the documentation & Matlab Central posts about this 1070 error, and I’ve implemented all of the fixes suggested in those resources. I’ve also talked with a Mathworks engineer, but they weren’t able to come up with a solution.

What worries me is that, even when I remove any custom components from my Simulink model, and I just have a couple of constant blocks, an Add block, and a scope, I *still* get this same error when I try to build.

I will paste in my next post below the detailed Matlab screen output, before the build attempt fails.

Does anyone have any idea what might be going wrong, that would prevent even a very simple model from successfully building? Thanks for your help.

Kate J.

unread,
Mar 17, 2010, 1:20:24 PM3/17/10
to
As promised above, here is the text that appears on my Matlab screen before each build attempt fails:

cl /O2 /c /nologo -DMODEL=das1act_temp1 -DRT -DNUMST=3 -DTID01EQ=1 -DNCSTATES=16 -DMT=1 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE -D_MT -MT /Op ..\sdbio.c
cl : Command line warning D9002 : ignoring unknown option '/Op'
sdbio.c
...

(Note: there is a HUGE set of similar warning messages preceding these 3 messages below)

Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\sdbio.c(1674) : warning C4996: 'strcpy' was declared deprecated
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\sdbio.c(1675) : warning C4996: 'strcat' was declared deprecated
Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

C:\pathname \das1act_temp1_xpc_rtw>echo The make command returned an error of 2
The make command returned an error of 2

C:\pathname \das1act_temp1_xpc_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.

Kate J.

unread,
Mar 22, 2010, 4:47:02 PM3/22/10
to
Has anyone ever experienced the errors above? Any suggestions? Thanks.

Jesse Hopkins

unread,
Mar 22, 2010, 5:13:03 PM3/22/10
to
I've gotten this error before. Based on the text you posted I can tell you that it is directly related to this:

NMAKE : fatal error U1077: '"c:\program files\microsoft visual studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

That means that your simulink diagram successfully made it past the code-generation stage, but the compiler was not able to compile the code for some reason. You could try a different compiler by running "mex -setup" and selecting another compiler.

Kate J.

unread,
Mar 23, 2010, 1:53:23 PM3/23/10
to

Thanks, Jesse. I will try using a different compiler...
0 new messages