avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Error building gcc 4.5.2 for AVR


From: Weddington, Eric
Subject: RE: [avr-gcc-list] Error building gcc 4.5.2 for AVR
Date: Wed, 26 Jan 2011 06:43:04 -0700


> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Omar Choudary
> Sent: Tuesday, January 25, 2011 10:27 AM
> To: address@hidden
> Subject: [avr-gcc-list] Error building gcc 4.5.2 for AVR
> 
> Hello,

Hi,

Please subscribe to this mailing list so your posts do not have to be approved.

 
> I am trying to build GCC 4.5.2 for the AVR target. See my script:
> http://www.cl.cam.ac.uk/~osc22/files/install_avr_tools.sh

Have you compared your script to existing build scripts that are known to work? 
If you go to the AVR Freaks website (www.avrfreaks.net), in the AVR GCC Forum, 
there is a sticky post regarding a build script for linux. There are also 
instructions in the avr-libc user manual for how to build the tools.

This section stands out to me in your build script:

  make ${MAKEFLAGS} all-gcc >> ${BUILDDIR}/make.log 2>&1
  make install >> ${BUILDDIR}/make.log 2>&1

  #Now try to install libgcc
  make ${MAKEFLAGS} all-target-libgcc >> ${BUILDDIR}/make.log 2>&1
  make install-target-libgcc >> ${BUILDDIR}/make.log 2>&1

All of these build targets should not be necessary. All you should need is 
'make all install'. I don't understand why you are trying to build and install 
libgcc separately.

Also you said this:

> When running, the libgcc error above kicks in:
> avr-gcc  -mmcu=at90usb1287 -Wl,-Map=SCD.map SCD.o EMV.o halSCD.o
> scdIO.o utils.o terminal.o  halSCD.S SCD.S    -o SCD.elf
> /local/scratch/osc22/tools/avr/lib/gcc/avr/4.5.2/../../../../avr/bin/ld:
> cannot find crtusb1286.o: No such file or directory

This is the startup code for a particular device. My guess is that it probably 
cannot find it because avr-libc did not build correctly, because avr-gcc did 
not build correctly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]