Skip to content

编译的时候可能会出现 Not access because it is busy 的错误 #6868

@qqjmk15263

Description

@qqjmk15263

Xmake 版本

3.0.3

操作系统版本和架构

windows10

描述问题

使用xmake来编译stm32+threadx 工程,发现在编译的时候偶尔会出现
error: cannot remove file build.objs\LL-Function-Label\mcu\stm32\debug\threadx\src__cpp_txe_semaphore_put.c.c Not access because it is busy
的错误,并且错误时提示的文件不固定,发生错误后,再次编译可能就成功

期待的结果

不报类似错误

工程配置

...

附加信息和错误日志

PS E:\Develop\Project\LL-Device\LL-PTL.threadx> xmake
[ 0%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_misra.S
[ 1%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_context_restore.S
[ 1%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_context_save.S
[ 2%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_interrupt_control.S
[ 2%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_interrupt_disable.S
[ 3%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_interrupt_restore.S
[ 3%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_schedule.S
[ 4%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_stack_build.S
[ 4%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_thread_system_return.S
[ 5%]: compiling.debug threadx\ports\cortex_m3\gnu\src\tx_timer_interrupt.S
[ 5%]: cache compiling.debug LL-Function-Label\main.c
[ 5%]: cache compiling.debug LL-Function-Label\startup.c
[ 6%]: cache compiling.debug threadx\src\txe_block_allocate.c
[ 6%]: cache compiling.debug threadx\src\txe_block_pool_create.c
[ 7%]: cache compiling.debug threadx\src\txe_block_pool_delete.c
[ 7%]: cache compiling.debug threadx\src\txe_block_pool_info_get.c
[ 8%]: cache compiling.debug threadx\src\txe_block_pool_prioritize.c
[ 8%]: cache compiling.debug threadx\src\txe_block_release.c
[ 9%]: cache compiling.debug threadx\src\txe_byte_allocate.c
[ 9%]: cache compiling.debug threadx\src\txe_byte_pool_create.c
[ 10%]: cache compiling.debug threadx\src\txe_byte_pool_delete.c
[ 10%]: cache compiling.debug threadx\src\txe_byte_pool_info_get.c
[ 10%]: cache compiling.debug threadx\src\txe_byte_pool_prioritize.c
[ 11%]: cache compiling.debug threadx\src\txe_byte_release.c
[ 11%]: cache compiling.debug threadx\src\txe_event_flags_create.c
[ 12%]: cache compiling.debug threadx\src\txe_event_flags_delete.c
[ 12%]: cache compiling.debug threadx\src\txe_event_flags_get.c
[ 13%]: cache compiling.debug threadx\src\txe_event_flags_info_get.c
[ 13%]: cache compiling.debug threadx\src\txe_event_flags_set.c
[ 14%]: cache compiling.debug threadx\src\txe_event_flags_set_notify.c
[ 14%]: cache compiling.debug threadx\src\txe_mutex_create.c
[ 15%]: cache compiling.debug threadx\src\txe_mutex_delete.c
[ 15%]: cache compiling.debug threadx\src\txe_mutex_get.c
[ 15%]: cache compiling.debug threadx\src\txe_mutex_info_get.c
[ 16%]: cache compiling.debug threadx\src\txe_mutex_prioritize.c
[ 16%]: cache compiling.debug threadx\src\txe_mutex_put.c
[ 17%]: cache compiling.debug threadx\src\txe_queue_create.c
[ 17%]: cache compiling.debug threadx\src\txe_queue_delete.c
[ 18%]: cache compiling.debug threadx\src\txe_queue_flush.c
[ 18%]: cache compiling.debug threadx\src\txe_queue_front_send.c
[ 19%]: cache compiling.debug threadx\src\txe_queue_info_get.c
[ 19%]: cache compiling.debug threadx\src\txe_queue_prioritize.c
[ 20%]: cache compiling.debug threadx\src\txe_queue_receive.c
[ 20%]: cache compiling.debug threadx\src\txe_queue_send.c
[ 20%]: cache compiling.debug threadx\src\txe_queue_send_notify.c
[ 21%]: cache compiling.debug threadx\src\txe_semaphore_ceiling_put.c
[ 21%]: cache compiling.debug threadx\src\txe_semaphore_create.c
[ 22%]: cache compiling.debug threadx\src\txe_semaphore_delete.c
[ 22%]: cache compiling.debug threadx\src\txe_semaphore_get.c
[ 23%]: cache compiling.debug threadx\src\txe_semaphore_info_get.c
[ 23%]: cache compiling.debug threadx\src\txe_semaphore_prioritize.c
[ 24%]: cache compiling.debug threadx\src\txe_semaphore_put.c
[ 24%]: cache compiling.debug threadx\src\txe_semaphore_put_notify.c
[ 25%]: cache compiling.debug threadx\src\txe_thread_create.c
[ 25%]: cache compiling.debug threadx\src\txe_thread_delete.c
[ 25%]: cache compiling.debug threadx\src\txe_thread_entry_exit_notify.c
[ 26%]: cache compiling.debug threadx\src\txe_thread_info_get.c
[ 26%]: cache compiling.debug threadx\src\txe_thread_preemption_change.c
[ 27%]: cache compiling.debug threadx\src\txe_thread_priority_change.c
[ 27%]: cache compiling.debug threadx\src\txe_thread_relinquish.c
[ 28%]: cache compiling.debug threadx\src\txe_thread_reset.c
[ 28%]: cache compiling.debug threadx\src\txe_thread_resume.c
[ 29%]: cache compiling.debug threadx\src\txe_thread_suspend.c
[ 29%]: cache compiling.debug threadx\src\txe_thread_terminate.c
[ 30%]: cache compiling.debug threadx\src\txe_thread_time_slice_change.c
[ 30%]: cache compiling.debug threadx\src\txe_thread_wait_abort.c
error: cannot remove file build.objs\LL-Function-Label\mcu\stm32\debug\threadx\src__cpp_txe_semaphore_put.c.c Not access because it is busy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions