Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] How to rebuild AVR-GCC for Windows? [RSS Feed]

#1 Dec. 5, 2005 19:00:53

Bob P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
as I need to use the Tiny2313, Mega164, and Mega325.
Building all of these would be no problem for me on
my Linux box at home. Alas the power's-that-be here
at work won't let me use Linux; "We are a windows
shop here" I was told. :-(

At any rate I was trying to find some instructions
on how to build a Windows version of AVR-GCC using
Cygwin and/or MingW but I have not found such a document
can some one point me to one please?

I think I have everything in hand the GCC-3.4.4 source,
Binutils 2.16.1, AVR-LIBC 1.4, and Joerg Wunsch's latests
FreeBSD patch file for the newer devices, cygwin and mingw,
anything else needed?

When I was downloading GCC 3.4.4 sources I saw there was
a 3.4.5, any reason to use that? I want to avoid 4.x.x
for the moment.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Dec. 5, 2005 19:14:02

Eric W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


Bob Paddock wrote:I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
as I need to use the Tiny2313, Mega164, and Mega325.
Building all of these would be no problem for me on
my Linux box at home. Alas the power's-that-be here
at work won't let me use Linux; "We are a windows
shop here" I was told. :-(Well, that's ridiculous. I'm sorry you have to deal with that. Why didthey say that? Is there more than one developer working with the toolset?At any rate I was trying to find some instructions
on how to build a Windows version of AVR-GCC using
Cygwin and/or MingW but I have not found such a document
can some one point me to one please?

I think I have everything in hand the GCC-3.4.4 source,
Binutils 2.16.1, AVR-LIBC 1.4, and Joerg Wunsch's latests
FreeBSD patch file for the newer devices, cygwin and mingw,
anything else needed?

When I was downloading GCC 3.4.4 sources I saw there wasa 3.4.5, any reason to use that?Generally, anything later would be good as it fixed more bugs.I want to avoid 4.x.x
for the moment.Hmm. Too bad, I'm putting together WinAVR but I'm using 4.0.1. Anyparticular reason to avoid 4.x.x?--
Eric Weddington


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Dec. 5, 2005 19:38:44

Bernd T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


--- Eric Weddington <> wrote:


> > I want to avoid 4.x.x
> > for the moment.
>
> Hmm. Too bad, I'm putting together WinAVR but I'm using 4.0.1. Any
> particular reason to avoid 4.x.x?http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18251http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19636for example.

I'd ask the users if they want bugs&new features or a stable compiler...







__________________________________
Start your day with Yahoo! - Make it your home page!http://www.yahoo.com/r/hs_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#4 Dec. 5, 2005 19:50:34

Bob P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


On Mon, 05 Dec 2005 14:13:48 -0500, Eric Weddington<> wrote:Bob Paddock wrote:I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
as I need to use the Tiny2313, Mega164, and Mega325.
Building all of these would be no problem for me on
my Linux box at home. Alas the power's-that-be here
at work won't let me use Linux; "We are a windows
shop here" I was told. :-(Well, that's ridiculous.Yes it is.I'm sorry you have to deal with that.There is a definite lack of Embedded related jobs in the area
that I live, or at least within the distance I want to commute
everyday; Pittsburgh/Eire Region.Why did they say that?IT said "Linux is a Toy". Brought to you by the same people
who came around and nuked Cygwin previously because "the files
had funny permission attributes", when they made me backup my machine
to their domain server. They could not restore a backup tape
because of my "funny permissions", got called into VP's office
to explain why my files "had funny permissions". Now I just
keep Cygwin off of the network, even tho edicts say that I am
to backup all my tools there.

What is even more interesting that setting here beside me is
a Linux SBC I'm evaluating for use in a product. Don't know
what is going to happen with that.Is there more than one developer working with the toolset?There are four of us. The motivation at the moment is
that the Boss wants to start using GCC on his new Mega164 project,
so it would be a Good Thing to have a Mega164 GCC compiler
when he switches over from IAR. Myself I don't have any problem
running with Cygwin, but that is not going to happen for at least
two of the other people.When I was downloading GCC 3.4.4 sources I saw there was
a 3.4.5, any reason to use that?Generally, anything later would be good as it fixed more bugs.I want to avoid 4.x.x for the moment.Hmm. Too bad, I'm putting together WinAVR but I'm using 4.0.1. Anyparticular reason to avoid 4.x.x?I've been following the list here and 4.x.x seemed like it was stillchanging often. "Generally, anything later would be good as it fixed morebugs",so why not 4.0.2? ;-) I'm willing to go with 4.0.x if it is stable enoughto be in the official WinAVR release, you had a message on the list acouple ofweeks ago saying the next release was going to be 3.4.4, so that is
what I was going to try to build.Can you make the WinAVR build scripts, or instructions a part of thestandard release?_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#5 Dec. 5, 2005 23:21:14

Joerg W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


"Bob Paddock" <> wrote:

> ... The motivation at the moment is that the Boss wants to start
> using GCC on his new Mega164 project, so it would be a Good Thing to
> have a Mega164 GCC compiler when he switches over from IAR.

Curious, are they already real?

There are no XML files from Atmel available so far for them, and there
are several errors in the published datasheet, so crafting the
avr-libc header files for them was based on some guesswork made by
Anatoly Sokolov. AVR Studio wouldn't support them either (AFAICT), so
a Unix-based version would even be beyond Windows. ;-)

As for how to build the tools on Windows, search for Kai Klenovsek's
instructions if you don't mind doing the legwork yourself. You'd need
to manually collect the patches (like, from my avr-binutils and
avr-gcc FreeBSD ports) tough, as Kai didn't document the patch
process. (He hasn't been interested in supporting recent devices.)

--
cheers, J"org .-.-. --... ...-- -.. . DL8DTLhttp://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#6 Dec. 6, 2005 05:46:45

Uwe F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


Bob Paddock schrieb:I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
as I need to use the Tiny2313, Mega164, and Mega325.You could try:http://www.atmanecl.net/EnglishSite/indexEnglish.htmIts commerical, but the included avr-gcc is - of course - free.

How to use it to update the WinAVR toolchain is described here:http://www.avrfreaks.org/index.php?name=PNphpBB2&file=viewtopic&t=33742&sid=a444ebfe988b2711165df1daf789d0aeRegards:

Uwe


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#7 Dec. 6, 2005 07:01:17

Erik C.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


On Mon, Dec 05, 2005 at 02:02:13PM -0500, Bob Paddock wrote:
>
> I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
> as I need to use the Tiny2313, Mega164, and Mega325.
> Building all of these would be no problem for me on
> my Linux box at home. Alas the power's-that-be here
> at work won't let me use Linux; "We are a windows
> shop here" I was told. :-(

<OT> (Well mostly, but it is a proven solution to the fundamental problem. :-)

Bob,

Have you considered running the windows machine, as asked, but a linux
box as well? Then, the tasks which happen to fail under MS can still
succeed on linux. Before long, nobody minds where the successes
originate.

For the last 9 years I've been the only linux user here. What works for
me is building the toolchain for each new target (MS users can then
replicate under cygwin), writing the linker scripts, and answering any
tool questions. When they ask for snmp, you build net-snmp on your
linux box without a hassle. When they ask for an eCos port, you do it on
linux, and the team can follow on MS, if they insist. (Mind you, I've
never used MS, so no-one suggests it any more. :-)

YMMV, depending on cheek.

</OT>

Erik


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#8 Dec. 6, 2005 07:16:34

Dave H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


> Have you considered running the windows machine, as asked, but a linux
> box as well? Then, the tasks which happen to fail under MS can still
> succeed on linux. Before long, nobody minds where the successes
> originate.

I've been using an interesting program called colinux
<http://www.colinux.org/>, which gives me linux running as a Win32
process. I use it to build toolchains for my gumstix
<http://www.gumstix.com>.

Of course, the avr stuff builds under colinux too.

--
Dave Hylands
Vancouver, BC, Canadahttp://www.DaveHylands.com/_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#9 Dec. 6, 2005 16:41:35

Bob P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


On Mon, 05 Dec 2005 18:20:59 -0500, Joerg Wunsch <>wrote:"Bob Paddock" <> wrote:... The motivation at the moment is that the Boss wants to start
using GCC on his new Mega164 project, so it would be a Good Thing to
have a Mega164 GCC compiler when he switches over from IAR.Curious, are they already real?Apparently not. Boss was just told that this morning.
So he is going to probably switch to a ARM part
from Philips for his project. This makes two sockets
Atmel has lost from us in the last two months due
to availability problems.As for how to build the tools on Windows, search for Kai Klenovsek'sThank you, I will look up his instructions.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#10 Dec. 6, 2005 17:07:14

Bob P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] How to rebuild AVR-GCC for Windows?


On Tue, 06 Dec 2005 00:46:18 -0500, Uwe Fechner <> wrote:I want to build GCC 3.4.4/Binutils 2.16.1/AVR-LIBC 1.4
as I need to use the Tiny2313, Mega164, and Mega325.You could try:http://www.atmanecl.net/EnglishSite/indexEnglish.htmhttp://www.avrfreaks.org/index.php?name=PNphpBB2&file=viewtopic&t=33742&sid=a444ebfe988b2711165df1daf789d0aeI gave that a shot, but I don't think I want to trust production
code to that. Overlaying AVRGCC 3.4.4 on top of WinAVR3.4.3
leads to some obscure differences between the header files,
like stddef.h. It then is not clear to me exactly which header files
are getting used. It is the files in lib\gcc\avr that are at
issue.

Also ran into some problems with respect to
my own code when switching to AVR-LIBC 1.40, I'll address
that in a separate message.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] How to rebuild AVR-GCC for Windows? [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support