Hello David,
the following versions of the libraries you have mentioned are already installed:
avr-libc (1.6.1-55.3),
avrdude (5.5-112.3),
cross-avr-binutils (2.19.51-11.26.2)
Installing the gcc:
wget http://ftp.gnu.org/gnu/gcc/gcc-4.3.4/gcc-4.3.4.tar.gz
tar xzvf gcc-4.3.4.tar.gz
cd gcc-4.3.4
mkdir obj
cd obj
was OK, without problems (well, I used http://ftp... instead of ftp://ftp...)
But
../configure --prefix=/opt/cross --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp
gives the following protocol:
###BEGIN PROTOCOL###
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... avr-unknown-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... no
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
###END PROTOCOL###
I guess the main-problem is, as you already mentioned, the gmp and mpfr:
"Building GCC requires GMP 4.1+ and MPFR 2.3.0+"
So I checked whether they are installed. Well... it might be the same problem as with the gcc. Means: Both, GMP and MPFR are already installed on my system, but maybe the wrong version.
GMP (4.3.1-2.2) and
MPFR (2.4.1-3.2)
When I try to operate the configure-command expanded by the "--with-mpfr" and the "--with-gmp" options, as suggested in the protocol:
../configure --prefix=/opt/cross --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-gmp=/usr/lib64 --with-mpfr=/usr/lib64
in order to inform the configure-command about the location of this libraries, the new protocol is nearly the same:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... avr-unknown-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
I guess now you'll ask me to download the source-code of the correct versions and to compile and build them in order to get the libgmp.a, libgmp.so and the libgmpxx.so and so on....
Well, I tried it already... without success. I'm not an expert in compiling, building and making of system-libraries and so I'm not able to interpret the amount of error-messages which I get from the make-process. (I'd love to be such an expert, but not yet. I'm working on it) :-(((
What I also tried was to copy the mpfr.h from the source-code-directory of gmp to the /usr/include directory and directly to the new created gcc-4.1.3/obj-dir (from where the configure-process is to be started). Without success.
Theres no happy-hacking at all
Don't you have an idea how I can get the arduino-software started without reprogramming all the software of my system ? For example: Isn't it possible for you to send me the following versions (of your system) of the following files, in order to copy them into my gcc../obj- directory before running the configure-command:
GMP:
gmp.h
gmpxx.h
libgmp.a
libgmp.so
libgmpxx.so
MPFR:
mpfr.h
libmpfr.so.1
libmpfr.so.1.2.0
Well, maybe that could be something like a workaround... But therefore at least all the other messages in the protocol should be also fixed... cross-compiling ? gnatbind ? gnatmake ?
I pray to god that you have an Idea... otherwise I guess the Arduino-SUSE11.2-project has to be canceled
Thanks in advance and a virtual box of 20 bottles of fine german beer for you
Greets, Rafa