> "Dennis Clarke" <dclarke@xxxxxxxxxxxxx> writes: > >> /home/dclarke/local/powerpc-unknown-linux-gnu/sys-include accepts -g... no >> checking whether the GNU Fortran compiler is working... no >> configure: error: GNU Fortran is not working; the most common reason for >> that is that you might have linked it to shared GMP and/or MPFR libraries, >> and not set LD_LIBRARY_PATH accordingly. If you suspect any other reason, >> please report a bug in http://gcc.gnu.org/bugzilla, attaching >> /home/dclarke/build/first_pass/gcc/gcc-4.2.3-build/powerpc-unknown-linux-gnu/libgfortran/config.log > > There you go: set LD_LIBRARY_PATH to work around this, but even better > is to use static gmp and mpfr libraries. > > >> Should I just set LD_LIBRARY_PATH=$HOME/local/lib ?? > > That will probably work too. > nope ... my third ( or fourth .. I lost count ) attempt failed also, despite having LD_LIBRARY_PATH set as above. Same error. The other idea on the table is : > You will do better to use --disable-shared when you configure gmp and > mpfr. Using the shared libraries means that you need to ensure that > gcc can find them at runtime, and that typically requires setting > LD_LIBRARY_PATH. So now I'll go back and rebuild gmp and mpfr with --disable-shared and then try GCC 4.2.3 again. That should take a day or so. Stay tuned for futher fun with embedded PowerPC systems :-) Dennis Clarke