Setting up AVR tool chain on Solaris

Andreas Höschler <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
Hi all,

I am following 

	http://www.ladyada.net/learn/avr/setup-unix.html

to setup the AVR tool chain on a Solaris 10 box (Intel). So far I did

We download http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz:

	cd /usr/src
	mkdir avr
	cd avr
	scp [email protected]:/home/ahoesch/Downloads/binutils-2.24.tar.gz .
	gunzip binutils-2.24.tar.gz
	tar xvf binutils-2.24.tar
	cd binutils-2.24
	./configure --target=avr --program-prefix="avr-"
	make
	make install

We download http://gcc.cybermirror.org/releases/gcc-4.2.0/gcc-4.2.0.tar.bz2:

	cd /usr/src/avr
	mkdir avrgcc
	scp [email protected]:/home/ahoesch/Downloads/gcc-4.2.0.tar.bz2 .
	bunzip2 gcc-3.4.4.tar.bz2
	gtar xvf gcc-3.4.4.tar
	cd avrgcc
	../gcc-3.4.4/configure  --with-ar=/usr/local/bin/avr-ar --with-as=/usr/local/bin/avr-as --with-ld=/usr/local/bin/avr-ld --target=avr --enable-languages=c --disable-libssp --disable-nls --disable-libgcj 
	make

Installing binutils worked. However, when I try to build gcc I get

********************************************************************************************
config.status: executing default commands
make[1]: Entering directory `/usr/share/src/avr/avrgcc/libiberty'
rm -f needed-list; touch needed-list; \
        for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
          for g in mempcpy.o mkstemps.o sigsetmask.o stpcpy.o stpncpy.o ; do \
            case "$g" in \
              *$f*) echo $g >> needed-list ;; \
            esac; \
          done; \
        done
echo regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o alloca.o argv.o choose-temp.o concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o lrealpath.o make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o physmem.o pex-unix.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o > required-list
make[2]: Entering directory `/usr/share/src/avr/avrgcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/share/src/avr/avrgcc/libiberty/testsuite'
make[1]: Leaving directory `/usr/share/src/avr/avrgcc/libiberty'
make[1]: Entering directory `/usr/share/src/avr/avrgcc/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/share/src/avr/avrgcc/intl'
make[1]: Entering directory `/usr/share/src/avr/avrgcc/gcc'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory `/usr/share/src/avr/avrgcc/gcc'
make: *** [all-gcc] Error 2
********************************************************************************************

Any idea?

Thanks a lot,

 Andreas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.