support for at90usb1287 device broken

Bug #139810 reported by Andrew Straw
16
Affects Status Importance Assigned to Milestone
avr-libc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: avr-libc

Since version 1.4.4, avr-libc has supported the at90usb1287 device, among others ( http://www.nongnu.org/avr-libc/NEWS.txt ). However, the version in ubuntu gutsy, 1.4.5, fails to work with this device.

Steps to reproduce:

1) Create the source for a simple C program (example below).
2) avr-gcc -c -mmcu=at90usb1287 -gdwarf-2 -Os test.c -o test.o
3) avr-gcc -mmcu=at90usb1287 -gdwarf-2 test.o --output test.elf -lm

Now, I get the error:

/usr/lib/gcc/avr/4.2.1/../../../../avr/bin/ld: crtusb1287.o: No such file: No such file or directory

Note that this example builds fine on Debian unstable, which is using avr-libc-1.4.6.

Now, for the source of the simple C program, test.c:

#include <avr/io.h>
#include <avr/interrupt.h>

int main(void)
{

  uint8_t x;

  while (1)
  {
      x++;
  }
}

Revision history for this message
Luke Andrew (luke.andrew) wrote :

Confirming, I get the same error with avr-libc 1.4.5. 1.4.6 from debain unstable also works for me.

Changed in avr-libc:
status: New → Confirmed
Revision history for this message
Luke Andrew (luke.andrew) wrote :

1.4.6 has been synced from debian, however its not building due to bug(s) in sbuild. (debian bug numbers #403246, #422879, #272955). Anyone know how 1.4.6 is built in debian? I cant seem to find any build logs for it...

Revision history for this message
Troy C (troxor) wrote :

crttn84.o and crttn85.o are also missing (attiny84 and attiny85, respectively) from avr-libc 1.4.5-2

Rebuilding the package (on Gutsy) led to happiness :)

1. apt-get source avr-libc
2. cd avr-libc-1.4.5
3. change debian/rules line 9ish to
      ./configure --build=`./config.guess` --host=avr --prefix=/usr --enable-doc --disable-versioned-doc --disable-pdf-doc --disable-ps-doc
4. dpkg-buildpackage -rfakeroot
dpkg -i ../avr-libc_1.4.5-3_all.deb

Revision history for this message
Troy C (troxor) wrote :

Works fine for me now, using standard Hardy packages.

$ dpkg -l | grep avr
ii avr-libc 1:1.4.7-1 Standard C library for Atmel AVR development
ii binutils-avr 2.18-3 Binary utilities supporting Atmel's AVR targ
ii gcc-avr 1:4.2.2-1 The GNU C compiler (cross compiler for avr)

Revision history for this message
Alessio Igor Bogani (abogani) wrote :

Could you test with avr-libc 1:1.6.7-1 available in Ubuntu Lucid, please?

Thanks!

Changed in avr-libc (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Andrew Straw (astraw) wrote :

The following commands work without raising an exit code on Lucid avr-libc 1:1.6.7-1 amd64, Lucid avr-libc 1:1.6.7-1 i386, Karmic 1:1.6.2.cvs20080610-2 amd64, and sid 1:1.6.7-1 amd64:

git clone git://github.com/motmot/fview_ext_trig.git

cd fview_ext_trig/CamTrigUSB/Projects
rm -f MotmotCamTrig/*.hex MotmotCamTrig/*.o
make -C MotmotCamTrig

Therefore, I think this bug can be considered closed.

Revision history for this message
Alessio Igor Bogani (abogani) wrote :

Thanks Andrew!

Changed in avr-libc (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.