Opened 16 years ago
Closed 13 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)
Change History (18)
comment:1 Changed 16 years ago by andi@…
Cc: | andi@… added |
---|
comment:2 Changed 16 years ago by jmroot (Joshua Root)
Cc: | metamagix@… added; andi@… removed |
---|---|
Owner: | changed from macports-tickets@… to pguyot@… |
Type: | defect → enhancement |
comment:4 Changed 16 years ago by andi@…
any updates? btw where to get these patches to port a normal gcc to avr-gcc?
comment:5 Changed 16 years ago by jmroot (Joshua Root)
Type: | enhancement → update |
---|
comment:8 Changed 14 years ago by jmroot (Joshua Root)
Cc: | metamagix@… removed |
---|---|
Owner: | changed from pguyot@… to metamagix@… |
Version: | 1.6.0 |
Changed 14 years ago by lars@…
Attachment: | patch-avr-gcc-update-452.diff added |
---|
This patch updates the portfile for avr-gcc. It needs patch-avr-config-unknown-mcu.diff in files before building
Changed 14 years ago by lars@…
Attachment: | patch-avr-config-unknown-mcu.diff added |
---|
gcc should error out if it encounters an unknown MCU. See gcc bug 45261.
comment:10 Changed 14 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:12 Changed 13 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:14 Changed 13 years ago by marc.sowen@…
comment:15 Changed 13 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 13 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Cc Me!