[Split off from the sticky thread on top. -- Jörg]
[Moderator's note: as that thread is sticky now, please
avoid followups here. Rather open your own new thread
Guyzz i have succeded in building avr-gcc-4.2.2 w. avr-libc-1.6.1 , and Jörg's latest patches on my Centos-EL-4.5 & Ununtu 7.10
I am enclosing the scripts i use (credits of A. Erasmus) , if they could be of any use
The steps are these:
1: Make sure you are root (blushing)
2: Make a working directory , where you extract the files from the archive.
3: If desired edit the buildavr-no-insight.sh file , to change the prefix .. default is : prefix=/usr/local/avr
4: Make sure that the prefix dir is empty or nonexisting
5: Run : ./getfiles.sh
6: Run : ./get-patches.sh
7: Run: ./buildavr-no-insight.sh
Wait s good deal of time Smile
When building is done , you might want to free around 500MB of diskspace by removing the sources and binaries used to make avr-gcc.
To do so Run: ./buildavr-cleanup.sh
Note this little script expects the "build prefix" to be /usr/local/avr/
Ohh ... make sure the scripts are executable (chmod +x *.sh)
I have an avr user on my Linux-box for doing avr development , i have added this to my .bash_profile in my /home/avr directory , it sets up the path to avr-gcc.
# User specific environment and startup programs
These are the current binutil-patches:
patch-newsections <-------- New
30-binutils-2.18-avr-size.patch <-------- From the WinAVR repository
binutils-makeinfo.patch <-------- Included in zipfile , and fixes makeinfo problems
These are the current gcc-patches:
patch-bug11259 <-------- New
patch-bug30243 <-------- New
patch-constraint-desc <-------- New
patch-doc-progmem <-------- New
patch-os_main-os_task <-------- New
patch-zero_extend <-------- New
Some distros give errors when building binutils ie. Ubunto and the newer Mandrivas (read further on in this thread).
They might need the texinfo package , and maybe some other packages.
Ie. on Ubuntu 7.04 do this before using the scriptfiles :
1: sudo apt-get install build-essential
2: then install texinfo , either via apt-get or the synaptic install/packet manager.
Switching scriptfiles to binutils-2.1.8 ,avr-gcc-4.2.2 and avr-libc-1.6.1 , and added a makeinfo patch for binutils
Thanks to Jörg who updated the GCC repository with all the new devices supported in avr-libc-1.6.1 , I have now added a script to build avr-gcc-4.2.2 w. avr-libc-1.6.1. And to Eric for patching avr-size , and making the binutils-2.1.8 patch available.
Included an avr-gcc-4.1.2/binutils-2.1.7 script w. the old patches in the archive. For those that aren't ready to switch to 4.2.2 yet. Skip the get-patches.sh script in the archive , and just run getfiles and buildavr.
Removed the old script , for avr-gcc-4.1.1
Switching scriptfiles to binutils-2.1.8 ,avr-gcc-4.2.2 and avr-libc-1.6.2 , and added a makeinfo patch for binutils
I included a binutils-makeinfo patch in the tar.gz file
Also added a separate script to build avr-gdb & avr-insight - you prob. have to install the packages listed in pre-reqs.txt in order to get insight to build.
Use: tar xvzf
to extract it
Just ansver yes if any of the scripts says that /usr/local/avr exists.
But always delete /usr/local/avr before you are making a new version build.
Script for building avr-gcc-4.2.2 w. binutils-2.1.8 and avr-libc-1.6.2
I included a makeinfo patch in the zipfile
Filesize: 4.63 KB
Downloaded: 113 Time(s)
Script for building avr-gcc-4.2.2 w. binutils-2.1.8 and avr-libc-1.6.1
I included a patch in the zipfile for fixing a binutils 2.18 makeinfo problem in the configure & configure.ac
Filesize: 5.94 KB
Downloaded: 340 Time(s)
This package contains the buildscripts and the patchfiles , for binutils-2.1.7 (w. the avr-size patch), avr-gcc-4.1.2 and avr-libc-1.46. Skip the get-patches.sh step , as the patches are included.
Filesize: 74.54 KB
Downloaded: 167 Time(s)
I tried downloading the above file but i get a notepad opend showing the hex values on the screen. How will i convert it or how will i extract it?
I am new to Linux environment.....