makefile question / problem

From: Sagaert Johan (sagaert.j)
Date: 09/24/05


Date: Sat, 24 Sep 2005 02:31:26 +0200

Hi

I have a problem with a makefile
Why does the linker gets executed after the compiling finished ?

---------snip -------

$(DEMO0).o: Makefile $(DEMO0).c mcf_qspi.h
                $(CC) $(CFLAGSP) -c -o $(DEMO0).o $(DEMO0).c
                 $(STRIP) -g $(DEMO0).o
                 echo "done"

i would expect that building would end with the line 'echo done' but after
this the linker seems to be executed

console output after running make

[root@FedoraPC tftpboot]# make mcf_qspi
m68k-elf-gcc -D__KERNEL__ -DMODULE -D__linux__ -DMAGIC_ROM_PTR -DNO_MM -DNO_
FPU -m5307 -Wa,-S -Wa,-m5307 -O1 -g -Wall -Wstrict-prototypes -Wno-trigraphs
 -pipe -fno-builtin -fno-strict-aliasing -fno-common -nostdinc -I/usr/local/
lib/gcc-lib/m68k-elf/2.95.3/include -I/tftpboot/uClinux-dist-20030909-SSV200
40610/linux-2.4.x/include -DMCF5282 -c -o mcf_qspi.o mcf_qspi.c
m68k-elf-strip -g mcf_qspi.o
echo "done"
done
m68k-elf-gcc mcf_qspi.o -o mcf_qspi
/usr/local/m68k-elf/bin/ld.real: cannot open crt0.o: No such file or
directory
collect2: ld returned 1 exit status
make: *** [mcf_qspi] Error 1
[root@FedoraPC tftpboot]#

Any hint ?



Relevant Pages

  • arm-elf-gcc problem
    ... I'm a newbie regarding the GNU ARM stuff. ... linker script ... referenced in my linker script and defined in the startup code as ... Did I miss something in the makefile? ...
    (comp.arch.embedded)
  • Re: Sound/Music for Scheme
    ... think you need to add -lc to the LIBS list at the top of the makefile, but I'm just guessing -- I don't have any info about cygwin libraries. ... '__divdi3' is the reason for the linker to not link correctly. ...
    (comp.lang.scheme)
  • Re: Using Makefile rather than GreenHills (GHS) Multi .GPJ files
    ... are passed to the linker, ... I'm not talking about correctness, but about bit-for-bit equality of the generated file, which is still the fastest way on earth to guarantee that there has been no side effect by a supposedly benign modification. ... If your linker is not controlled by a linker file (or if you prefer to add a few command line parameters rather than write a separate file), then obviously this information will be in the makefile. ...
    (comp.arch.embedded)
  • Re: Questions (MPW migration)
    ... and am now facing a ... What do I need to do so that the linker makes qd, HiWord, LoWord, ... Should I be editing the Makefile? ...
    (comp.sys.mac.programmer.help)