This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: completely unable to get Gcc 4.4.5 to build with local Gmp/Mpfr


Hey

I would reccomend doing:

$ wget -c ftp://ftp.gmplib.org/pub/gmp-5.0.1/gmp-5.0.1.tar.bz2
$ tar jxvf gmp-5.0.1.tar.bz2
$ cd gmp
$ ./configure --prefix=$HOME/lib
$ make
$ make install
$ cd ../

$ wget -c http://www.mpfr.org/mpfr-current/mpfr-3.0.0.tar.bz2
$ tar jxvf ....
$ CFLAGS="$CFLAGS -I$HOME/lib/include -L$HOME/lib/lib"
$ ./configure --prefix=$HOME/lib
... That should hopefully work if not i will test it out

Get the gcc sources:

$ wget -c ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.4.5/gcc-4.4.5.tar.bz2
$ tar jxvf gcc-4.4.5.tar.bz2
$ mkdir gcc-build
$ cd gcc-build
$ ../gcc-4.4.5/configure --with-gmp-include=$HOME/lib/include
--with-gmp-lib=$HOME/lib/lib --with-mpfr-include=$HOME/lib/include
--with-mpfr-lib=$HOME/lib/lib
$ make

And see what happens. I know you can chuck the gmp and mpfr sources
into the gcc dir but the gcc build system is sometimes picky :)

--Phil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]