Newbie Questions Regarding installing AVR-GCC on Linux

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I am new here. I am trying to install AVR-GCC on Linux. I have a Fedora 9 machine with GCC 4.3.0 already installed. I was going through the AVR-libC installation manual and it suggests that I go for the latest versions of Bin utils, GCC etc. It also suggests that I have to "patch" the AVR-GCC to support new devices.
The latest version of GCC from the GCC site is 4.3.2. However all the automated patch systems that I see in the sticky refer to GCC 4.2.2. Can anyone clarify what I am supposed to be using?

I have another related doubt: The AVR-libC manual states the Warning:
If you have CC set to anything other than avr-gcc in your environment, this will cause the configure script to fail. It is best to not have CC set at all.
CC in my terminal gives :
cc --v

----------------------------------------------------------
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
----------------------------------------------------------

Can any one clarify if this will cause issues?

Thanks in advance
Regards
Eshwaran

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For the start you will safe yourself a lot of hassle if you go for the packaged version of your distributor.

I don't use Red Hat and I can't tell you if their packages are OK, but chances are good that you end up with an environment that just works.

Thomas

pycrc -- a free CRC calculator and C source code generator

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tpircher wrote:
For the start you will safe yourself a lot of hassle if you go for the packaged version of your distributor.

I don't use Red Hat and I can't tell you if their packages are OK, but chances are good that you end up with an environment that just works.

I've read that the packages work,
but the same source (on AVR Freaks) recommended against them.
The reason being that the patches are useful.
IIRC one of them is the 0b syntax for binary
that exactly mirrors the 0x syntax for hex.

If you search AVR Freaks, you might discover that I had
an awful time the first time I tried the install scripts.
The reason turned out to be that I had
managed to tickle a bug in the file system.
Eventually I upgraded my Fedora version without
waiting for my current version to be declared dead.

Iluvatar is the better part of Valar.