NMAKE: Fatal Error U1077 when compiling a block generated by HDL Coder

조회 수: 1 (최근 30일)
Alex Yuen
Alex Yuen 2018년 10월 8일
When I attempt to build a Simulink model onto my target computer (Speed Goat Real-time Performance) I get the following error when I include a block generated by HDL Coder:
It appears that the build process was unable to locate some utility (e.g. make,
compiler, linker, etc.). Please verify your path and tool environment variables
are correct. You should be able to execute the make command:
.\emulator.bat
at an MS DOS Command Prompt in the folder:
J:\Lev5DOFTest\emulator\emulator_slrt_rtw\instrumented
Currently, this generates the following error:
J:\Lev5DOFTest\emulator\emulator_slrt_rtw\instrumented>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\VCVARSALL.BAT " x86
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.7.6
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
The system cannot find the path specified.
[vcvarsall.bat] Environment initialized for: 'x86'
Microsoft (R) Program Maintenance Utility Version 14.14.26433.0
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling ..\emulator.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=emulator -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=31 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE ..\emulator.c
emulator.c
..\emulator.c(1236): error C2143: syntax error: missing ';' before '*'
..\emulator.c(1236): error C2065: 'plx': undeclared identifier
..\emulator.c(1236): error C2100: illegal indirection
..\emulator.c(1236): error C2059: syntax error: ')'
..\emulator.c(1241): error C2065: 'plx': undeclared identifier
..\emulator.c(1241): error C2223: left of '->dma0pci' must point to struct/union
..\emulator.c(1244): error C2065: 'plx': undeclared identifier
..\emulator.c(1244): error C2223: left of '->dma0local' must point to struct/union
..\emulator.c(1245): error C2065: 'plx': undeclared identifier
..\emulator.c(1245): error C2223: left of '->dma0descriptor' must point to struct/union
..\emulator.c(1248): error C2065: 'plx': undeclared identifier
..\emulator.c(1248): error C2223: left of '->dma0length' must point to struct/union
..\emulator.c(1249): error C2065: 'plx': undeclared identifier
..\emulator.c(1249): error C2223: left of '->dma0mode' must point to struct/union
..\emulator.c(1252): error C2065: 'plx': undeclared identifier
..\emulator.c(1252): error C2223: left of '->dma0cmdstatus' must point to struct/union
..\emulator.c(1254): error C2065: 'plx': undeclared identifier
..\emulator.c(1254): error C2223: left of '->dma0cmdstatus' must point to struct/union
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.EXE"' : return code '0x2'
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
Further, this code only persists if I include ADC interfaces in the HDL Coder block. Any help would be appreciated. Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by