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

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

[avr-libc-dev] avr-libc and atmega324


From: Alexei Chetroi
Subject: [avr-libc-dev] avr-libc and atmega324
Date: Tue, 15 Nov 2005 18:05:02 +0200
User-agent: Mutt/1.5.9i

  Hi,

  I'm trying to compile avr-libc for the devices like
atmega-164-324-644, using patches from
http://savannah.nongnu.org/patch/?func=detailitem&item_id=4124

  I've already built binutils-avr and gcc-avr, but have problems with
avr-libc. After applying patches, I need to rerun aclocal && automake &&
autoconf (sincerely, I don't quite understand all the magic done by
autotools), since configure.in was patched. But, now, configure
complains that libc is for the avr target only (original configure
script doesn't complain), so I run "./doconf --target avr --host avr".
The problem is, that configure script consider that avr-gcc doesn't work
for mcu atmega48/88 nor for atmega324/644 etc. But, if I try to compile
this test program (taken from configure.log), it doesn't produce any
errors for the supported chips and complains on unsupported chips.
Here's output:

[lex.lexa]$ cat test.c
/* confdefs.h.  */

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "avr-libc"
#define VERSION "1.2.6"
#define __AVRLIBC__ 1
#define __AVRLIBC_MINOR__ 2
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
[lex.lexa]$
[lex.lexa]$ avr-gcc -mmcu=atmega164 -c test.c 
[lex.lexa]$ echo $?
0
[lex.lexa]$


Here's piece of config.log:
configure:3515: checking if avr-gcc has support for atmega164
configure:3533: avr-gcc -c -mmcu=atmega164  conftest.c >&5
configure:3539: $? = 0
configure:3542: test -z                          || test ! -s
conftest.err
configure:3545: $? = 0
configure:3548: test -s conftest.
configure:3551: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "avr-libc"
| #define VERSION "1.2.6"
| #define __AVRLIBC__ 1
| #define __AVRLIBC_MINOR__ 2
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3566: result: no
configure:3577: checking if avr-gcc has support for atmega165
configure:3595: avr-gcc -c -mmcu=atmega165  conftest.c >&5
Known MCU names:
  avr1 avr2 avr3 avr4 avr5 at90s1200 attiny10 attiny11 attiny12 attiny15
  attiny28 at90s2313 at90s2323 at90s2333 at90s2343 attiny22 attiny26
  at90s4433 at90s4414 at90s4434 at90s8515 at90s8535 at90c8534 at86rf401
  atmega603 atmega103 at43usb320 at43usb355 at76c711 atmega48 atmega8
  atmega83 atmega85 atmega88 atmega8515 atmega8535 attiny13 attiny2313
  atmega16 atmega161 atmega162 atmega163 atmega164 atmega168 atmega169
  atmega32 atmega323 atmega324 atmega64 atmega644 atmega128 at90can128
  at94k
Assembler messages:
Fatal error: unknown MCU: atmega165

configure:3601: $? = 1
configure: failed program was:
| /* confdefs.h.  */
...

>From configure.log results that atmega164 is supported, and atmega165
not, but configure considers that neither chips are supported, so doing
"./domake" builds only "./build" directory and nothing in avr3, avr4 and
avr5 directories.

  What am I missing? How configure script should be created?

  I'm running Debian Sarge. Tried both version 1.2.3 and 1.2.6 of
avr-libc, experiencing same problem. Any help would be greatly
apreciated.


  Best wishes

--
Alexei Chetroi

Smile... Tomorrow will be worse. (c) Murphy's Law




reply via email to

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