Problems with Linux build script

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

[Split off from the sticky thread on top. -- Jörg]

Quote:

[Moderator's note: as that thread is sticky now, please
avoid followups here. Rather open your own new thread
instead.]

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/

Edit:1
Ohh ... make sure the scripts are executable (chmod +x *.sh)

Edit:2
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.

Quote:

# User specific environment and startup programs
PREFIX=/usr/local/avr
export PREFIX

PATH=$PATH:$HOME/bin:$PREFIX/bin
export PATH

Code:

These are the current binutil-patches:
.
patch-aa
patch-bug5215
patch-coff-avr
patch-newdevices
patch-newsections <-------- New
30-binutils-2.18-avr-size.patch <-------- From the WinAVR repository
binutils-makeinfo.patch <-------- Included in zipfile , and fixes makeinfo problems

Code:

These are the current gcc-patches:
.
patch-0b-constants
patch-bug11259 <-------- New
patch-bug25672
patch-bug30243 <-------- New
patch-constraint-desc <-------- New
patch-doc-progmem <-------- New
patch-dwarf
patch-libiberty-Makefile.in
patch-newdevices
patch-os_main-os_task <-------- New
patch-zero_extend <-------- New
patch-zz-atmega256x

Quote:
06-aug-2007
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.

Quote:
@23-Dec-2007
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

Quote:
@17-May-2008
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.

/Bingo
.
.
.

build-avr-gcc-4.2.2-libc-1.6.2-makeinfo-fixed.tar.gz
Description:
Script for building avr-gcc-4.2.2 w. binutils-2.1.8 and avr-libc-1.6.2
and insight+gdb
I included a makeinfo patch in the zipfile

Download
Filename: build-avr-gcc-4.2.2-libc-1.6.2-makeinfo-fixed.tar.gz
Filesize: 4.63 KB
Downloaded: 113 Time(s)
build-avr-gcc-4.2.2-libc-1.6.1-makeinfo-fixed.zip
Description:
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

Download
Filename: build-avr-gcc-4.2.2-libc-1.6.1-makeinfo-fixed.zip
Filesize: 5.94 KB
Downloaded: 340 Time(s)
avr-gcc-4.1.2-binutils-2.1.7.zip
Description:
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.

Download
Filename: avr-gcc-4.1.2-binutils-2.1.7.zip
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.....
:shock:

ATMEL--Heart Beat
Nothing Impossible

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

I couldn't down load it............... please help.............
:cry:

ATMEL--Heart Beat
Nothing Impossible

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

While i try to download the attachment, it asks me to save it as index.php, I don't know how to extract the php extention files.........

But i want to install AVR GCC anyway.............

ATMEL--Heart Beat
Nothing Impossible

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

That used to be a fault with the 'Freak's board - downloads would always be offered as "index.php" but as long as you simply renamed the file back to the intended name after download it would work.