[Bug 676024] New: avr-gcc 4.3.3 -- missing support for ATtiny4313 -- WinAVR 4.3.3 works.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c0 Summary: avr-gcc 4.3.3 -- missing support for ATtiny4313 -- WinAVR 4.3.3 works. Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: madworm_de.novell@spitzenpfeil.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-3.1 Firefox/3.6.13 I just got hold of the long awaited ATtiny4313 only to find that I can't compile any code for it with avr-gcc 4.3.3 ;-( The include files and everything are in avr-libc 1.7.0.x, but the compiler itself is agnostic to this new mcu. Running avr-gcc from the latest WinAVR version (4.3.3 as well) works though ?!? Would it be possible to resolve this for 11.4, maybe 11.3 as well ? Reproducible: Always Steps to Reproduce: 1. avr-gcc -mmcu=attiny4313 bla.c 2. "error: MCU 'attiny4313' supported for assembler only" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |jw@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c1 --- Comment #1 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-03-02 13:20:05 UTC --- Just so I don't appear as a lazy half-wit: I tried to compile binutils/avr-libc/avr-gcc according to the user-manual on the avr-libc website. I tested 4.3.x and 4.4.x and 4.5.2 - all of them lack essential patches to activate device support for the ATtiny4313. There are several patches out there, one on a freebsd site I stumbled upon and one can be found on avrfreaks.net, but they seem to be for vastly different versions. http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-gcc/files/patch-newdev... http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=801807#801807 I managed to get one version to compile and avr-gcc at least accepts 'attiny4313' as mcu parameter, but later the linker complains about a missing object file for this cpu (but it exists). Whoever got the 4.3.3 packages going last time might have a better chance to apply the patch(es) to avr-devices.c than me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c2 --- Comment #2 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-03-07 17:41:50 UTC --- 'Bingo600' from avrfreaks.net has produced yet another script, which gave me a working avr-gcc that supports the new ATtiny4313 chip ;-) Avrdude still needs a patch for its config file to make this chip known to it though. Here's the post: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=104134 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c3 --- Comment #3 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-03-07 19:14:09 UTC --- Please note: It seems that old code that needs to be compiled with avr-g++ will have to be modified as such: old: #include <avr/delay.h> new: #include <math.h> #include <util/delay.h> To whom it may concern: this also affects compiling code with the 'Arduino IDE' on linux. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c4 Juergen Weigert <jw@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |max@novell.com, | |sndirsch@novell.com --- Comment #4 from Juergen Weigert <jw@novell.com> 2011-03-07 19:24:01 UTC --- Thanks Robert, for all the input. I've just created a proper avrdude patch from http://savannah.nongnu.org/patch/?7393 -- starting with the easiest part for me. Hope that helps. CrossToolchain:avr/avrdude is rebuilding. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c5 --- Comment #5 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-03-07 22:19:20 UTC --- The issue with delay.h might stem from 'recent' updates to avr-libc 1.7.1 It seems some math functions (round, abs...) went into <util/delay.h>. Apparently avr-gcc doesn't have a problem with these, but avr-g++ doesn't know about these at all. This can be resolved by adding #include <math.h> to the top of <util/delay.h>
From what I've read in the most recent forum post I referred to, 'Bingo600' will look into this issue and if it is indeed resolved by adding only this include, he'll build some debian packages, which will be linked to on avrfreaks.net.
There's still the issue of Atmel not having provided the patches used for 'their' latest WinAVR (part of the new and infamous AVR-Studio 5 - a 520MB .net bloat - that's the size of the installer, not unpacked). As I can't fathom the amount of work necessary to update the packages, it may be wise to wait with that part a bit. All of this could be sooooo easy, if the bean counters at Atmel had seen the light. Apparently that's another case of 'why we're still using windows' and 'irrelevant market share'... .. but now it compiles my code ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c6 --- Comment #6 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-04-25 19:16:17 UTC --- Guys... Ubuntu 10.10 seems to have an up-to-date(er) version of avr-gcc as well ( with support for the ATtiny4313 ). I suppose the patches necessary for that should be on their servers. Why can`t we have that as well? I guess the maintainers would be willing to share their little treasure? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c7 Juergen Weigert <jw@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |madworm_de.novell@spitzenpf | |eil.org --- Comment #7 from Juergen Weigert <jw@novell.com> 2011-04-26 10:17:18 UTC --- Sorry, I lost track of this issue. Did not do anything with the toolchain for the last 6 months or so. Robert, would you want to help maintaining the toolchain yourself? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c8 --- Comment #8 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-05-04 00:23:54 UTC --- I can give it a shot, but don't expect too much of me right now. At the moment life isn't too good to me and I'm busy putting things right there... Some distraction for the weekends would be OK though. Oh, and I don't know squat about spec-files either. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c9 Simon Siemens <Simon.Siemens@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Simon.Siemens@arcor.de --- Comment #9 from Simon Siemens <Simon.Siemens@arcor.de> 2011-06-09 14:58:24 UTC --- Dear Robert, a friend of mine created a new avr-gcc package. It is GCC version 4.3.5 with some additional patches. Could you please test the new package? You find it on https://build.opensuse.org/package/show?package=cross-avr-gcc&project=home%3Aarphen%3Abranches%3ACrossToolchain%3Aavr Download the RPM for your openSUSE version and install it. If it works well, please let us know. If it does not, report us the bugs. We hope to get the new package in the CrossToolchain:avr repository soon. Thanks, Simon -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c10 --- Comment #10 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-06-09 16:24:23 UTC --- Created an attachment (id=433809) --> (http://bugzilla.novell.com/attachment.cgi?id=433809) build failure for ATtiny4313 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=676024 https://bugzilla.novell.com/show_bug.cgi?id=676024#c11 --- Comment #11 from robert spitzenpfeil <madworm_de.novell@spitzenpfeil.org> 2011-06-09 16:24:43 UTC --- Thanks. I appreciate the effort. Speaking as a member of the Arduino community many thanks for making this work for all of us. I've tested these packages provided: avr-libc 1.7.1-1.1 cross-avr-binutils 2.19.1-33.1 cross-avr-gcc 4.3.5_20100125-29.1 vs. (via avrfreaks.net) GNU size (GNU Binutils) 2.20.1.20100303 avr-gcc (GCC) 4.4.3 avr-libc 1.7.1 So far I've successfully compiled code for ATmega168 and ATtiny24 chips. It seems to work as far as I can tell (no error messages at least). Code size is smaller with the 4.3.5 version of avr-gcc. However compiling for the 4313 still fails. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com