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

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

Re: [avr-gcc-list] avr-libc


From: Kaan Akşit
Subject: Re: [avr-gcc-list] avr-libc
Date: Tue, 31 Jul 2012 14:55:39 +0300

Dear all,

I have tried the sample code under this link: http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html#demo_project_src

and here is the output:

address@hidden ~ $ avr-gcc -g -Os -mmcu=atmega8 -c demo.c
demo.c:17:22: fatal error: inttypes.h: No such file or directory
compilation terminated.

Here is my configure for binutils 2.22.52.0.4:

./configure --mandir=/usr/share/man --datadir=/usr/share --prefix=/usr --target=avr --disable-werror --disable-nls

Here is my configure for avr-gcc 4.7.1:

./configure --target=avr --mandir=/usr/share/man --datadir=/usr/share --prefix=/opt/toolchain/avr --enable-languages="c,c++" --disable-nls --disable-libssp --with-dwarf2 --with-system-zlib --enable-version-specific-runtime-libs --with-pkgversion="Pardus Linux" --with-bugurl=http://bugs.pardus.org.tr

Best regards,
Kaan

2012/7/31 Georg-Johann Lay <address@hidden>
Kaan Aks,it wrote:
> Dear all,
>
> I have successfully installed avr-binutils, avr-gcc by compiling from the
> source. Now it is time for me to compile avr-libc so that I can use the
> complete AVR toolchain. But I have encountered an error during
> configuration phase of avr-libc. Here is the config.log of the avr-libc. I
> couldn't understand where the problem is, I kindly ask for your
> suggestions/directions/comments/advices?
>
> Best regards,
> Kaan
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by avr-libc configure 1.8.0, which was
> generated by GNU Autoconf 2.68.  Invocation command line was
>
>   $ ./configure --build=x86_64-pc-linux-gnu --prefix=/usr/share/avr
> --host=avr
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = SAHILEVLERI
> uname -m = x86_64
> uname -r = 3.2.5
> uname -s = Linux
> uname -v = #1 SMP Fri Feb 10 13:22:45 EET 2012
>
> [...]
>
> /tmp/ccbUBR6G.s:19: Error: no such instruction: `ldi r24,0'
> /tmp/ccbUBR6G.s:20: Error: no such instruction: `ldi r25,0'

Appears you misconfigured GCC and/or binutils.

Can you compile a sample program with that avr-gcc?

Please read the configure documentation again.

In particular, don't configure GCC in a subdirectory of
its source three which is not supported.

Johann



reply via email to

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