I'm creating dependency files (*.d with -MMD flag) during compilation time.
Till version 4.8 2014q1 it was ok and there were no problems. Here is a small example:
"D:/devtools/GNU_ARM/4.8 2014q1/"bin/arm-none-eabi-gcc -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -DMC_TARGET=MC_MCU_NUC140VE3CN -D__CM3_REV=0x0301 -Os -ffunction-sections -Wall -Wextra -Wmissing-include-dirs -Winit-self -Wswitch-enum -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wcast-qual -Wpacked -Wcast-align -Wswitch-default -Wlogical-op -std=c99 -I ../../../../source/examples/boards/NuTiny-SDK-NUC140 -I ../../../../../Libraries/CMSIS/CMSIS/Include -I ../../../../source/device/nuvoton/nuc140 -c main.c -o ../../../../objs/GCC-ARM/main.o -MMD
The content of the main.d file is:
../../../../objs/GCC-ARM/main.o: main.c \
../../../../source/device/nuvoton/nuc140/NUC1xx.h \
../../../../../Libraries/CMSIS/CMSIS/Include/core_cm0.h \
../../../../../Libraries/CMSIS/CMSIS/Include/core_cmInstr.h \
../../../../../Libraries/CMSIS/CMSIS/Include/core_cmFunc.h \
../../../../source/device/nuvoton/nuc140/system_NUC1xx.h
Using versions 4.8 2014q2 and 4.8 2014q3 the content of main.d is different. Here is an example:
"D:/devtools/GNU_ARM/4.8 2014q3/"bin/arm-none-eabi-gcc -mcpu=cortex-m0 -mfloat-abi=soft -mthumb -DMC_TARGET=MC_MCU_NUC140VE3CN -D__CM3_REV=0x0301 -Os -ffunction-sections -Wall -Wextra -Wmissing-include-dirs -Winit-self -Wswitch-enum -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wcast-qual -Wpacked -Wcast-align -Wswitch-default -Wlogical-op -std=c99 -I ../../../../source/examples/boards/NuTiny-SDK-NUC140 -I ../../../../../Libraries/CMSIS/CMSIS/Include -I ../../../../source/device/nuvoton/nuc140 -c main.c -o ../../../../objs/GCC-ARM/main.o -MMD
The content of the main.d file is:
../../../../objs/GCC-ARM/main.o: main.c \
../../../../source/device/nuvoton/nuc140/NUC1xx.h \
l:\projekte\libraries\cmsis\cmsis\include\core_cm0.h \
l:\projekte\libraries\cmsis\cmsis\include\core_cminstr.h \
l:\projekte\libraries\cmsis\cmsis\include\core_cmfunc.h \
../../../../source/device/nuvoton/nuc140/system_NUC1xx.h
This absolute paths cause following error at next call of Makefile:
../../../../objs/GCC-ARM/main.d:1: *** multiple target patterns. Stop.
Is it a bub? If yes where should it be posted?
If it's not a bug, what could be the solution?
Thanks!