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: compile problems with gcc 4.5.0


Hi all,

I tried to compile the gcc 4.5.0 version, but got errors with gmp :-(

Jonathan Wakely <jwakely.gcc@gmail.com> wrote
> See http://gcc.gnu.org/install/configure.html
> Building in a sub-directory of the source directory is not supported.
> 

I did the same in gcc-4.5.0 directory and also in an build subdirectory.
The error the same!

------

Original message postet to gcc.gnu.org :

I did:


krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../gmp-5.0.1/ ./gmp
krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpfr-2.4.2/ ./mpfr
krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpc-0.8.1/ ./mpc
krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../ppl-0.10.2/ ./ppl
krud@mauersegler:~/work/gcc-4.5.0$ mkdir build_linux
krud@mauersegler:~/work/gcc-4.5.0$ cd build_linux/
krud@mauersegler:~/work/gcc-4.5.0/build_linux$ ../configure --prefix=/opt/linux --enable-languages=c,c++

And got:

...
hecking whether fmal is declared... yes
checking whether rintf is declared... yes
checking whether rintl is declared... yes
checking for int_fast16_t... yes
checking for int_fast32_t... yes
checking for int_fast64_t... yes
checking for uint_fast16_t... yes
checking for uint_fast32_t... yes
checking for uint_fast64_t... yes
checking for ld used by GCC... /opt/linux/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld
checking if the linker (/opt/linux/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to link with libgmp... -lgmp
checking how to link with libgmpxx... -lgmpxx -lgmp
checking for the GMP library version 4.1.3 or above... no
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.
make[2]: *** [configure-stage1-ppl] Fehler 1
make[2]: Verlasse Verzeichnis '/home/krud/work/gcc-4.5.0/build_linux'
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verlasse Verzeichnis '/home/krud/work/gcc-4.5.0/build_linux'
make: *** [all] Fehler 2


I also copied gmp-4.3.1 to the gcc path but got the same results.

How can I proceed here?

Thanks
 Klaus
-------- Original-Nachricht --------
> Datum: Mon, 3 May 2010 13:43:34 +0100
> Von: Jonathan Wakely <jwakely.gcc@gmail.com>
> An: Klaus Rudolph <lts-rudolph@gmx.de>
> CC: gcc@gcc.gnu.org
> Betreff: Re: compile problems with gcc 4.5.0

> On 3 May 2010 10:43, Klaus Rudolph wrote:
> > Hi all,
> >
> > I tried to compile the gcc 4.5.0 version, but got errors with gmp :-(
> 
> Hi,
> this question is not appropriate on this mailing list, which is for
> discussing development of gcc, please take any further questions about
> building or using gcc to the gcc-help mailing list, thanks.
> 
> > I did:
> >
> >
> > krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../gmp-5.0.1/ ./gmp
> > krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpfr-2.4.2/ ./mpfr
> > krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../mpc-0.8.1/ ./mpc
> > krud@mauersegler:~/work/gcc-4.5.0$ cp -pr ../ppl-0.10.2/ ./ppl
> 
> You don't need to copy the sources, a symlink will do.
> 
> > krud@mauersegler:~/work/gcc-4.5.0$ mkdir build_linux
> > krud@mauersegler:~/work/gcc-4.5.0$ cd build_linux/
> > krud@mauersegler:~/work/gcc-4.5.0/build_linux$ ../configure
> --prefix=/opt/linux --enable-languages=c,c++
> 
> See http://gcc.gnu.org/install/configure.html
> Building in a sub-directory of the source directory is not supported.
> 
> Jonathan

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


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