[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] trying to build avrgcc using cygwin

From: Jason Kyle
Subject: Re: [avr-gcc-list] trying to build avrgcc using cygwin
Date: Fri, 22 Feb 2002 15:35:35 +1300

At 16:44 21/02/2002 -0800, Sander Pool wrote:


I'm not having much luck getting a patched win32 version of avrgcc going
that supports mega128 parts so I figured I'd try to build it myself. Ha. I
already had cygwin on my system so I downloaded gcc 3.0.3 and I'm trying to
configure and build it as follows:

$ cd build-gcc-3.0.3
../gcc-3.0.3/configure -v --target=avr --prefix=/cygdrive/c/avrgc/new --with
nu-ld --with-gnu-as --disable-nls > conf_gcc.log 2>&1
$ make all LANGUAGES="c" > build_gcc.log 2>&1

The following works for me in cygwin, NB I don't try to install in another directory as you are doing. I don't patch for m128 as i'm not using it at the moment.

In this order (binutils must be built first!)

binutils 2.11.2
configure --target=avr
make install

../gcc-3.0.3/configure --target=avr --enable-languages=c
make install

domake install

The binaries and library files will end up in /usr/local/avr (default) with sym links for the binaries from /usr/local/bin


This is my first time building gcc so I'm just stumbing in the dark. While I
go on trying to figure out what went wrong, could someone point me in the
right direction?

Once I can build avrgcc 3.0.3 I will try to apply patches published here to
add mega128 support. I can dream, right? :-)

After un-taring the gcc-core-3.0.3 source (no need to get the whole gcc source as you only want the c language) apply the patch, only then can you configure & build. The patch is for the source code.

Hope this helps a little.

Jason Kyle

BTW Anton, thanks for your help but somehow the files you sent aren't enough
to get testprograms compiled with mega128 support. I must be doing something



avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]