avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] avr-libc installation error


From: Blake Leverett
Subject: Re: [avr-libc-dev] avr-libc installation error
Date: Mon, 7 Apr 2008 07:08:48 -0600
User-agent: KMail/1.9.7

On Thursday 03 April 2008, ericwade wrote:
> Hello all;
>
> I have already successfully installed the AVR toolchain on one desktop. I
> was installing in Gentoo on second desktop, following the steps posted at;
> http://www.nongnu.org/avr-libc/user-man ... tools.html
>
> I successfully installed Binutils-2.18 and gcc-4.2.1, but upon trying to
> configure AVR-libc, I get;
>
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... avr-unknown-none
> checking if configuring for cross compile... yes
> checking if target host is avr... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for avr-strip... avr-strip
> checking for avr-gcc... avr-gcc
> checking whether we are cross compiling... yes
> checking for suffix of object files... configure: error: cannot compute
> suffix of object files: cannot compile
> See `config.log' for more details.
>
> After looking at config.log, it seems the error occurs at;
> /tmp/cccovPsE.s: Assembler messages:
> /tmp/cccovPsE.s:14: Error: no such instruction: `ldi r28,lo8(__stack - 0)'
> /tmp/cccovPsE.s:15: Error: no such instruction: `ldi r29,hi8(__stack - 0)'
> /tmp/cccovPsE.s:16: Error: too many memory references for `out'
> /tmp/cccovPsE.s:17: Error: too many memory references for `out'
> /tmp/cccovPsE.s:19: Error: no such instruction: `ldi r24,lo8(0)'
> /tmp/cccovPsE.s:20: Error: no such instruction: `ldi r25,hi8(0)'
> /tmp/cccovPsE.s:22: Error: no such instruction: `rjmp exit'
> configure:2221: $? = 1
> configure:2385: checking whether we are cross compiling
> configure:2387: result: yes
> configure:2391: checking for suffix of object files
> configure:2412: avr-gcc -c conftest.c >&5
> /tmp/cc4SxeFI.s: Assembler messages:
> /tmp/cc4SxeFI.s:14: Error: no such instruction: `ldi r28,lo8(__stack - 0)'
> /tmp/cc4SxeFI.s:15: Error: no such instruction: `ldi r29,hi8(__stack - 0)'
> /tmp/cc4SxeFI.s:16: Error: too many memory references for `out'
> /tmp/cc4SxeFI.s:17: Error: too many memory references for `out'
> /tmp/cc4SxeFI.s:19: Error: no such instruction: `ldi r24,lo8(0)'
> /tmp/cc4SxeFI.s:20: Error: no such instruction: `ldi r25,hi8(0)'
> /tmp/cc4SxeFI.s:22: Error: no such instruction: `rjmp exit'
> configure:2415: $? = 1
>
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "avr-libc"
> | #define PACKAGE_TARNAME "avr-libc"
> | #define PACKAGE_VERSION "1.6.2"
> | #define PACKAGE_STRING "avr-libc 1.6.2"
> | #define PACKAGE_BUGREPORT "address@hidden"
> | #define PACKAGE "avr-libc"
> | #define VERSION "1.6.2"
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> |
> | ;
> | return 0;
> | }
>
> configure:2429: error: cannot compute suffix of object files: cannot
> compile See `config.log' for more details.
>
> I have searched the forums, but the suggested fixes I have found have not
> worked for me. Any advice? Thanks...

Did you patch the sources?  The way I've done it is to copy the WinAVR patches 
from the SourceForge site, and throw away any starting with 00- and 10-.  It 
appears from your output that you may have a filename problem, which suggests 
that you compiled gcc with all the patches, including the Win32-specific ones 
that change '/' into '\'.

I use gentoo, and here are my personal instructions for building the AVR 
toolchain:

export PREFIX=/usr/local/avr

binutils

download winavr patches to patches subdir, then
go to binutils root dir (where configure script is)
for i in ../patches/*; do patch -p0 < "$i"; done
(don't use windows patches, which are [01]*)

mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX --target=avr --disable-nls
make
make install

gcc
same patch procedure
mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX --target=avr --enable-languages=c,c++ \
    --disable-nls --disable-libssp --with-dwarf2
make
make install

avr-libc
no obj-avr, just make in root directory
./configure --prefix=$PREFIX --build=`./config.guess` --host=avr
make
make install (make sure PATH includes avr/bin)

GDB
mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX --target=avr
make && make install

avrdude
../configure --prefix=$PREFIX
usual make/install

avarice
mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX
make
make install


Blake




reply via email to

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