On Tue, Jul 31, 2012 at 05:09:44PM +0300, Kaan Akşit wrote:
> I have exported the path, if I compile avr-gcc without export; it ends up
> compiling without the previous warning and this time the below error
> appears:
> 
> Configuring in avr/libgcc
> configure: creating cache ./config.cache
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... avr-unknown-none
> checking for --enable-version-specific-runtime-libs... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking for avr-ar... /opt/toolchain/avr/avr/bin/ar
> checking for avr-lipo... avr-lipo
> checking for avr-nm...
> /var/pisi/avr-gcc-4.7.1-5/work/gcc-4.7.1/build-avr/./gcc/nm
> checking for avr-ranlib... /opt/toolchain/avr/avr/bin/ranlib
> checking for avr-strip... /opt/toolchain/avr/avr/bin/strip
> checking whether ln -s works... yes
> checking for avr-gcc...
> /var/pisi/avr-gcc-4.7.1-5/work/gcc-4.7.1/build-avr/./gcc/xgcc
> -B/var/pisi/avr-gcc-4.7.1-5/work/gcc-4.7.1/build-avr/./gcc/
> -B/opt/toolchain/avr/avr/bin/ -B/opt/toolchain/avr/avr/lib/ -isystem
> /opt/toolchain/avr/avr/include -isystem
> /opt/toolchain/avr/avr/sys-include
> checking for suffix of object files... configure: error: in
> `/var/pisi/avr-gcc-4.7.1-5/work/gcc-4.7.1/build-avr/avr/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> 
> Kaan
Without avr-as in $PATH, compilation to object files will fail. libgcc
contains C code that is compiled for the target (AVR), so that's why
you're seeing failures here.

Regards
Senthil
> 2012/7/31 Kaan Akşit <kun...@gmail.com>
> 
> > I have also noticed during avr-gcc compile; there is this warning
> > appearing from time to time:
> >
> > limits.h: present but cannot be compiled
> >
> > Kaan
> >
> >
> > 2012/7/31 Kaan Akşit <kun...@gmail.com>
> >
> >> I have export a path before I install avr-gcc. I noticed that I have set
> >> PREFIX for avr-binutils as /usr but for avr-gcc it is /opt/toolchain/avr so
> >> I have recompiled everything from the scratch. Now it seems avr-libc is
> >> compiling! Thanks Senthil
> >>
> >> But now I receive this during the make process of avr-libc :(
> >>
> >> avr-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../common
> >> -I../../../include -I../../../include  -I../../../common -I../../../include
> >> -I../../../include -x assembler-with-cpp -Wa,-gstabs -mmcu=avr2
> >> -D__COMPILING_AVR_LIBC__   -MT acos.o -MD -MP -MF .deps/acos.Tpo -c -o
> >> acos.o ../../../libm/fplib/acos.S
> >> avr-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../common
> >> -I../../../include -I../../../include  -I../../../common -I../../../include
> >> -I../../../include -x assembler-with-cpp -Wa,-gstabs -mmcu=avr2
> >> -D__COMPILING_AVR_LIBC__   -MT addsf3.o -MD -MP -MF .deps/addsf3.Tpo -c -o
> >> addsf3.o ../../../libm/fplib/addsf3.S
> >> avr-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../common
> >> -I../../../include -I../../../include  -I../../../common -I../../../include
> >> -I../../../include -x assembler-with-cpp -Wa,-gstabs -mmcu=avr2
> >> -D__COMPILING_AVR_LIBC__   -MT addsf3x.o -MD -MP -MF .deps/addsf3x.Tpo -c
> >> -o addsf3x.o ../../../libm/fplib/addsf3x.S
> >> ../../../libm/fplib/acos.S: Assembler messages:
> >> ../../../libm/fplib/acos.S:62: Error: garbage at end of line
> >> make[5]: *** [acos.o] Error 1
> >> make[5]: *** Waiting for unfinished jobs....
> >> mv -f .deps/putc.Tpo .deps/putc.Po
> >> mv -f .deps/addsf3.Tpo .deps/addsf3.Po
> >> ../../../libc/stdio/ultoa_invert.S: Assembler messages:
> >> ../../../libc/stdio/ultoa_invert.S:97: Error: garbage at end of line
> >> ../../../libc/stdio/ultoa_invert.S:98: Error: garbage at end of line
> >> mv -f .deps/addsf3x.Tpo .deps/addsf3x.Po
> >> make[5]: *** [ultoa_invert.o] Error 1
> >> make[5]: Leaving directory
> >> `/var/pisi/avr-libc-1.8.0-5/work/avr-libc-1.8.0/avr/lib/avr2'
> >> make[4]: *** [all-recursive] Error 1
> >> make[4]: Leaving directory
> >> `/var/pisi/avr-libc-1.8.0-5/work/avr-libc-1.8.0/avr/lib/avr2'
> >> make[3]: *** [all-recursive] Error 1
> >> make[3]: Leaving directory
> >> `/var/pisi/avr-libc-1.8.0-5/work/avr-libc-1.8.0/avr/lib'
> >> make[2]: *** [all-recursive] Error 1
> >> make[2]: Leaving directory
> >> `/var/pisi/avr-libc-1.8.0-5/work/avr-libc-1.8.0/avr'
> >> make[1]: *** [all-recursive] Error 1
> >> make[1]: Leaving directory
> >> `/var/pisi/avr-libc-1.8.0-5/work/avr-libc-1.8.0'
> >> make: *** [all] Error 2
> >> DEBUG: "make -j5" dönüş değeri 2
> >>
> >>
> >> Kaan
> >>
> >> 2012/7/31 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com>
> >>
> >>> On Tue, Jul 31, 2012 at 03:45:33PM +0300, Kaan Akşit wrote:
> >>> > Thank you Senthil, here is the result of the test.c
> >>> >
> >>> > kaan@SAHILEVLERI ~ $ cat demo.c
> >>> > int main () { return 0; }
> >>> > kaan@SAHILEVLERI ~ $ avr-gcc -mmcu=atmega8 -v -c demo.c
> >>> >  as -mmcu=atmega8 -mno-skip-bug -o demo.o /tmp/cc2pzgVI.s
> >>> > as: tanınmayan seçenek: `-mmcu=atmega8'
> >>>
> >>> Clearly, it's not the AVR assembler that's running.
> >>>
> >>> Did you build avr binutils and avr gcc as per the procedure outlined in
> >>> http://www.nongnu.org/avr-libc/user-manual/install_tools.html? In
> >>> particular, did you add the installed binutils directory to the PATH
> >>> environment variable before building avr-gcc?
> >>>
> >>> Regards
> >>> Senthil
> >>>
> >>>
> >>> >
> >>> > Kaan
> >>> >
> >>> > 2012/7/31 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com>
> >>> >
> >>> > > 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:
> >>> > > >
> >>> > >
> >>> http://www.nongnu.org/avr-libc/user-manual/group__demo__project.html#demo_project_src
> >>> > > >
> >>> > > > and here is the output:
> >>> > > >
> >>> > > > kaan@SAHILEVLERI ~ $ avr-gcc -g -Os -mmcu=atmega8 -c demo.c
> >>> > > > demo.c:17:22: fatal error: inttypes.h: No such file or directory
> >>> > > > compilation terminated.
> >>> > > >
> >>> > >
> >>> > > That is not very useful - compilation failed, so binutils is not
> >>> > > involved.
> >>> > >
> >>> > > Can you try compiling the following program (say test.c)
> >>> > >
> >>> > > int main () { return 0; }
> >>> > >
> >>> > > with the following command line
> >>> > > avr-gcc -mmcu=atmega8 -v -c test.c
> >>> > >
> >>> > > Regards
> >>> > > Senthil
> >>> > >
> >>>
> >>
> >>
> >

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to