This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AS is configured as armasm, but armclang is being used to compile the .S file.

Hello,

I am using ARM Compiler 6.16 and scons to make my project in linux. 

In my project, I have configured AS=armasm, CC=armclang and the related flags in building script file. But armlang is being used to compile .S file.
The following is the snippet of the configuration code:
def SifliLinuxArmclangEnv(cpu):
    import rtconfig
    # toolchains
    rtconfig.PLATFORM= 'armcc'
    rtconfig.CROSS_TOOL= 'armclang'
    rtconfig.CC = 'armclang'
    rtconfig.CXX = 'armclang'
    rtconfig.AS = 'armasm'
    rtconfig.AR = 'armar'
    rtconfig.LINK = 'armlink'
    rtconfig.TARGET_EXT = 'axf'
    DEVICE=''
    rtconfig.AFLAGS=''
    rtconfig.CFLAGS=''
    if cpu=='Cortex-M33':
        rtconfig.AFLAGS+= '  --fpu=FPv5-SP --cpreproc_opts=-mfpu=fpv5-sp-d16 --cpreproc_opts=-mfloat-abi=hard --cpreproc_opts=-DARMCM33_DSP_FP --cpreproc --cpreproc_opts=--target=arm-arm-none-eabi --cpreproc_opts=-mfloat-abi=hard '
        rtconfig.CFLAGS+= ' -DARMCM33_DSP_FP '
        DEVICE += ' -mfpu=fpv5-sp-d16 -mfloat-abi=hard '
    rtconfig.CFLAGS +=' -mcpu=' + cpu +  DEVICE + ' -c -ffunction-sections --target=arm-arm-none-eabi'
    rtconfig.CFLAGS += ' -fno-rtti -funsigned-char -fshort-enums -fshort-wchar'
# -Werror
    rtconfig.CFLAGS += ' -mlittle-endian -gdwarf-3 -Wno-builtin-macro-redefined'
    #  print("DEBUG_LOG rtconfig EXEC_PATH is%s" %(rtconfig.EXEC_PATH))
    rtconfig.CFLAGS += ' -I' + rtconfig.EXEC_PATH + '/include'
    rtconfig.AFLAGS += ' --cpu='+ cpu + ' --cpreproc_opts=-mcpu=' + cpu +' --li -g '
    rtconfig.AFLAGS += ' --cpreproc_opts=-D__UVISION_VERSION="532" '
    rtconfig.AFLAGS += ' --diag_suppress=A1609 '
    rtconfig.CXXFLAGS = rtconfig.CFLAGS + ' -xc++ -std=c++14 -fno-exceptions '
    rtconfig.CCFLAGS =  rtconfig.CFLAGS
    rtconfig.CFLAGS = rtconfig.CFLAGS + ' -xc -std=c99 '
    rtconfig.LFLAGS = ' --cpu=' + cpu + ' --strict --scatter '+ rtconfig.LINK_SCRIPT+ '.sct --summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers --any_contingency '
    rtconfig.LFLAGS += ' --list ' + rtconfig.OUTPUT_DIR + rtconfig.TARGET_NAME + '.map '
    rtconfig.LFLAGS += ' --symdefs=' + rtconfig.OUTPUT_DIR + rtconfig.TARGET_NAME + '.symdefs '
    rtconfig.LFLAGS += ' --libpath=' + rtconfig.EXEC_PATH + '/lib'
    if not GetDepend('BSP_USING_RTTHREAD'):
        rtconfig.CFLAGS += ' -D__MICROLIB '
        rtconfig.LFLAGS += ' --library_type=microlib '
    if hasattr(rtconfig, 'USE_MICROLIB') and rtconfig.USE_MICROLIB:
        rtconfig.LFLAGS += ' --library_type=microlib '
        rtconfig.CFLAGS += ' -D__MICROLIB '
    if hasattr(rtconfig, 'CUSTOM_LFLAGS') and rtconfig.CUSTOM_LFLAGS:
        rtconfig.CUSTOM_LFLAGS = rtconfig.CUSTOM_LFLAGS.replace('rom.sym', '')
        rtconfig.LFLAGS += ' ' + rtconfig.CUSTOM_LFLAGS
    rtconfig.EXEC_PATH += '/bin/'
    #if BUILD == 'debug':
    #    CFLAGS += ' -g -Oz'
    #    AFLAGS += ' -g'
    #else:
    #   CFLAGS += ' -O2'
    if hasattr(rtconfig, 'OPT_LEVEL'):
        rtconfig.CFLAGS += ' ' + rtconfig.OPT_LEVEL
    else:
        rtconfig.CFLAGS += ' -Oz'
the following is the detailed log:

armclang --fpu=FPv5-SP --cpreproc_opts=-mfpu=fpv5-sp-d16 --cpreproc_opts=-mfloat-abi=hard --cpreproc_opts=-DARMCM33_DSP_FP --cpreproc --cpreproc_opts=--target=arm-arm-none-eabi --cpreproc_opts=-mfloat-abi=hard --cpu=Cortex-M33 --cpreproc_opts=-mcpu=Cortex-M33 --li -g --cpreproc_opts=-D__UVISION_VERSION="532" --diag_suppress=A1609 --cpreproc -DEPIC_DEBUG -DEZIP_DEBUG -DUSE_HAL_DRIVER -DSIFLI_BUILD="000000" -DSIFLI_VERSION=16842755 -DUSE_FULL_ASSERT -DLB55X_CHIP_ID=2 -DSOC_BF0_HCPU -DARM_MATH_LOOPUNROLL -DSF32LB55X -DLV_CONF_INCLUDE_SIMPLE -D__AOS_AMP__ -DAMP_SICHE551 -DFT2_BUILD_LIBRARY -DRT_USING_ARM_LIBC -I. -Iboard -Ilinker_scripts -Ibuild/resource/strings -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/resource/strings -Iresource/strings -Ibuild/gui_apps -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/gui_apps -Igui_apps -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/gui_apps/message -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/gui_apps/clock -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/gui_apps/weather -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/gui_apps/mem -I/workspace/profile/adultwatch/sw_xthings/release/example/watch_demo/app_utils -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/drivers -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/drivers/config -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/drivers/config/bf0_mcpu -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/peripherals/common -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/peripherals/hrs3300 -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/peripherals/ft3168 -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/bsp/sifli/peripherals/rm69090 -I/workspace/profile/adultwatch/sw_xthings/release/rtos/os_adaptor/src -I/workspace/profile/adultwatch/sw_xthings/release/rtos/os_adaptor/inc -I/workspace/profile/adultwatch/sw_xthings/release/drivers/boards/ec-lb551xxx -I/workspace/profile/adultwatch/sw_xthings/release/drivers/boards/include -I/workspace/profile/adultwatch/sw_xthings/release/drivers/cmsis/sf32lb55x -I/workspace/profile/adultwatch/sw_xthings/release/drivers/cmsis/Include -I/workspace/profile/adultwatch/sw_xthings/release/external/CMSIS/Include -I/workspace/profile/adultwatch/sw_xthings/release/drivers/Include -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_core -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_draw -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_hal -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_misc -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_font -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_widgets -I/workspace/profile/adultwatch/sw_xthings/release/external/LittlevGL2RTT-latest/lvgl/src/lv_themes -I/workspace/profile/adultwatch/sw_xthings/release/external/cjson/include -I/workspace/profile/adultwatch/sw_xthings/release/external/FlashDB/inc -I/workspace/profile/adultwatch/sw_xthings/release/external/FlashDB/port/fal/inc -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/addons/advanced/aiot -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/quickjs -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/addons/common -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/aos_port -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/addons -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine/addons/utils/crypto -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/engine/quickjs_engine -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/main -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/amp_utils -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/utils/list -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/app_mgr -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/board_mgr -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/recovery -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/amp_boot -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/services/amp_memmgt -I/workspace/profile/adultwatch/sw_xthings/release/external/amp/aos_config -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/platform/rt-thread/siche551 -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/rt-thread -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/include -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/portfiles -I/workspace/profile/adultwatch/sw_xthings/release/external/CMSIS/CMSIS/Include -I/workspace/profile/adultwatch/sw_xthings/release/external/CMSIS/RTOS2/Include -I/workspace/profile/adultwatch/sw_xthings/release/external/freetype/include -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/platform/rt-thread -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/platform -I/workspace/profile/adultwatch/sw_xthings/release/external/amp_adapter/include/peripheral -I/workspace/profile/adultwatch/sw_xthings/release/middleware/sifli_lib/lib -I/workspace/profile/adultwatch/sw_xthings/release/middleware/data_bus/public -I/workspace/profile/adultwatch/sw_xthings/release/middleware/data_bus/include -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/drivers/sensors -I/workspace/profile/adultwatch/sw_xthings/release/middleware/gap -I/workspace/profile/adultwatch/sw_xthings/release/middleware/include -I/workspace/profile/adultwatch/sw_xthings/release/middleware/ipc_queue/porting/os -I/workspace/profile/adultwatch/sw_xthings/release/middleware/ipc_queue/porting/os/rtthread -I/workspace/profile/adultwatch/sw_xthings/release/middleware/ipc_queue/porting/sf32lb55x -I/workspace/profile/adultwatch/sw_xthings/release/middleware/ipc_queue/porting/sf32lb55x/hcpu -I/workspace/profile/adultwatch/sw_xthings/release/middleware/ipc_queue/common -I/workspace/profile/adultwatch/sw_xthings/release/middleware/lvgl -I/workspace/profile/adultwatch/sw_xthings/release/middleware/lvgl/lvsf -I/workspace/profile/adultwatch/sw_xthings/release/middleware/lvgl/lv_drivers -I/workspace/profile/adultwatch/sw_xthings/release/middleware/app_fwk -I/workspace/profile/adultwatch/sw_xthings/release/middleware/cpu_usage_profiler -I/workspace/profile/adultwatch/sw_xthings/release/middleware/share_prefs -I/workspace/profile/adultwatch/sw_xthings/release/middleware/button -I/workspace/profile/adultwatch/sw_xthings/release/middleware/sibles -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/include -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/libcpu/arm/Cortex-M33 -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/libcpu/arm/common -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/libc/compilers/common -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/libc/compilers/armlibc -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/utilities/ulog -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/utilities/ulog/backend -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/utilities/llt_mem -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/utilities/ymodem -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/drivers/include -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/drivers/spi -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/drivers/motor -I/workspace/profile/adultwatch/sw_xthings/release/rtos/rtthread/components/finsh -c -o build/sifli_sdk/drivers/cmsis/sf32lb55x/Templates/arm/startup_bf0_hcpu.o /workspace/profile/adultwatch/sw_xthings/release/drivers/cmsis/sf32lb55x/Templates/arm/startup_bf0_hcpu.S

BR,

Shengping