1 year ago

#341497

test-img

Yonatan Elizarov

unable to compile application project on sdk 2019.1

I made hw design on vivado 2019.1 and i build application project on sdk 2019.1 based on .hdf file. (My design consists of microblaze mcs) i have 2 static libraries too .

When i try to compile main() it gives me an error: c:/tmp/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: c:/tmp/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/lib/le/crtinit.o: in function _crtinit': (.text+0x78): undefined reference to main'

Would be happy for some help in that direction

i tried read similar questions and i expect to understand the concept of linker, compiling etc.

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 src/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(S_UPPER_DEPS)),)
-include $(S_UPPER_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
ELFSIZE += \
CodeSample_1.elf.size \
CodeSample_1.elf.size \


# All Target
all: CodeSample_1.elf secondary-outputs

dependents:
    -cd C:/SitalProjects/Refael/Rafael_MicroBlaze_Freertos/prj_Arty22_20191/test_250322/CodeSample_1/Release && $(MAKE) all

# Tool invocations
CodeSample_1.elf: $(OBJS) ../src/lscript.ld $(USER_OBJS) C:/SitalProjects/Refael/Rafael_MicroBlaze_Freertos/prj_Arty22_20191/test_250322/CodeSample_1/Release/CodeSample_1.elf
    @echo 'Building target: $@'
    @echo 'Invoking: MicroBlaze gcc linker'
    mb-gcc -L../../CodeSample_bsp/microblaze_mcs_0_microblaze_I/lib -Wl,-Map=file_map.map -Wl,-T -Wl,../src/lscript.ld -mlittle-endian -mcpu=v11.0 -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "CodeSample_1.elf" $(OBJS) $(USER_OBJS) $(LIBS)
    @echo 'Finished building target: $@'
    @echo ' '

CodeSample_1.elf.size: CodeSample_1.elf
    @echo 'Invoking: MicroBlaze Print Size'
    mb-size CodeSample_1.elf  |tee "CodeSample_1.elf.size"
    @echo 'Finished building: $@'
    @echo ' '

# Other Targets
clean:
    -$(RM) $(EXECUTABLES)$(OBJS)$(S_UPPER_DEPS)$(C_DEPS)$(ELFSIZE) CodeSample_1.elf
    -@echo ' '

secondary-outputs: $(ELFSIZE)

.PHONY: all clean dependents
.SECONDARY:
C:/SitalProjects/Refael/Rafael_MicroBlaze_Freertos/prj_Arty22_20191/test_250322/CodeSample_1/Release/CodeSample_1.elf:

-include ../makefile.targets

c

sdk

program-entry-point

xilinx

0 Answers

Your Answer

Accepted video resources