|
From: | Kaan Akşit |
Subject: | Re: [avr-gcc-list] avr-libc |
Date: | Tue, 31 Jul 2012 15:46:29 +0300 |
Thank you Senthil, here is the result of the test.c
address@hidden ~ $ cat demo.cint main () { return 0; }address@hidden ~ $ avr-gcc -mmcu=atmega8 -v -c demo.c
Using built-in specs.
COLLECT_GCC=avr-gcc
Target: avr
Configured with: ../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.trCOLLECT_GCC_OPTIONS='-mmcu=atmega8' '-v' '-c'
Thread model: single
gcc version 4.7.1 (Pardus Linux)
/opt/toolchain/avr/libexec/gcc/avr/4.7.1/cc1 -quiet -v -imultilib avr4 demo.c -quiet -dumpbase demo.c -mmcu=atmega8 -auxbase demo -version -o /tmp/cc2pzgVI.s
GNU C (Pardus Linux) version 4.7.1 (avr)
compiled by GNU C version 4.5.3, GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/toolchain/avr/lib/gcc/avr/4.7.1/../../../../avr/sys-include"
ignoring nonexistent directory "/opt/toolchain/avr/lib/gcc/avr/4.7.1/../../../../avr/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/toolchain/avr/lib/gcc/avr/4.7.1/include
/opt/toolchain/avr/lib/gcc/avr/4.7.1/include-fixed
End of search list.
GNU C (Pardus Linux) version 4.7.1 (avr)
compiled by GNU C version 4.5.3, GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f2b81f82542e686b629ed0ebdfab0d77
COLLECT_GCC_OPTIONS='-mmcu=atmega8' '-v' '-c'
as -mmcu=atmega8 -mno-skip-bug -o demo.o /tmp/cc2pzgVI.s
as: tanınmayan seçenek: `-mmcu=atmega8'
Kaan2012/7/31 Senthil Kumar Selvaraj <address@hidden>
On Tue, Jul 31, 2012 at 02:55:39PM +0300, Kaan Akşit wrote:
> Dear all,
>
> I have tried the sample code under this link:That is not very useful - compilation failed, so binutils is not
> 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.
>
involved.
Can you try compiling the following program (say test.c)
with the following command line
int main () { return 0; }
avr-gcc -mmcu=atmega8 -v -c test.c
Regards
Senthil
[Prev in Thread] | Current Thread | [Next in Thread] |