github0null / w801_cmake_template

HLK-W801 cmake project template
26 stars 3 forks source link

出现Permission denied,不清楚问题在哪?求指教 #2

Open yyelder opened 3 months ago

yyelder commented 3 months ago

[build] [417/445 90% :: 13.164] Linking C static library lib\libwmarch.a [build] [418/445 91% :: 13.183] Linking C static library lib\libwmsys.a [build] FAILED: lib/libwmsys.a [build] C:\WINDOWS\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f lib\libwmsys.a && csky-elfabiv2-ar qc lib\libwmsys.a sdk/platform/sys/CMakeFiles/wmsys.dir/tls_sys.c.obj sdk/platform/sys/CMakeFiles/wmsys.dir/wm_main.c.obj && E:\Environment\csky-elfabiv2-tools-mingw-minilibc-20210423\bin\csky-elfabiv2-ranlib.exe lib\libwmsys.a && cd ." [build] csky-elfabiv2-ar: unable to rename 'lib\libwmsys.a'; reason: Permission denied [build] [418/445 91% :: 13.183] Linking C static library lib\libwmcommon.a [build] [418/445 91% :: 13.183] Building C object sdk/CMakeFiles/w800sdk.dir/w800sdk.c.obj [build] [418/445 91% :: 13.184] Building C object sdk/src/network/lwip2.0.3/CMakeFiles/lwip2.0.3.dir/netif/ppp/ipv6cp.c.obj [build] [418/445 91% :: 13.215] Building C object sdk/src/os/CMakeFiles/os.dir/rtos/source/heap_5.c.obj [build] [418/445 92% :: 13.245] Building C object sdk/src/os/CMakeFiles/os.dir/rtos/wm_osal_rtos.c.obj [build] [418/445 92% :: 13.257] Linking C static library lib\libdrivers.a [build] [418/445 92% :: 13.298] Linking C static library lib\libcJSON.a [build] [418/445 92% :: 13.308] Linking C static library lib\libdnsserver.a [build] [418/445 93% :: 13.309] Linking C static library lib\libdhcpserver.a [build] [418/445 93% :: 13.311] Building C object sdk/src/os/CMakeFiles/os.dir/rtos/source/tasks.c.obj [build] [418/445 93% :: 13.330] Linking C static library lib\libfactorycmd.a [build] [418/445 93% :: 13.334] Linking C static library lib\libbleapp.a [build] [418/445 93% :: 13.335] Linking C static library lib\libeasylogger.a [build] ninja: build stopped: subcommand failed. [proc] 命令“"C:\Program Files\CMake\bin\cmake.EXE" --build e:/Project/WM/w801_cmake_template/build --config Debug --target w801.fls --”已退出,代码为 1 [driver] 生成完毕: 00:00:13.375 当前用的下面这个 image

github0null commented 3 months ago

多试几次,windows 上有时候会出现这个问题

yyelder commented 3 months ago

多试几次,windows 上有时候会出现这个问题

好的,好的