Hi Johann, (I forgot I needed to click 'reply to all', which means you'll get this message twice; I'm sorry for the inconvenience - it's been a while since I posted on mailing-lists)
>> $SOURCEDIR/$GCC/configure --quiet --program-prefix=avr- --target= >$TARGET --prefix=$PREFIX ${WITH} $WITH_LOCAL_PREFIX --disable-nls -- >disable-shared --disable-threads --disable-libssp --with-gcc --with-gnu- >ld --with-gnu-as --with-dwarf2 --enable-languages=c,c++ >> make >> make install >> >> I've tried the following before compiling, but it makes no difference: >> ln -s "$BUILDDIR/gmp-$GMP_VERSION" "$BUILDDIR/gcc-$GCC_VERSION/gmp" >> ln -s "$BUILDDIR/mpfr-$MPFR_VERSION" "$BUILDDIR/gcc-$GCC_VERSION/mpfr" >> ln -s "$BUILDDIR/mpc-$MPC_VERSION" "$BUILDDIR/gcc-$GCC_VERSION/mpc" > >Don't do that. OK, I won't do that anymore. ;) Just a note: That was something I found on the net recently for a 4.5.3. >Completely remove you $BUILD directory, copy or soft-link gmp/mpc/mpfr into >toplevel GCC $SOURCE directory and try to re-configure and re-build again. > >That way the toplevel GCC configure machinery is used to configure/build >GMP/MPFR/MPC for your host/build setup. I have a bash-function, which (usually) does the following for GMP, MPFR and MPC; they're all treated the same way: # create build directory and cd into it... mkdir -p "$BUILDDIR/$NAME-$VERSION" cd "$BUILDDIR/$NAME-$VERSION" # configure and build library $SOURCEDIR/configure --quiet ABI=32 --prefix="/Users/toolchain/avr-toolchain/packages/gmp/usr/local/myPkg" $WITH make make install ln -s "$SOURCEDIR/$GMP" "$SOURCEDIR/$GCC/$NAME" export CFLAGS="$CFLAGS -I$SOURCEDIR/$NAME-$VERSION" export LDFLAGS="$LDFLAGS -L$PREFIX/lib" export LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH" WITH="$WITH --with-$NAME=$PREFIX" CC is set to "gcc -m32" $WITH adds the library's prefix path after it's compiled, so when GMP is compiled, MPFR gets a... --with-gmp=/Users/toolchain/avr-toolchain/packages/gmp/usr/local/myPkg $NAME is one of the following: gmp, mpfr or mpc $VERSION is one of the following: 5.0.2, 3.0.1 or 0.9 $GCC is for instance gcc-4.5.3 Note: Before every build, I remove the build directory and install directory, just to be sure that I get a clean install. Now and then I even remove the source directory as well. (I don't even use make clean here; learned from experience). However, that doesn't work either. Are my CFLAGS, LDFLAGS and LD_LIBRARY_PATHs correct ? As far as I understand, when reading <http://gcc.gnu.org/install/configure.html>, the --with-(library)= should be set to the path of the installed gmp/mpfr/mpc. Is this setting correct ? Love, Jens _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list