Target: GCC Project based on MQX(4.0.1) on K60
IDE: KDS 1.1.0; CW for MCU 10.6
Since that there isn't MQX project wizard in KDS even all MQX plug-ins are installed in KDS, I created a MQX 4.0 project in CodeWarrior 10.6 with GCC selectd. Several MQX stack libs like mfs, rtcs, shell are used in this project. The project was built correctly in CodeWarrior. But afterI I imported(no matter copy the whole project or not) it into KDS and converted it to a KDS project, the new project can't pass the building with following errors.
'Finished building: ../Sources/common/myassert.c'
'Finished building: ../Sources/accelerometer/accel.c'
' '
'Finished building: ../Sources/main.c'
' '
' '
'Building target: UV4MCB.elf'
'Invoking: Cross ARM C Linker'
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g3 -gstrict-dwarf -T E:\UV4\fw\MQX_4_0_UV4K60N512\lib\uv4k60n512.cw10gcc\debug\bsp\intflash.ld -Xlinker --gc-sections -L"C:\Freescale\CW_MCU_v10.6\eclipse\../MCU/ARM_GCC_Support/ewl/lib/armv7e-m" -Wl,-Map,"UV4MCB.map" -n -z muldefs --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/mfs/mfs.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/mfs/mfs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/shell/shell.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/mfs/mfs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/shell/shell.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" -Xlinker --end-group --start-group "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/shell/shell.a" -Xlinker --end-group --start-group -lgcc -lstdc++ -lm -lrt -lc++ -lsupc++ -lc -Xlinker --end-group "C:\Freescale\CW_MCU_v10.6\eclipse\../MCU/../MCU/ARM_GCC_Support/ewl/lib/armv7e-m/__arm_start.o" "C:\Freescale\CW_MCU_v10.6\eclipse\../MCU/../MCU/ARM_GCC_Support/ewl/lib/armv7e-m/__arm_end.o" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/mfs/mfs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a" "E:\UV4\fw\MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/shell/shell.a" Sources/common/common.c Sources/common/circlebuf.c Sources/common/myassert.c Sources/global/global.c Sources/io/gpio.c Sources/rs485/rs485.c Sources/rs485/rs485_bb.c Sources/modbus/mbs.c Sources/modbus/mbs1.c Sources/modbus/mbs2.c Sources/modbus/mbs_bb.c Sources/accelerometer/accel.c Sources/web/tfs_data.c Sources/web/websvr.c Sources/main.c -o "UV4MCB.elf" ./Sources/web/tfs_data.o ./Sources/web/websvr.o ./Sources/rs485/rs485.o ./Sources/rs485/rs485_bb.o ./Sources/modbus/mbs.o ./Sources/modbus/mbs1.o ./Sources/modbus/mbs2.o ./Sources/modbus/mbs_bb.o ./Sources/io/gpio.o ./Sources/global/global.o ./Sources/common/circlebuf.o ./Sources/common/common.o ./Sources/common/myassert.o ./Sources/accelerometer/accel.o ./Sources/main.o C:/Freescale/CW_MCU_v10.6/eclipse/../MCU/../MCU/ARM_GCC_Support/ewl/lib/armv7e-m/__arm_start.o C:/Freescale/CW_MCU_v10.6/eclipse/../MCU/../MCU/ARM_GCC_Support/ewl/lib/armv7e-m/__arm_end.o E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/psp/psp.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/bsp/bsp.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/mfs/mfs.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/rtcs/rtcs.a E:/UV4/fw/MQX_4_0_UV4K60N512/lib/uv4k60n512.cw10gcc/debug/shell/shell.a -l"gcc" -l"stdc++" -l"m" -l"rt" -l"c++" -l"supc++" -l"c"
arm-none-eabi-gcc: error: Sources/common/common.c: No such file or directory
arm-none-eabi-gcc: error: Sources/common/circlebuf.c: No such file or directory
arm-none-eabi-gcc: error: Sources/common/myassert.c: No such file or directory
arm-none-eabi-gcc: error: Sources/global/global.c: No such file or directory
arm-none-eabi-gcc: error: Sources/io/gpio.c: No such file or directory
arm-none-eabi-gcc: error: Sources/rs485/rs485.c: No such file or directory
arm-none-eabi-gcc: error: Sources/rs485/rs485_bb.c: No such file or directory
arm-none-eabi-gcc: error: Sources/modbus/mbs.c: No such file or directory
arm-none-eabi-gcc: error: Sources/modbus/mbs1.c: No such file or directory
arm-none-eabi-gcc: error: Sources/modbus/mbs2.c: No such file or directory
arm-none-eabi-gcc: error: Sources/modbus/mbs_bb.c: No such file or directory
arm-none-eabi-gcc: error: Sources/accelerometer/accel.c: No such file or directory
arm-none-eabi-gcc: error: Sources/web/tfs_data.c: No such file or directory
arm-none-eabi-gcc: error: Sources/web/websvr.c: No such file or directory
arm-none-eabi-gcc: error: Sources/main.c: No such file or directory
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
arm-none-eabi-gcc: error: unrecognized command line option '--start-group'
make: *** [UV4MCB.elf] Error 1
The needed build variables are correcly added as below.


And all the source path are included as below. I confirmed the ProjDirPath is right.


I searched on line and noticed someone mentioned the "Linked Resources" option. But in my project, this option is empty and can't be edited. It's the same in CodeWarrior IDE. It seems this option doesn't make sense.


So, what's the wrong indeed?