Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Recipe for target error when printf added in Mars
icon5.gif  Recipe for target error when printf added in Mars [message #1753520] Tue, 07 February 2017 12:03 Go to next message
Clive Palmer is currently offline Clive PalmerFriend
Messages: 4
Registered: February 2017
Junior Member
Hopefully someone can help me!
I was trying to get a UART running on my STM eval PCB. My code compiles fine until I add a printf to the code. As soon as I add this, I get a Debug error in the makefile with a 'recipe for target' error. The makefile is generated by Eclipse Mars. I assume there is some setting in Eclipse that Im not aware of.
IS there any out there who can help?

I have attached my makefile:-

################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include system/src/stm32f1-stdperiph/subdir.mk
-include system/src/newlib/subdir.mk
-include system/src/diag/subdir.mk
-include system/src/cortexm/subdir.mk
-include system/src/cmsis/subdir.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(ASM_DEPS)),)
-include $(ASM_DEPS)
endif
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables
SECONDARY_FLASH += \
UART1.hex \

SECONDARY_SIZE += \
UART1.siz \


# All Target
all: UART1.elf secondary-outputs

# Tool invocations
UART1.elf: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross ARM GNU C++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"UART1.map" --specs=nano.specs -o "UART1.elf" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

UART1.hex: UART1.elf
@echo 'Invoking: Cross ARM GNU Create Flash Image'
arm-none-eabi-objcopy -O ihex "UART1.elf" "UART1.hex"
@echo 'Finished building: $@'
@echo ' '

UART1.siz: UART1.elf
@echo 'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=berkeley "UART1.elf"
@echo 'Finished building: $@'
@echo ' '

# Other Targets
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) UART1.elf
-@echo ' '

secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
Re: Recipe for target error when printf added in Mars [message #1753583 is a reply to message #1753520] Tue, 07 February 2017 21:26 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
This appears to be a duplicate of https://www.eclipse.org/forums/index.php?t=msg&th=1084232&goto=1753532&#msg_1753532
Please don't do this. Use the edit button to update messages with additional info.
Previous Topic:Code index doesn't work
Next Topic:Indexer problem with include within include files
Goto Forum:
  


Current Time: Thu Apr 25 11:47:15 GMT 2024

Powered by FUDForum. Page generated in 0.02701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top