-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] LOCAL_CPPDEFINES组宏定义无法添加到CMakeLists.txt #9536
Comments
能描述的再详细一点吗? |
ok,我去看一下 |
我刚才编译了bsp/stm32f407-armfly-v5,虽然没有看到这组宏定义,但是编译没有报warning C:\Users\Administrator\AppData\Local\Programs\CLion\bin\cmake\win\x64\bin\cmake.exe --build F:\rt-thread\bsp\stm32\stm32f407-armfly-v5\cmake-build-debug --target stm32f407-armfly-v5.elf -- -j 18
[ 1%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c.obj
[ 2%] Building C object CMakeFiles/rtt_Drivers.dir/F_/rt-thread/bsp/stm32/libraries/HAL_Drivers/drivers/drv_gpio.c.obj
[ 3%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c.obj
[ 5%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/core/device.c.obj
[ 6%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/cctype.c.obj
[ 7%] Building C object CMakeFiles/rtt_Drivers.dir/F_/rt-thread/bsp/stm32/libraries/HAL_Drivers/drivers/drv_spi.c.obj
[ 9%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/completion_comm.c.obj
[ 10%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/cstdlib.c.obj
[ 11%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c.obj
[ 13%] Building C object CMakeFiles/rtt_Drivers.dir/F_/rt-thread/bsp/stm32/libraries/HAL_Drivers/drivers/drv_usart.c.obj
[ 14%] Building C object CMakeFiles/rtt_Finsh.dir/F_/rt-thread/components/finsh/cmd.c.obj
[ 15%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c.obj
[ 17%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/completion_up.c.obj
[ 18%] Building C object CMakeFiles/rtt_Drivers.dir/F_/rt-thread/bsp/stm32/libraries/HAL_Drivers/drv_common.c.obj
[ 19%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/cstring.c.obj
[ 21%] Building C object CMakeFiles/rtt_Finsh.dir/F_/rt-thread/components/finsh/msh_parse.c.obj
[ 22%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/clock.c.obj
[ 23%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/condvar.c.obj
[ 25%] Building C object CMakeFiles/rtt_libcpu.dir/F_/rt-thread/libcpu/arm/common/atomic_arm.c.obj
[ 26%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/ctime.c.obj
[ 27%] Building C object CMakeFiles/rtt_libcpu.dir/F_/rt-thread/libcpu/arm/common/div0.c.obj
[ 28%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/components.c.obj
[ 30%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c.obj
[ 31%] Building ASM object CMakeFiles/rtt_Drivers.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s.obj
[ 32%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/cpu_up.c.obj
[ 34%] Building C object CMakeFiles/rtt_Finsh.dir/F_/rt-thread/components/finsh/msh.c.obj
[ 35%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/dataqueue.c.obj
[ 36%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/cunistd.c.obj
[ 38%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c.obj
[ 39%] Building C object CMakeFiles/rtt_Drivers.dir/board/CubeMX_Config/Src/stm32f4xx_hal_msp.c.obj
[ 40%] Building C object CMakeFiles/rtt_libcpu.dir/F_/rt-thread/libcpu/arm/common/showmem.c.obj
[ 42%] Building C object CMakeFiles/rtt_Finsh.dir/F_/rt-thread/components/finsh/shell.c.obj
[ 43%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/pipe.c.obj
[ 44%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/common/cwchar.c.obj
[ 46%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/defunct.c.obj
[ 47%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c.obj
[ 48%] Building C object CMakeFiles/rtt_Drivers.dir/board/board.c.obj
[ 50%] Building ASM object CMakeFiles/rtt_libcpu.dir/F_/rt-thread/libcpu/arm/cortex-m4/context_gcc.S.obj
[ 51%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/idle.c.obj
[ 52%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cec.c.obj
[ 53%] Building C object CMakeFiles/rtt_libcpu.dir/F_/rt-thread/libcpu/arm/cortex-m4/cpuport.c.obj
[ 55%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/ringblk_buf.c.obj
[ 56%] Building C object CMakeFiles/rtt_Compiler.dir/F_/rt-thread/components/libc/compilers/newlib/syscalls.c.obj
[ 57%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/ringbuffer.c.obj
[ 57%] Built target rtt_Finsh
[ 59%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/ipc.c.obj
[ 60%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_usart.c.obj
[ 60%] Built target rtt_Drivers
[ 61%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/irq.c.obj
[ 63%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c.obj
[ 64%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/waitqueue.c.obj
[ 64%] Built target rtt_Compiler
[ 65%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/ipc/workqueue.c.obj
[ 65%] Built target rtt_libcpu
[ 67%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/klibc/kerrno.c.obj
[ 68%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cryp.c.obj
[ 69%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/klibc/kstdio.c.obj
[ 71%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c.obj
[ 72%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/pin/dev_pin.c.obj
[ 73%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/serial/dev_serial.c.obj
[ 75%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/klibc/kstring.c.obj
[ 76%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c.obj
[ 77%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/kservice.c.obj
[ 78%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c.obj
[ 80%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/spi/dev_spi.c.obj
[ 81%] Building C object CMakeFiles/rtt_DeviceDrivers.dir/F_/rt-thread/components/drivers/spi/dev_spi_core.c.obj
[ 82%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/mem.c.obj
[ 84%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cryp_ex.c.obj
[ 85%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/mempool.c.obj
[ 86%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c.obj
[ 88%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/object.c.obj
[ 89%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c.obj
[ 90%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/scheduler_comm.c.obj
[ 92%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c.obj
[ 92%] Built target rtt_DeviceDrivers
[ 93%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/scheduler_up.c.obj
[ 94%] Building C object CMakeFiles/rtt_Libraries.dir/F_/rt-thread/bsp/stm32/libraries/STM32F4xx_HAL/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_qspi.c.obj
[ 96%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/thread.c.obj
[ 97%] Building C object CMakeFiles/rtt_Kernel.dir/F_/rt-thread/src/timer.c.obj
[ 97%] Built target rtt_Libraries
[ 97%] Built target rtt_Kernel
[ 98%] Building C object CMakeFiles/stm32f407-armfly-v5.elf.dir/applications/main.c.obj
[100%] Linking C executable stm32f407-armfly-v5.elf
Memory region Used Size Region Size %age Used
ROM: 86668 B 1 MB 8.27%
RAM: 5432 B 128 KB 4.14%
text data bss dec hex filename
86668 1916 3512 92096 167c0 stm32f407-armfly-v5.elf
[100%] Built target stm32f407-armfly-v5.elf
|
版本5.1.0? |
复现出来了,但是我和master的对比了一下,两边的sconscript是一样的 |
看一下这个commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RT-Thread Version
5.1.0
Hardware Type/Architectures
all
Develop Toolchain
GCC
Describe the bug
LOCAL_CPPDEFINES组下的宏定义无法添加到CMakeLists.txt文件中
Other additional context
No response
The text was updated successfully, but these errors were encountered: