Can't run in Kernel "Fiel does not exist"

2 次查看(过去 30 天)
Laura
Laura 2022-8-26
评论: Laura 2022-10-10
Top Model Build
### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Intento1_sldrt_win64
The file containing block diagram 'Intento1' is shadowed by a file of the same name higher on the MATLAB path. This can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink documentation. The file containing the block diagram is: C:\Users\a01376307\Intento1.slx. The file higher on the MATLAB path is: C:\Users\a01376307\Documents\MATLAB\Intento1.slx
3 similar
Component:Simulink | Category:Block diagram warning
### Invoking Target Language Compiler on Intento1.rtw ### Using System Target File: C:\Program Files\MATLAB\R2022a\toolbox\sldrt\rtw\sldrt.tlc
### Loading TLC function libraries ### Initial pass through model to cache user defined code . ### Caching model source code ### Writing source file Intento1_tgtconn.c ### Writing header file Intento1_types.h . ### Writing source file Intento1.c ### Writing header file Intento1.h ### Writing header file rtwtypes.h ### Writing header file multiword_types.h ### Writing header file zero_crossing_types.h ### Writing header file rt_nonfinite.h . ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### Writing header file Intento1_private.h . ### Writing header file rtmodel.h ### Writing source file Intento1_data.c ### Writing header file rt_defines.h ### TLC code generation complete. ### Generating TLC interface API. ### Creating data type transition file Intento1_dt.h
### Saving binary information cache. . ### Processing Template Makefile: C:\Program Files\MATLAB\R2022a\toolbox\sldrt\rtw\sldrt.tmf ### Created makefile C:\Intento1_sldrt_win64\Intento1.mk ### Building Intento1: .\Intento1.bat . C:\Intento1_sldrt_win64>set MATLAB=C:\Program Files\MATLAB\R2022a C:\Intento1_sldrt_win64>"C:\Program Files\MATLAB\R2022a\bin\win64\gmake" -f Intento1.mk EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 TMW_EXTMODE_TESTING=0 COMBINE_OUTPUT_UPDATE_FCNS=0 INCLUDE_MDL_TERMINATE_FCN=1 MULTI_INSTANCE_CODE=0 OPTS="-DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0" ### Compiling Intento1.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "Intento1.obj" "Intento1.c" ### Compiling Intento1_data.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "Intento1_data.obj" "Intento1_data.c" ### Compiling Intento1_tgtconn.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "Intento1_tgtconn.obj" "Intento1_tgtconn.c" ### Compiling rtGetInf.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "rtGetInf.obj" "rtGetInf.c" ### Compiling rtGetNaN.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "rtGetNaN.obj" "rtGetNaN.c" ### Compiling rt_nonfinite.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "rt_nonfinite.obj" "rt_nonfinite.c" ### Compiling C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src/sldrt_main.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "sldrt_main.obj" "C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src/sldrt_main.c" ### Compiling C:/PROGRA~1/MATLAB/R2022a/rtw/c/src/rt_sim.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "rt_sim.obj" "C:/PROGRA~1/MATLAB/R2022a/rtw/c/src/rt_sim.c" ### Compiling C:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common/ext_svr.c C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/clang -x c -c --target=x86_64-none-elf -nostdlibinc -ffreestanding -flto -fPIC -fno-plt -mno-avx -Wno-switch-enum -Wno-empty-body -O3 -DSLDRT_TARGET_win64 -isystem C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/include -I. -I.. -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/shared/can/src/scanutil -IC:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/src -IC: -IC:/Intento1_sldrt_win64 -IC:/PROGRA~1/MATLAB/R2022a/extern/include -IC:/PROGRA~1/MATLAB/R2022a/simulink/include -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2022a/toolbox/coder/rtiostream/src -DTGTCONN -DEXT_MODE -DON_TARGET_WAIT_FOR_START=0 -DTID01EQ=0 -DEXT_MODE -DUSE_RTMODEL -DMODEL=Intento1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -o "ext_svr.obj" "C:/PROGRA~1/MATLAB/R2022a/rtw/c/src/ext_mode/common/ext_svr.c" ### Created Simulink Desktop Real-Time module Intento1.rxw64 C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/clang/win64/lld -flavor ld --lto-O3 -shared -o ../Intento1.rxw64 Intento1.obj Intento1_data.obj Intento1_tgtconn.obj rtGetInf.obj rtGetNaN.obj rt_nonfinite.obj sldrt_main.obj rt_sim.obj ext_svr.obj updown_sldrt.obj C:/PROGRA~1/MATLAB/R2022a/toolbox/sldrt/lib/win64/sldrtlib.a lld: error: cannot open output file ../Intento1.rxw64: permission denied gmake: *** [../Intento1.rxw64] Error 1
Build Summary
Top model targets built: Model Action Rebuild Reason ==================================================================== Intento1 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 6.042s
Error(s) encountered while building "Intento1"
Component:Simulink | Category:Block diagram error
  2 个评论
Walter Roberson
Walter Roberson 2022-8-26
The build tool chain is trying to write into the directory above the directory you are currently in, but permission is denied.
I suggest moving your build folder from C:\Intento1_sldrt_win64 to something a level down from that
Also I recommend fixing the issue with shadowed files.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by