Package: gcc-avr
Version: 1:4.3.5-1
Severity: normal
File: /usr/bin/avr-gcc


bug1:

bernhard@b:~/src/attiny45/bug1$ make
avr-gcc  -mmcu=attiny45   bootloader.S   -o bootloader
bootloader.S: Assembler messages:
bootloader.S:8: Internal error!
Assertion failure in get_known_segmented_expression at read.c line 5347.
Please report this bug.
make: *** [bootloader] Error 1

bug2:
bernhard@b:~/src/attiny45/bug1$ make
avr-gcc  -mmcu=attiny45   bootloader.S   -o bootloader
bootloader.S: Assembler messages:
bootloader.S:11: Warning: symbol "L0" undefined; zero assumed
/usr/lib/gcc/avr/4.3.5/../../../avr/lib/avr25/crttn45.o: In function 
`__bad_interrupt':
.../../../../crt1/gcrt1.S:193: warning: internal error: out of range error
/tmp/cc9DBxMl.o: In function `main':
(.text+0xfff): warning: internal error: out of range error

Not sure if bug2 is a bug, but 'internal error' sounds like it.

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-avr depends on:
ii  binutils-avr              2.20.1-1       Binary utilities supporting Atmel'
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libgmp3c2                 2:4.3.2+dfsg-1 Multiprecision arithmetic library
ii  libmpfr4                  3.0.0-2        multiple precision floating-point 

gcc-avr recommends no packages.

Versions of packages gcc-avr suggests:
ii  avr-libc                      1:1.6.8-2  Standard C library for Atmel AVR d
pn  gcc-4.2                       <none>     (no description available)
ii  gcc-doc                       5:3        documentation for the GNU compiler
pn  task-c-devel                  <none>     (no description available)

-- no debconf information

*** /home/bernhard/src/attiny45/bug1/bootloader.S
#include <avr/io.h>

main1:
        rjmp    main1

;bug 1
tlsize=(tlend-TinyAsyLoad)
..org FLASHEND-tlsize

;bug (?) 2
;.org FLASHEND-(tlend-TinyAsyLoad)




;       .section .bootloader,"ax",@progbits
        .global main
main:
TinyAsyLoad:
        rjmp    main1           ;THIS MUST RESIDE AT THE LAST
                                ;ADDRESS OF FLASH
tlend:

*** /home/bernhard/src/attiny45/bug1/Makefile
CC      = avr-gcc
CPPFLAGS= -mmcu=attiny45

bootloader:

clean:
        rm -f bootloader



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to