Skip to content
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

脚本域下 {force=true} 的问题 #4763

Closed
eddylin83 opened this issue Feb 23, 2024 · 3 comments
Closed

脚本域下 {force=true} 的问题 #4763

eddylin83 opened this issue Feb 23, 2024 · 3 comments
Labels

Comments

@eddylin83
Copy link

Xmake 版本

2.8.6

操作系统版本和架构

Windows 11 23H2

描述问题

通过在on_load增加ldflags,代码如下:

    on_load(function (target)
        local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
        print(ldscript)
        -- wrong
        -- target:add("ldflags",ldscript, { force = true })
        -- wrong
        -- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })
        -- ok
        target:add("ldflags","-TD:\\works\\jobs\\threadx_at32\\bsp\\at32\\surf_f437\\misc\\AT32F437xM_FLASH.ld",{force = true})
    end)

执行的时候会忽略掉这个添加项,给的信息如下:

D:\works\jobs\threadx_at32\bsp\at32\surf_f437/misc/AT32F437xM_FLASH.ld
warning: add_ldflags("-TD:\works\jobs\threadx_at32\bsp\at32\surf_f437/misc/AT32F437xM_FLASH.ld") is ignored, please pass `{force = true}` or call `set_policy("check.auto_ignore_flags", false)` if you want to set it.

实际上我已经增加了force=true,但是没用,试了一下三种写法,只有最后一种是没问题的,但是这种写法并不理想。

期待的结果

├─bsp
│  └─at32
│      ├─libraries
│      └─surf_f437 -- 上述xmake.lua所在位置
├─xmake.lua -- 根xmake所在位置

由于target在根脚本includes的子脚本中,因此打算弄成自动获取目录的方式增加灵活性。描述域好像获取不了(试过scriptdir和curdir都是获取到根脚本的目录),在描述域force=true又好像这种写法不生效,还有其他办法吗?

工程配置

根脚本:

add_rules("mode.debug", "mode.release")

toolchain("arm-none-gcc")
    set_kind("standalone")
    set_sdkdir("D:\\Programs\\gcc-arm-none-eabi-10.3-2021.10")
toolchain_end()

rule("cortex-m4")
    on_load(function (target)
        local MCPU_FLAGS = "-mthumb -mcpu=cortex-m4"
        local SPEC_FLAGS = "--specs=nosys.specs"

        target:set("toolchains","arm-none-gcc")
        if target:kind() == "binary" then 
            target:set("extension",".elf")
        end 
        target:add("cxflags",MCPU_FLAGS,SPEC_FLAGS)
        if get_config("float") == "hard" then
            target:add("cxflags","-mfpu=fpv4-sp-d16 -mfloat-abi=hard")
            target:add("defines","TX_USE_FPU_SUPPORT")
        end
        target:add("cxflags","-fdata-sections -ffunction-sections -mlong-calls")
        target:add("cxxflags","-fno-rtti -fno-exceptions")
        target:add("asflags",MCPU_FLAGS,"-x assembler-with-cpp")
        target:add("ldflags",MCPU_FLAGS,SPEC_FLAGS,"-Wl,--gc-sections",{force = true})
    end)
    after_build(function (target)
        if target:kind() == "binary" then
            local hexfil = path.join(target:targetdir(),target:basename()..".hex")
            local targetfil = target:targetfile()
            os.exec("arm-none-eabi-size %s", targetfil)
            if os.mtime(targetfil) > os.mtime(hexfil) then
                os.exec("arm-none-eabi-objcopy -O ihex %s %s",targetfil,hexfil)
            end     
        end   
    end)  
rule_end()

includes("bsp/at32/surf_f437")

子脚本:

add_defines("AT32F437ZMT7","USE_STDPERIPH_DRIVER")
add_rules("cortex-m4")
add_includedirs("inc")

includes("../libraries/AT32F435_437_Firmware_Library")

target("threadx_surf437")
    set_kind("binary")
    add_rules("cortex-m4")
    add_deps("at32f435_437_fw")
    add_files("src/*.c")
    add_includedirs("board")
    local board_prefix = "board/at_surf_f437_board_"
    add_files(board_prefix.."delay.c")
    add_files(board_prefix.."lcd.c",board_prefix.."font.c")
    add_files(board_prefix.."rgbled.c")
    -- add_ldflags("-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })
        -- local ldscript = path.join("$(scriptdir)","misc","AT32F437xM_FLASH.ld")
        -- local ldflags = "-Wl,-T"..ldscript.." -Wl,-Map="..target:targetfile()..".map"
    on_load(function (target)
        local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
        print(ldscript)
        -- wrong
        -- target:add("ldflags",ldscript, { force = true })
        -- wrong
        -- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })
        -- ok
        -- target:add("ldflags","-TD:\\works\\jobs\\threadx_at32\\bsp\\at32\\surf_f437\\misc\\AT32F437xM_FLASH.ld -Wl,-Map=build\\cross\\arm\\debug\\threadx_surf437.elf.map",{force = true})
    end)

附加信息和错误日志

checking for arm-none-eabi-gcc ... D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc ... ok
checking for flags (-fPIC) ... ok

arm-none-eabi-gcc "-fPIC"
checking for flags (-O0) ... ok
arm-none-eabi-gcc "-O0"
checking for flags (-mthumb -mcpu=cortex-m4) ... ok
arm-none-eabi-gcc "-mthumb" "-mcpu=cortex-m4"
checking for flags (--specs=nosys.specs) ... ok
arm-none-eabi-gcc "--specs=nosys.specs"
checking for flags (-fdata-sections -ffunction-sections -mlong-calls) ... ok
arm-none-eabi-gcc "-fdata-sections" "-ffunction-sections" "-mlong-calls"
checking for arm-none-eabi-gcc ... D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\src\at32f435_437_clock.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\at32f435_437_clock.c.o bsp\at32\surf_f437\src\at32f435_437_clock.c
checking for flags (-MMD -MF) ... ok
arm-none-eabi-gcc "-MMD" "-MF" "C:\Users\LINZUO~1\AppData\Local\Temp.xmake\240223_88482CC5C3B94660846522F421A2EE60"
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_qspi.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_qspi.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_qspi.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_spi.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_spi.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_spi.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_gpio.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_gpio.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_gpio.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_exint.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_exint.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_exint.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\board\at_surf_f437_board_lcd.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_lcd.c.o bsp\at32\surf_f437\board\at_surf_f437_board_lcd.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_adc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_adc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_adc.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_can.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_can.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_can.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wdt.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wdt.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wdt.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dac.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dac.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dac.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\board\at_surf_f437_board_rgbled.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_rgbled.c.o bsp\at32\surf_f437\board\at_surf_f437_board_rgbled.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\src\at32f435_437_int.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\at32f435_437_int.c.o bsp\at32\surf_f437\src\at32f435_437_int.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_acc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_acc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_acc.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_sdio.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_sdio.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_sdio.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\board\at_surf_f437_board_font.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_font.c.o bsp\at32\surf_f437\board\at_surf_f437_board_font.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_edma.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_edma.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_edma.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crm.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crm.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crm.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_i2c.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_i2c.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_i2c.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_tmr.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_tmr.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_tmr.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usart.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usart.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usart.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usb.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usb.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usb.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_scfg.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_scfg.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_scfg.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_flash.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_flash.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_flash.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_ertc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_ertc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_ertc.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_pwc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_pwc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_pwc.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_misc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_misc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_misc.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_emac.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_emac.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_emac.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support\system_at32f435_437.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support\system_at32f435_437.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support\system_at32f435_437.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\board\at_surf_f437_board_delay.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_delay.c.o bsp\at32\surf_f437\board\at_surf_f437_board_delay.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dma.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dma.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dma.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\surf_f437\src\main.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\surf_f437\board -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\main.c.o bsp\at32\surf_f437\src\main.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dvp.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dvp.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dvp.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_debug.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_debug.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_debug.c
checking for the c++ compiler (cxx) ... arm-none-eabi-gcc
[ 4%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crc.c
[ 69%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wwdt.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wwdt.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wwdt.c
[ 69%]: cache compiling.debug bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_xmc.c
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-gcc -c -g -O0 -Ibsp\at32\surf_f437\inc -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\core_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support -Ibsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\inc -DAT32F437ZMT7 -DUSE_STDPERIPH_DRIVER -mthumb -mcpu=cortex-m4 --specs=nosys.specs -fdata-sections -ffunction-sections -mlong-calls -o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_xmc.c.o bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_xmc.c
checking for arm-none-eabi-ar ... D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-ar
checking for the static library archiver (ar) ... arm-none-eabi-ar
[ 90%]: archiving.debug libat32f435_437_fw.a
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-ar -cr build\cross\arm\debug\libat32f435_437_fw.a build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\cmsis\cm4\device_support\system_at32f435_437.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_acc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_adc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_can.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_crm.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dac.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_debug.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dma.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_dvp.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_edma.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_emac.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_ertc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_exint.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_flash.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_gpio.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_i2c.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_misc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_pwc.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_qspi.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_scfg.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_sdio.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_spi.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_tmr.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usart.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_usb.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wdt.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_wwdt.c.o build.objs\at32f435_437_fw\cross\arm\debug\bsp\at32\libraries\AT32F435_437_Firmware_Library\drivers\src\at32f435_437_xmc.c.o
checking for arm-none-eabi-g++ ... D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-g++
checking for the linker (ld) ... arm-none-eabi-g++
checking for D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-g++ ... ok
checking for flags (-fPIC) ... no
arm-none-eabi-g++ "-fPIC"
checkinfo: @programdir\core\sandbox\modules\os.lua:273: d:/programs/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: d:/programs/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function exit': exit.c:(.text.exit+0x2c): undefined reference to _exit'
collect2.exe: error: ld returned 1 exit status

stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:949]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
checking for flags (-TC:\Program Files\xmake\actions\config/misc/AT32F437xM_FLASH.ld) ... no

arm-none-eabi-g++ "-TC:\Program" "Files\xmake\actions\config/misc/AT32F437xM_FLASH.ld"
checkinfo: @programdir\core\sandbox\modules\os.lua:273: arm-none-eabi-g++: error: Files\xmake\actions\config/misc/AT32F437xM_FLASH.ld: No such file or directory

stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:949]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
[ 95%]: linking.debug threadx_surf437.elf
D:\Programs\gcc-arm-none-eabi-10.3-2021.10\bin\arm-none-eabi-g++ -o build\cross\arm\debug\threadx_surf437.elf build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\at32f435_437_clock.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\at32f435_437_int.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\src\main.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_delay.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_lcd.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_font.c.o build.objs\threadx_surf437\cross\arm\debug\bsp\at32\surf_f437\board\at_surf_f437_board_rgbled.c.o -Lbuild\cross\arm\debug -lat32f435_437_fw -mthumb -mcpu=cortex-m4 --specs=nosys.specs -Wl,--gc-sections
text data bss dec hex filename
285996 1088 60 287144 461a8 build\cross\arm\debug\threadx_surf437.elf

build cache stats:
cache directory: build.build_cache
cache hit rate: 100%
cache hit: 36
cache miss: 0
new cached files: 0
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0

[100%]: build ok, spent 1.125s
warning: add_ldflags(""-TC:\Program Files\xmake\actions\config/misc/AT32F437xM_FLASH.ld"") is ignored, please pass {force = true} or call set_policy("check.auto_ignore_flags", false) if you want to set it.

@eddylin83 eddylin83 added the bug label Feb 23, 2024
@waruqi
Copy link
Member

waruqi commented Feb 23, 2024

set_policy("check.auto_ignore_flags", false)

@waruqi
Copy link
Member

waruqi commented Feb 23, 2024

    local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
    print(ldscript)
    -- wrong
    -- target:add("ldflags",ldscript, { force = true })
    -- wrong
    -- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })

脚本域 不要用 $(scriptdir) 那个主要是给描述域用的,脚本域用 os.scriptdir() ,直接用接口,否则路径不对,跟 force 无关

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


    local ldscript = "-T".."$(scriptdir)/misc/AT32F437xM_FLASH.ld"
    print(ldscript)
    -- wrong
    -- target:add("ldflags",ldscript, { force = true })
    -- wrong
    -- target:add("ldflags","-T$(scriptdir)/misc/AT32F437xM_FLASH.ld", { force = true })

Do not use $(scriptdir) in the script domain. It is mainly used for the description domain. Use os.scriptdir() in the script domain. Use the interface directly, otherwise the path will be incorrect.

@waruqi waruqi closed this as completed Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants