[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] AVR tool chain on MacOSX
From: |
Andreas Höschler |
Subject: |
Re: [avr-gcc-list] AVR tool chain on MacOSX |
Date: |
Mon, 1 Dec 2014 20:49:16 +0100 |
Hi,
I would like to thank you all for helping me out while setting up the tool
chain on MacOSX. I finally got it working!! For whomever is interested here is
the list of required steps:
Thanks a lot,
Andreas
************************************************************************************************************************
PREFIX=/usr/local/avr
export PREFIX
PATH=$PATH:$PREFIX/bin
export PATH
We download http://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.gz:
We download http://www.smartsoft.de/Downloads/binutils-2.20.1-patches.tar.gz
cd /usr/src
gunzip binutils-2.20.1-patches.tar.gz
tar xvf binutils-2.20.1-patches.tar
mkdir avr
cd avr
bunzip2 binutils-2.20.1.tar.bz2
gnutar xvf binutils-2.20.1.tar
cd binutils-2.20.1
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-300-binutils-2.20.1-avr-size
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-301-binutils-2.20.1-avr-coff
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-302-binutils-2.20.1-new-sections
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-303-binutils-2.20.1-as-dwarf
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-305-binutils-2.20.1-assembler-options
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-400-binutils-2.20.1-xmega
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-401-binutils-2.20.1-new-devices
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-402-binutils-2.20.1-avrtiny10
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-403-binutils-2.20.1-xmega128a1u-64a1u
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-404-binutils-2.20.1-atxmega16x1-32x1
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-405-binutils-2.20.1-atxmega128b1
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-406-binutils-2.20.1-atxmega256a3bu
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-407-binutils-2.20.1-at90pwm161
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-408-binutils-2.20.1-atmega16hvb-32hvb
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-409-binutils-2.20.1-atmega32_5_50_90_pa
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-410-binutils-2.20.1-attiny1634
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-411-binutils-2.20.1-atmega48pa
patch -p0 <
/usr/src/binutils-2.20.1-patches/patch-500-binutils-2.20.1-bug13789
patch -p0 < /usr/src/binutils-2.20.1-patches/patch-Makefile.in
CFLAGS="-Wno-error -g -O2" ./configure --target=avr
--program-prefix="avr-" --prefix=$PREFIX --disable-nls
make
make install
We download https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2 from
https://gmplib.org/#DOWNLOAD
cd /usr/src
bunzip2 gmp-6.0.0a.tar.bz2
tar xvf gmp-6.0.0a.tar
cd gmp-6.0.0
./configure
make
make check
make install
We download mpfr from http://www.mpfr.org!
We download http://www.smartsoft.de/Downloads/mpfr-3.1.2-patches.tar.gz!
cd /usr/src/
gunzip mpfr-3.1.2-patches.tar.gz
tar xvf mpfr-3.1.2-patches.tar
bunzip2 mpfr-3.1.2.tar.bz2
tar xvf mpfr-3.1.2.tar
cd mpfr-3.1.2
patch -N -Z -p1 < /usr/src/mpfr-3.1.2-patches/allpatches
./configure
make
make check
make install
We download mpc from http://www.multiprecision.org/?prog=mpc&page=download.
cd /usr/src/
gunzip mpc-1.0.2.tar.gz
tar xvf mpc-1.0.2.tar
cd mpc-1.0.2
./configure
make
make install
We download http://gcc.cybermirror.org/releases/gcc-4.5.1/gcc-4.5.1.tar.bz2:
We download http://www.smartsoft.de/Downloads/gcc-4.5.1-patches.tar.gz
cd /usr/src/
gunzip gcc-4.5.1-patches.tar.gz
tar xvf gcc-4.5.1-patches.tar
cd /usr/src/avr
mkdir avrgcc
bunzip2 gcc-4.5.1.tar.bz2
tar xvf gcc-4.5.1.tar
cd gcc-4.5.1
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-200-gcc-4.5.1-libiberty-Makefile.in
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-300-gcc-4.5.1-fixedpoint-3-4-2010
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-301-gcc-4.5.1-xmega-v14
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-302-gcc-4.5.1-avrtiny10
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-303-gcc-4.5.1-osmain
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-304-gcc-4.5.1-builtins-v6
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-305-gcc-4.5.1-avrtiny10-non-fixedpoint
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-306-gcc-4.5.1-option-list-devices
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-400-gcc-4.5.1-new-devices
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-401-gcc-4.5.1-atmega32_5_50_90_pa
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-402-gcc-4.5.1-attiny1634
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-403-gcc-4.5.1-atmega48pa
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-500-gcc-4.5.1-bug13473
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-501-gcc-4.5.1-bug13579
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-502-gcc-4.5.1-bug-18145-v4
patch -p0 <
/usr/src/gcc-4.5.1-patches/patch-503-gcc-4.5.1-avrtiny10-bug-12510
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-504-gcc-4.5.1-bug12915
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-505-gcc-4.5.1-bug13932
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-506-gcc-4.5.1-bug13789
patch -p0 < /usr/src/gcc-4.5.1-patches/patch-599-gcc-4.5.1-bug46779
cd ..
cd avrgcc
../gcc-4.5.1/configure --target=avr --prefix=$PREFIX --with-gnu-ld
--with-gnu-as --enable-languages="c,c++" --with-gmp=/usr/local
--with-mpfr=/usr/local --disable-nls --disable-libssp --with-dwarf2
make
make install
We download
http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.8.1.tar.bz2:
cd /usr/src/avr
bunzip2 avr-libc-1.8.1.tar.bz2
tar xvf avr-libc-1.8.1.tar
cd avr-libc-1.8.1
./configure --host=avr --prefix=$PREFIX --build=`./config.guess`
make
make install
- Re: [avr-gcc-list] AVR tool chain on MacOSX,
Andreas Höschler <=