[Top][All Lists]
[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: |
Omar Choudary |
Subject: |
Re: [avr-gcc-list] Error building gcc 4.5.2 for AVR |
Date: |
Wed, 26 Jan 2011 17:12:14 +0000 |
Hi Eric, thanks for the help.
Indeed, my make-all-gcc seemed to be the problem. Somehow I missed
that from Bingo's scripts while I was adapting the gnu-arm-cross build
scripts (which was the start point, together with Bingo's scripts).
However, using the exact commands, i.e. "make all install clean" gives
all sorts of errors.
I've noticed that I need to issue 2 commands separately to work:
make all
make install
The final script is available here and now works:
http://www.cl.cam.ac.uk/~osc22/files/avr_gcc/install_avr_tools.sh
Thanks.
Omar
On Wed, Jan 26, 2011 at 1:43 PM, Weddington, Eric
<address@hidden> wrote:
>
>
>> -----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.
>