Avr-gcc Linker Input File Unused Because Linking Not Done
Hi,
I am cross-compiling a project for arm board. I am compiling some C source files + some libraries(c, C++). All objects files are getting created successfully but while linking for each object file i am getting error as below.
arm-unknown-linux-gnueabi-gcc: ./obj/dua.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/duauser.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/lldpcb.o: linker input file unused because linking not done
I am using following command in my makefile,
$(TARGET): $(LOCAL_LIBS) $(OBJS) GNUmakefile
@echo Making $@ ;
$(WHY)
if [ -f $@ ] ; then rm -f $@ ; fi
$(MAKEREVISION) $(REVISION_FILE) $(TARGET) $(REVISION) '$(DATE)'
$(CC) $(CPPFLAGS) -DOS_LINUX -DOS_DEBUG -O0 -g3 -Wall -fmessage-length=0 -MM -MP $(CGOPTS) $(CLOPTS) $(INC) -c $(REVISION_FILE) -o $(REVISION_OBJ)
$(CC) $(CFLAGS) $(CGOPTS) $(INC)
$(OBJS) $(REVISION_OBJ) $(LOCAL_LIBS) $(LIBS) -o $@
rm -f $(REVISION_FILE) $(REVISION_OBJ)
cp $(TARGET) ./bin/.
$(STRIP) ./bin/$(TARGET)
where,
CC = /usr/bin/gcc
CXX = /usr/bin/g++
STRIP = /usr/bin/strip
CFLAGS = -DOS_LINUX -DOS_DEBUG -Os -g -Wall -c -fmessage-length=0 -MM -MP -o
CXXFLAGS = -DACE_NLOGGING -DACE_NTRACE -O0 -g -fno-omit-frame-pointer
Can anyone guide me ???
Thanks in advance!
I am cross-compiling a project for arm board. I am compiling some C source files + some libraries(c, C++). All objects files are getting created successfully but while linking for each object file i am getting error as below.
arm-unknown-linux-gnueabi-gcc: ./obj/dua.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/duauser.o: linker input file unused because linking not done
arm-unknown-linux-gnueabi-gcc: ./obj/lldpcb.o: linker input file unused because linking not done
I am using following command in my makefile,
$(TARGET): $(LOCAL_LIBS) $(OBJS) GNUmakefile
@echo Making $@ ;
$(WHY)
if [ -f $@ ] ; then rm -f $@ ; fi
$(MAKEREVISION) $(REVISION_FILE) $(TARGET) $(REVISION) '$(DATE)'
$(CC) $(CPPFLAGS) -DOS_LINUX -DOS_DEBUG -O0 -g3 -Wall -fmessage-length=0 -MM -MP $(CGOPTS) $(CLOPTS) $(INC) -c $(REVISION_FILE) -o $(REVISION_OBJ)
$(CC) $(CFLAGS) $(CGOPTS) $(INC)
$(OBJS) $(REVISION_OBJ) $(LOCAL_LIBS) $(LIBS) -o $@
rm -f $(REVISION_FILE) $(REVISION_OBJ)
cp $(TARGET) ./bin/.
$(STRIP) ./bin/$(TARGET)
where,
CC = /usr/bin/gcc
CXX = /usr/bin/g++
STRIP = /usr/bin/strip
CFLAGS = -DOS_LINUX -DOS_DEBUG -Os -g -Wall -c -fmessage-length=0 -MM -MP -o
CXXFLAGS = -DACE_NLOGGING -DACE_NTRACE -O0 -g -fno-omit-frame-pointer
Can anyone guide me ???
Thanks in advance!
|
Linker input file unused because linking not done. Linker input file unused because linking not done input file input-file this linker was not linking could not be redeployed because UNUSED file-not done because input file Done Done linking File not found Linker linker linker Linker input C&C Ignored because not matching any filter. Championship manager 01 02 patch v3.9.68. A small word of caution: It is up to the target back-end, whether or not garbage collection on unused sections is done. So it happens to work on ARM and AVR, but I cannot guarantee that it work on other GCC targets. However, it should work on targets that are well supported, I think.