Opened 15 years ago

Closed 12 years ago

#17524 closed update (duplicate)

avr-gcc: update to current version

Reported by: andi@… Owned by: metamagix@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jonas.baehr@…, tvb377@…, lars@…, nospam2000 (Michael Dreher), marc.sowen@…
Port: avr-gcc

Description

it would be nice if some one could update the avr-gcc port to the current version

Attachments (2)

patch-avr-gcc-update-452.diff (2.2 KB) - added by lars@… 13 years ago.
This patch updates the portfile for avr-gcc. It needs patch-avr-config-unknown-mcu.diff in files before building
patch-avr-config-unknown-mcu.diff (576 bytes) - added by lars@… 13 years ago.
gcc should error out if it encounters an unknown MCU. See gcc bug 45261.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 15 years ago by andi@…

Cc: andi@… added

Cc Me!

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: metamagix@… added; andi@… removed
Owner: changed from macports-tickets@… to pguyot@…
Type: defectenhancement

comment:3 Changed 15 years ago by jonas.baehr@…

Cc: jonas.baehr@… added

Cc Me!

comment:4 Changed 15 years ago by andi@…

any updates? btw where to get these patches to port a normal gcc to avr-gcc?

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementupdate

comment:6 Changed 15 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

comment:7 Changed 14 years ago by tvb377@…

Cc: tvb377@… added

Cc Me!

comment:8 Changed 14 years ago by jmroot (Joshua Root)

Cc: metamagix@… removed
Owner: changed from pguyot@… to metamagix@…
Version: 1.6.0

comment:9 Changed 13 years ago by lars@…

Cc: lars@… added

Cc Me!

Changed 13 years ago by lars@…

This patch updates the portfile for avr-gcc. It needs patch-avr-config-unknown-mcu.diff in files before building

Changed 13 years ago by lars@…

gcc should error out if it encounters an unknown MCU. See gcc bug 45261.

comment:10 Changed 13 years ago by lars@…

I have attached two patches that can be used to update to gcc 4.5.2.

Installation

patch-avr-config-unknown-mcu.diff patches gcc. It needs to go into $(port dir avr-gcc)/files. Something like this:

sudo cp ~/Downloads/patch-avr-config-unknown-mcu.diff $(port dir avr-gcc)/files

patch-avr-gcc-update-452.diff updates the portfile for gcc 4.5.2. Apply with something like:

cd $(port dir avr-gcc)
patch -p0 < ~/Downloads/patch-avr-gcc-update-452.diff

Background

For the background of patch-avr-config-unknown-mcu.diff, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45261.

Basically, gcc doesn't return with an error if it encounters an unknown MCU. This breaks the configure step of avr-libc.

Caveats

I have removed the other patches for avr-gcc without really understanding them. YMMV

comment:11 Changed 12 years ago by nospam2000 (Michael Dreher)

Cc: nospam2000@… added

Cc Me!

comment:12 in reply to:  description Changed 12 years ago by marc.sowen@…

What needs to be done to get Lars patches into trunk? They seem to be fine.

BTW: The patch patch-avr-config-unknown-mcu.diff is not needed anymore from gcc 4.5.3 onwards. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45261. It is fixed in gcc trunk revision 170536.

comment:13 Changed 12 years ago by marc.sowen@…

Cc: marc.sowen@… added

Cc Me!

comment:14 Changed 12 years ago by marc.sowen@…

I've created a patch to update current trunk version of avr-gcc 4.6.2: See #33107. Please also update to latest avr-libc since the older version won't compile with gcc 4.6.2. See #33106.

comment:15 Changed 12 years ago by lars@…

If I could, I'd close this ticket and link to #33107.

gcc 4.6.2 fixes at least one annoying bug (wrong const warnings for PROGMEM placed constants when using C++) over 4.5.2

(But here we are, ghosts whispering to each other in this deserted place.)

comment:16 Changed 12 years ago by mf2k (Frank Schima)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.