Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339943 - dev-embedded/avr-libc-1.7.0 - version bump
Summary: dev-embedded/avr-libc-1.7.0 - version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-06 14:29 UTC by Torsten Kurbad
Modified: 2010-10-07 20:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
avr-libc-1.7.0.ebuild (avr-libc-1.7.0.ebuild,1.79 KB, text/plain)
2010-10-06 14:30 UTC, Torsten Kurbad
Details
updated (avr-libc-1.7.0-r0.ebuild,1.97 KB, text/plain)
2010-10-07 00:08 UTC, Ilya Dmitrichenko
Details
here is the patch for configure.ac (gcc4_workaround.patch,4.01 KB, patch)
2010-10-07 00:15 UTC, Ilya Dmitrichenko
Details | Diff
avr-libc-1.7.0-r0.ebuild (avr-libc-1.7.0-r0.ebuild,1.97 KB, text/plain)
2010-10-07 00:19 UTC, Ilya Dmitrichenko
Details
gcc4_workaround.patch (gcc4_workaround.patch,4.01 KB, patch)
2010-10-07 00:20 UTC, Ilya Dmitrichenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2010-10-06 14:29:52 UTC
Version of avr-libc bumped from 1.6.8 to 1.7.0.

Except from changing the original download site, no changes to 1.6.8 ebuild.

Reproducible: Always
Comment 1 Torsten Kurbad 2010-10-06 14:30:36 UTC
Created attachment 249751 [details]
avr-libc-1.7.0.ebuild
Comment 2 Ilya Dmitrichenko 2010-10-07 00:08:22 UTC
Created attachment 249797 [details]
updated

here is a patch for GCC bug #45261 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45261)

I have disabled some of the MCU's in order to compile it.
Comment 3 Ilya Dmitrichenko 2010-10-07 00:15:42 UTC
Created attachment 249803 [details, diff]
here is the patch for configure.ac

just a few MCUs didn't work :(
Comment 4 Ilya Dmitrichenko 2010-10-07 00:19:51 UTC
Created attachment 249804 [details]
avr-libc-1.7.0-r0.ebuild
Comment 5 Ilya Dmitrichenko 2010-10-07 00:20:49 UTC
Created attachment 249805 [details, diff]
gcc4_workaround.patch

the patch to use with it
Comment 6 Ilya Dmitrichenko 2010-10-07 00:23:42 UTC
if anyone dares to check if some of those MCU's don't need to be disblade, please go ahead
Comment 7 Ilya Dmitrichenko 2010-10-07 00:27:06 UTC
sorry for a bit of flood, i am a little bit too tired ;(
Comment 8 Torsten Kurbad 2010-10-07 06:52:33 UTC
(In reply to comment #6)
> if anyone dares to check if some of those MCU's don't need to be disblade,
> please go ahead

Hi Ilya,

you won't have to diable any single one of them, if you use >=cross-avr/gcc-4.4.1 to compile it. For me at least, cross-avr/gcc-4.4.4-r2 did the job very well.

On a side note: Instead of disabling a lot of MCUs in avr-libc to get it compiled with gcc 4.3, wouldn't it be better to add the appropiate support patches to, e.g., gcc 4.3.5 (as the Debian folks did)?

JMTC,
Torsten
Comment 9 Ilya Dmitrichenko 2010-10-07 07:20:50 UTC
(In reply to comment #8)
> Hi Ilya,
> 
> you won't have to diable any single one of them, if you use
> >=cross-avr/gcc-4.4.1 to compile it. For me at least, cross-avr/gcc-4.4.4-r2
> did the job very well.

hm .. I have 4.5.1

I will try with 4.4.1 or 4.4.4, okay.

> On a side note: Instead of disabling a lot of MCUs in avr-libc to get it
> compiled with gcc 4.3, wouldn't it be better to add the appropiate support
> patches to, e.g., gcc 4.3.5 (as the Debian folks did)?

let's see ..if 4.4.4 works then

would you check for me if 'amega128rf1a' is supported with your toolchain?

> JMTC,
> Torsten
> 
Comment 10 Torsten Kurbad 2010-10-07 09:10:31 UTC
> would you check for me if 'amega128rf1a' is supported with your toolchain?

In short: No, it doesn't. And looking at the output of all the different compilers I have in stock, your patch might be legitimate, although I'd rather like to see a properly patched avr-gcc...
That would probably fix some other issues (missing __builtins for avr, ...), too.

avr-gcc 4.3.5 (doesn't have the 'a' variants)
Known MCU names:
   avr2
   at90s2313
   at90s2323
   at90s2333
   at90s2343
   attiny22
   attiny26
   at90s4414
   at90s4433
   at90s4434
   at90s8515
   at90c8534
   at90s8535
   avr25
   attiny13
   attiny2313
   attiny24
   attiny44
   attiny84
   attiny25
   attiny45
   attiny85
   attiny261
   attiny461
   attiny861
   attiny43u
   attiny48
   attiny88
   at86rf401
   avr3
   at43usb320
   at43usb355
   at76c711
   avr31
   atmega103
   avr35
   at90usb82
   at90usb162
   avr4
   atmega8
   atmega48
   atmega48p
   atmega88
   atmega88p
   atmega8515
   atmega8535
   atmega8hva
   at90pwm1
   at90pwm2
   at90pwm2b
   at90pwm3
   at90pwm3b
   avr5
   atmega16
   atmega161
   atmega162
   atmega163
   atmega164p
   atmega165
   atmega165p
   atmega168
   atmega168p
   atmega169
   atmega169p
   atmega32
   atmega323
   atmega324p
   atmega325
   atmega325p
   atmega3250
   atmega3250p
   atmega328p
   atmega329
   atmega329p
   atmega3290
   atmega3290p
   atmega32hvb
   atmega406
   atmega64
   atmega640
   atmega644
   atmega644p
   atmega645
   atmega6450
   atmega649
   atmega6490
   atmega16hva
   at90can32
   at90can64
   at90pwm216
   at90pwm316
   at90usb646
   at90usb647
   at94k
   avr51
   atmega128
   atmega1280
   atmega1281
   atmega1284p
   at90can128
   at90usb1286
   at90usb1287
   avr1
   at90s1200
   attiny11
   attiny12
   attiny15
   attiny28

avr-gcc 4.4.4 (seems to have everything necessary for avr-libc 1.7.0, although 'a' variants aren't supported as well)
Known MCU names:
   avr2
   at90s2313
   at90s2323
   at90s2333
   at90s2343
   attiny22
   attiny26
   at90s4414
   at90s4433
   at90s4434
   at90s8515
   at90c8534
   at90s8535
   avr25
   ata6289
   attiny13
   attiny13a
   attiny2313
   attiny24
   attiny44
   attiny84
   attiny25
   attiny45
   attiny85
   attiny261
   attiny461
   attiny861
   attiny43u
   attiny87
   attiny48
   attiny88
   at86rf401
   avr3
   at43usb355
   at76c711
   avr31
   atmega103
   at43usb320
   avr35
   at90usb82
   at90usb162
   attiny167
   attiny327
   avr4
   atmega8
   atmega48
   atmega48p
   atmega88
   atmega88p
   atmega8515
   atmega8535
   atmega8hva
   atmega4hvd
   atmega8hvd
   atmega8c1
   atmega8m1
   at90pwm1
   at90pwm2
   at90pwm2b
   at90pwm3
   at90pwm3b
   at90pwm81
   avr5
   atmega16
   atmega161
   atmega162
   atmega163
   atmega164p
   atmega165
   atmega165p
   atmega168
   atmega168p
   atmega169
   atmega169p
   atmega32
   atmega323
   atmega324p
   atmega325
   atmega325p
   atmega3250
   atmega3250p
   atmega328p
   atmega329
   atmega329p
   atmega3290
   atmega3290p
   atmega406
   atmega64
   atmega640
   atmega644
   atmega644p
   atmega645
   atmega6450
   atmega649
   atmega6490
   atmega16hva
   atmega16hvb
   atmega32hvb
   at90can32
   at90can64
   at90pwm216
   at90pwm316
   atmega16c1
   atmega32c1
   atmega64c1
   atmega16m1
   atmega32m1
   atmega64m1
   atmega16u4
   atmega32u4
   atmega32u6
   at90scr100
   at90usb646
   at90usb647
   at94k
   avr51
   atmega128
   atmega1280
   atmega1281
   atmega1284p
   atmega128rfa1
   at90can128
   at90usb1286
   at90usb1287
   m3000f
   m3000s
   m3001b
   avr6
   atmega2560
   atmega2561
   avr1
   at90s1200
   attiny11
   attiny12
   attiny15
   attiny28

avr-gcc 4.5.1 (doesn't have the 'a' variants either)
Known MCU names:
   avr2
   at90s2313
   at90s2323
   at90s2333
   at90s2343
   attiny22
   attiny26
   at90s4414
   at90s4433
   at90s4434
   at90s8515
   at90c8534
   at90s8535
   avr25
   ata6289
   attiny13
   attiny13a
   attiny2313
   attiny24
   attiny44
   attiny84
   attiny25
   attiny45
   attiny85
   attiny261
   attiny461
   attiny861
   attiny43u
   attiny87
   attiny48
   attiny88
   at86rf401
   avr3
   at43usb355
   at76c711
   avr31
   atmega103
   at43usb320
   avr35
   at90usb82
   at90usb162
   atmega8u2
   atmega16u2
   atmega32u2
   attiny167
   attiny327
   avr4
   atmega8
   atmega48
   atmega48p
   atmega88
   atmega88p
   atmega8515
   atmega8535
   atmega8c1
   atmega8m1
   atmega8hva
   atmega4hvd
   atmega8hvd
   at90pwm1
   at90pwm2
   at90pwm2b
   at90pwm3
   at90pwm3b
   at90pwm81
   avr5
   atmega16
   atmega161
   atmega162
   atmega163
   atmega164p
   atmega165
   atmega165p
   atmega168
   atmega168p
   atmega169
   atmega169p
   atmega32
   atmega323
   atmega324p
   atmega325
   atmega325p
   atmega3250
   atmega3250p
   atmega328p
   atmega329
   atmega329p
   atmega3290
   atmega3290p
   atmega406
   atmega64
   atmega640
   atmega644
   atmega644p
   atmega645
   atmega6450
   atmega649
   atmega6490
   atmega16hva
   atmega16hvb
   atmega32hvb
   at90can32
   at90can64
   at90pwm216
   at90pwm316
   atmega16c1
   atmega32c1
   atmega64c1
   atmega16m1
   atmega32m1
   atmega64m1
   atmega16u4
   atmega32u4
   atmega32u6
   at90scr100
   at90usb646
   at90usb647
   at94k
   avr51
   atmega128
   atmega1280
   atmega1281
   atmega1284p
   atmega128rfa1
   at90can128
   at90usb1286
   at90usb1287
   m3000f
   m3000s
   m3001b
   avr6
   atmega2560
   atmega2561
   avr1
   at90s1200
   attiny11
   attiny12
   attiny15
   attiny28
Comment 11 SpanKY gentoo-dev 2010-10-07 20:10:28 UTC
thanks, ive added 1.7.0 to the tree

rather than patch things though, i implemented a dynamic sed loop to test gcc