随机出现编译失败
Xmake 版本
3.0.1
操作系统版本和架构
Windows11 23H2
描述问题
正在文件夹 N32_coreBoot 中执行任务: C:\Windows\system32\cmd.exe /c xmake config --mode=debug && xmake build --all
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.44.35211
[ 4%]: compiling.debug library\CMSIS\device\startup\startup_n32h482_gcc.s
[ 19%]: compiling.debug library\CMSIS\device\system_n32h47x_48x.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_crc.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_adc.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\misc.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_gpio.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dvp.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_cordic.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dma.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dac.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fmac.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_flash.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_femc.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_comp.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_eth.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fdcan.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dbg.c
[ 19%]: compiling.debug library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_exti.c
create ok!
compile_commands.json updated!
error: MASM : warning A4018:invalid command-line option : -mcpu=cortex-m4
MASM : warning A4018:invalid command-line option : -mthumb
MASM : warning A4018:invalid command-line option : -x
Assembling: assembler-with-cpp
MASM : fatal error A1000:cannot open file : assembler-with-cpp
warning: we cannot get tool(ld) in toolchain(arm-none-eabi) with windows/x64, because it has been not checked yet!
warning: add -v for getting more warnings ..
期待的结果
不变更任何配置,有时成功,有时失败,就很奇怪。 希望能确定问题原因,或者有一个解决问题的方向。
工程配置
-- xmake文档 https://xmake.io/#/zh-cn/getting_started
-- 注: 使用单引号标注字符串, 避免双引号需要转义的问题
-- 自定义修订号和版本号
local number_rev = '25080708'
local number_ver = '0x007F'
set_version(number_rev)
add_rules('plugin.compile_commands.autoupdate', {outputdir = 'build'})
add_rules('mode.debug', 'mode.release')
-- 优化配置
if is_mode('release') then
add_cflags('-Os', {force = true})
add_cflags('-flto', {force = true})
add_defines('CONFIG_USB_DBG_LEVEL=USB_DBG_ERROR')
add_defines('LOG_LEVEL=LOG_LEVEL_WARNING')
else
-- set_optimize('none')
-- add_cflags('-g3')
add_cflags('-Os', {force = true})
add_cflags('-flto', {force = true})
add_defines('CONFIG_USB_DBG_LEVEL=USB_DBG_LOG')
add_defines('LOG_LEVEL=LOG_LEVEL_DEBUG')
end
-- 公共宏定义配置
add_defines(
'N32H482',
'USE_STDPERIPH_DRIVER',
'SYSCLK_SRC=SYSCLK_USE_HSE_PLL',
'USBD_HID_VERSION_ID=' .. number_ver
)
-- 从环境变量获取工具链路径
-- 工具链可从这里获取安装 https://github.com/NekoPawClub/scoop-apps/tree/main
local path_str = os.getenv('PATH'):gsub('\\','/') or ''
for s in path_str:gmatch('[^;]+') do
if s:find('gcc-arm-none-eabi', 1, true) or s:find('GNU Arm Embedded Toolchain', 1, true) then
local toolchain_dir = s:gsub('/bin$', '')
toolchain('arm-none-eabi')
set_kind('standalone')
set_sdkdir(toolchain_dir)
toolchain_end()
add_sysincludedirs(toolchain_dir .. '/arm-none-eabi/include')
break
end
end
-- 定义交叉编译工具链
set_toolchains('arm-none-eabi', {force = true})
-- 定义编程语言版本 https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/C-Dialect-Options.html
set_languages('gnu23', 'gnuxx23')
-- 包含路径 (自定义扩展语法,支持通配符遍历和递归)
local Includedirs = {
'.',
'library/CMSIS/*',
'library/n32h47x_48x_std_periph_driver/inc',
'library/CherryUSB/common',
'library/CherryUSB/port/dwc2',
'library/logger',
'drivers/*', -- 遍历添加一级子目录
'components',
'components/*',
'project'
}
-- 遍历每个包含目录配置
for _, val in ipairs(Includedirs) do
local dir_include = ''
local dir_exclude = {}
-- 用竖线(|)分割字符串,第一部分是包含目录,后面是排除模式
for str in string.gmatch(val, '([^|]+)') do
if dir_include == '' then
-- 第一个部分是包含目录
dir_include = str
else
-- 后续部分是排除模式,转换为Lua匹配模式
str = str:gsub('([%.%+%-%^%$%(%)%%])', '%%%1') -- 转义特殊字符
str = str:gsub('%*%*', '.-') -- 将**转换为.-
str = str:gsub('%*', '[^/]*') -- 将*转换为[^/]*
str = str:gsub('%?', '[^/]') -- 将?转换为[^/]
table.insert(dir_exclude, str)
end
end
-- 获取包含目录下的所有子目录
for _, dir in ipairs(os.dirs(dir_include)) do
local should_include = true
-- 检查目录是否匹配任何排除模式
for _, exclude_pattern in ipairs(dir_exclude) do
if dir:match(exclude_pattern) then
should_include = false
break
end
end
-- 如果不匹配任何排除模式,则添加到包含列表
if should_include then
add_includedirs(dir)
end
end
end
-- 源文件配置
add_files(
'library/CMSIS/device/*.c',
'library/CMSIS/device/startup/startup_n32h482_gcc.s',
'library/n32h47x_48x_std_periph_driver/src/*.c',
'library/CherryUSB/port/dwc2/usb_dc_dwc2.c',
'library/CherryUSB/port/dwc2/usb_glue_n32.c',
'library/logger/*.c',
'drivers/**.c|usb/usbd_desc_*.c',
'components/**.c',
'project/**.c'
)
-- 通用编译选项
add_cflags(
'-Wno-unknown-attributes', -- 屏蔽未知属性警告
'-mcpu=cortex-m4',
'-mthumb',
'-mfloat-abi=soft',
'-ffunction-sections',
'-fdata-sections',
'-fno-common',
'-Wall',
{force = true}
)
-- 汇编选项
add_asflags(
'-mcpu=cortex-m4',
'-mthumb',
'-x assembler-with-cpp',
{force = true}
)
-- 链接配置
add_ldflags(
'-mcpu=cortex-m4',
'-Wl,--gc-sections',
'--specs=nano.specs',
'--specs=nosys.specs',
'-lc -lm -lnosys',
{force = true}
)
-- 构建前处理
before_build(function(target)
target:add('ldflags', '-Wl,-Map=' .. target:targetfile():gsub('[^%.]+$', 'map'), {force = true})
end)
-- 构建后处理
after_build(function(target)
local targetfile = target:targetfile()
-- 解析存储空间占用
local outdata, errdata = os.iorun('arm-none-eabi-size -Bd ' .. targetfile)
local text, data, bss, dec, hex = outdata:match('(%d+)%s+(%d+)%s+(%d+)%s+(%d+)%s+(%x+)')
local rom = data + text -- ROM占用 = data + text
local ram = data + bss -- RAM占用 = data + bss
local header = string.format(' total text data bss ram rom\n')
local totalb = string.format('B: %7s %7s %7s %7s %7s %7s\n', dec, text, data, bss, ram, rom)
local totalk = string.format('K: %7.2f %7.2f %7.2f %7.2f %7.2f %7.2f\n', dec/1024, text/1024, data/1024, bss/1024, ram/1024, rom/1024)
-- 生成目标文件
local targetname = targetfile:gsub('[^%.]+$', '')
local target_hex = targetname .. 'hex'
local target_bin = targetname .. 'bin'
os.exec('arm-none-eabi-objcopy -O ihex ' .. targetfile .. ' ' .. target_hex) -- 生成HEX文件
os.exec('arm-none-eabi-objcopy -O binary ' .. targetfile .. ' ' .. target_bin) -- 生成BIN文件
-- 生成对应的固件
local conver_bin = 'build/' .. path.filename(target_bin)
if is_mode('release') then
conver_bin = conver_bin:gsub('%.bin$', '_' .. number_rev .. '_' .. number_ver .. '.bin')
else
conver_bin = conver_bin:gsub('%.bin$', '_' .. number_rev .. '_' .. number_ver .. '_d.bin')
end
os.cp(target_bin, conver_bin);
-- 从链接脚本读取存储器信息
local ldflash = ''
for _, flag in ipairs(target:get('ldflags')) do
if flag:endswith('.ld') then
local ldfile = io.open(flag, 'r')
local flashs = {}
for line in ldfile:lines() do
if line:find('LENGTH') then
local tag, val = line:match('%s*([^%s%(]+).-LENGTH%s*=%s*(.+)')
table.insert(flashs, tag .. '=' .. val:trim())
end
end
ldfile:close()
ldflash = ' => ' .. table.concat(flashs, ', ')
break
end
end
-- 输出日志信息
print(
'[存储空间] ' .. targetfile .. ldflash .. '\n' ..
header ..
totalb ..
totalk
)
end)
-- 设置构建目录结构
set_extension('.elf') -- 设置文件扩展名
set_targetdir('build/.outs') -- 设置elf输出目录
set_policy('build.ccache', false) -- 关闭缓存
-- 宏定义配置
add_defines(
'USBD_HID_VENDOR_ID=0xCAFE',
'USBD_HID_PRODUCT_ID=0x0000',
'WEB_URL="https://antecer.com"', -- 网址内容 UTF8编码,必须包含协议头
'VENDOR_NAME="antecer"',
'DEVICE_NAME="Boot"'
)
-- 定义目标
target('CoreBoot')
-- 链接配置
add_ldflags(
'-T',
'$(projectdir)/library/CMSIS/device/n32h47x_48x_flash_0x08000000.ld',
{force = true}
)
-- 添加私有源文件
add_files(
'$(projectdir)/drivers/usb/usbd_desc_msos20.c'
)
-- 定义目标
target('UserBoot')
-- 链接配置
add_ldflags(
'-T',
'$(projectdir)/library/CMSIS/device/n32h47x_48x_flash_0x0800A000.ld',
{force = true}
)
-- 添加私有源文件
add_files(
'$(projectdir)/drivers/usb/usbd_desc_msos20.c'
)
附加信息和错误日志
正在文件夹 N32_coreBoot 中执行任务: C:\Windows\system32\cmd.exe /c xmake config --mode=release && xmake build --all -vD
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.44.35211
checking for arm-none-eabi-gcc ... D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc
checking for the c compiler (cc) ... arm-none-eabi-gcc
checking for D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc ... ok
checking for flags (-O3) ... ok
> arm-none-eabi-gcc "-O3"
checking for flags (-std=gnu23) ... ok
> arm-none-eabi-gcc "-std=gnu23"
checking for flags (-DNDEBUG) ... ok
> arm-none-eabi-gcc "-DNDEBUG"
[ 19%]: compiling.release library\CMSIS\device\system_n32h47x_48x.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\CMSIS\device\system_n32h47x_48x.c.obj library\CMSIS\device\system_n32h47x_48x.c
checking for flags (-MMD -MF) ... ok
> arm-none-eabi-gcc "-MMD" "-MF" "R:\Temp\.xmake\250807\_DD73E8B92636450084FAC9D51FE61040"
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\misc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\misc.c.obj library\n32h47x_48x_std_periph_driver\src\misc.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_adc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_adc.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_adc.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_cordic.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_cordic.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_cordic.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dma.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dma.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dma.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dvp.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dvp.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dvp.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_crc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_crc.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_crc.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_comp.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_comp.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_comp.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dac.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dac.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dac.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dbg.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dbg.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_dbg.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_i2c.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_i2c.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_i2c.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_gpio.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_gpio.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_gpio.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_eth.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_eth.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_eth.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_exti.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_exti.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_exti.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fdcan.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fdcan.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fdcan.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_femc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_femc.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_femc.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_flash.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_flash.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_flash.c
checking for the c compiler (cc) ... arm-none-eabi-gcc
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fmac.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fmac.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_fmac.c
checking for flags (-fdiagnostics-color=always) ... ok
> arm-none-eabi-gcc "-fdiagnostics-color=always"
[ 19%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_iwdg.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_iwdg.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_iwdg.c
[ 20%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_lptim.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_lptim.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_lptim.c
[ 21%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pga.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pga.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pga.c
[ 22%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pwr.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pwr.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_pwr.c
[ 23%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rcc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rcc.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rcc.c
[ 24%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rtc.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rtc.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_rtc.c
[ 25%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_sdio.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_sdio.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_sdio.c
[ 25%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_shrtim.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_shrtim.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_shrtim.c
[ 26%]: compiling.release library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_spi.c
D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc -c -fvisibility=hidden -O3 -std=gnu23 -I. -Ilibrary\CMSIS\core -Ilibrary\CMSIS\device -Ilibrary\n32h47x_48x_std_periph_driver\inc -Ilibrary\CherryUSB\common -Ilibrary\CherryUSB\port\dwc2 -Ilibrary\logger -Idrivers\tmr -Idrivers\usb -Icomponents -Icomponents\boot -Icomponents\usb_api -Icomponents\xtea -Iproject -DCONFIG_USB_DBG_LEVEL=USB_DBG_ERROR -DLOG_LEVEL=LOG_LEVEL_WARNING -DN32H482 -DUSE_STDPERIPH_DRIVER -DSYSCLK_SRC=SYSCLK_USE_HSE_PLL -DUSBD_HID_VERSION_ID=0x007F -DUSBD_HID_VENDOR_ID=0xFFF0 -DUSBD_HID_PRODUCT_ID=0x0000 -DWEB_URL=\"https://antecer.com\" -DVENDOR_NAME=\"antecer\" -DDEVICE_NAME=\"Boot\" -isystem D:\Scoop\apps\gcc-arm-none-eabi\current\arm-none-eabi\include -Os -flto -Wno-unknown-attributes -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections -fno-common -Wall -DNDEBUG -o build\.objs\CoreBoot\windows\x64\release\library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_spi.c.obj library\n32h47x_48x_std_periph_driver\src\n32h47x_48x_spi.c
checking for arm-none-eabi-gcc ... D:\Scoop\apps\gcc-arm-none-eabi\current\bin\arm-none-eabi-gcc
checking for the assember (as) ... arm-none-eabi-gcc
checking for flags (-O3) ... ok
> arm-none-eabi-gcc "-O3"
checking for flags (-std=gnu23) ... ok
> arm-none-eabi-gcc "-std=gnu23"
create ok!
compile_commands.json updated!
error: @programdir\core\main.lua:329: @programdir\actions\build\main.lua:146: @programdir\modules\async\runjobs.lua:331: @programdir\modules\private\action\build\object.lua:100: @programdir\modules\core\tools\gcc.lua:1035:
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:1075]:
[@programdir\modules\core\tools\gcc.lua:1035]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[@programdir\modules\core\tools\gcc.lua:976]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:246]:
[@programdir\core\tool\compiler.lua:288]: in function 'compile'
[@programdir\modules\private\action\build\object.lua:100]: in function 'script'
[@programdir\modules\private\action\build\object.lua:131]: in function 'build_object'
[@programdir\modules\private\action\build\object.lua:171]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:247]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:246]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:230]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:1075: in function 'os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:329: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
* 终端进程“C:\Windows\system32\cmd.exe '/c', 'xmake config --mode=release && xmake build --all -vD'”已终止,退出代码: -1。
Bot detected the issue body's language is not English, translate it automatically.
Title: Random compilation failure occurred
给个最小可复现的完整例子,或者自己对比 -vD 的编译 Flags,用排除法,一点点删配置定位下。
Bot detected the issue body's language is not English, translate it automatically.
Give me a complete example of the smallest reproducible, or compare the compiled Flags of -vD by yourself, use the exclusion method, and delete the configuration bit by bit.
给个最小可复现的完整例子,或者自己对比 -vD 的编译 Flags,用排除法,一点点删配置定位下。
好的,我试试.
Bot detected the issue body's language is not English, translate it automatically.
Give a complete example of the smallest reproducible, or compare the compiled Flags of -vD by yourself, use the exclusion method, delete the configuration bit by bit.
OK, I'll give it a try.