Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Restructuring the bootstrap (or: getting rid of gcc 4.2)
Date: Mon, 03 Feb 2014 09:16:19
Message-Id: 20140203091609.GD6439@gentoo.org
In Reply to: Re: [gentoo-alt] Restructuring the bootstrap (or: getting rid of gcc 4.2) by Fabian Groffen
1 On 02-02-2014 20:35:28 +0100, Fabian Groffen wrote:
2 > Let me see if I can build latest gcc on Solaris for you on a vanilla
3 > system.
4
5 On an OpenIndiana box (that already comes with a more decent toolchain
6 than e.g. Solaris 10):
7
8 [ra:/export/gentoo/temp]64 % uname -a
9 SunOS ra 5.11 oi_151a7 i86pc i386 i86pc Solaris
10 [ra:/export/gentoo/temp]64 % tar -jxf
11 /export/gentoo/distfiles/gcc-4.7.3.tar.bz2
12 [ra:/export/gentoo/temp]64 % env -i /bin/bash -l
13 bash: keychain: command not found
14 bash-4.0$ pwd
15 /export/gentoo/temp
16 bash-4.0$ cd gcc-4.7.3/
17 bash-4.0$ ./configure
18 checking build system type... i386-pc-solaris2.11
19 checking host system type... i386-pc-solaris2.11
20 checking target system type... i386-pc-solaris2.11
21 checking for a BSD-compatible install... /bin/ginstall -c
22 checking whether ln works... yes
23 checking whether ln -s works... yes
24 checking for a sed that does not truncate output... /usr/gnu/bin/sed
25 checking for gawk... gawk
26 checking for libitm support... yes
27 checking for gcc... gcc
28 checking for C compiler default output file name... a.out
29 checking whether the C compiler works... yes
30 checking for suffix of object files... o
31 checking whether we are using the GNU C compiler... yes
32 checking whether gcc accepts -g... yes
33 checking for gcc option to accept ISO C89... none needed
34 checking for g++... g++
35 checking whether we are using the GNU C++ compiler... yes
36 checking whether g++ accepts -g... yes
37 checking for gnatbind... no
38 checking for gnatmake... no
39 checking whether compiler driver understands Ada... no
40 checking how to compare bootstrapped objects... cmp --ignore-initial=16
41 $$f1 $$f2
42 checking for objdir... .libs
43 checking for the correct version of gmp.h... no
44 configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC
45 0.8.0+.
46 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
47 their locations. Source code for these libraries can be found at
48 their respective hosting sites as well as at
49 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
50 http://gcc.gnu.org/install/prerequisites.html for additional info. If
51 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
52 make sure that you have installed both the libraries and the header
53 files. They may be located in separate packages.
54
55 Basically the journey already ends here.
56
57 I went a bit through gmp and mpfr, but they depend on eachother, and
58 this is basically where the bootstrap process is carefully crafted the
59 way it is, because stuff depends on stuff and gmp for instance compiles,
60 but creates a 64-bits library (for some reason), while plain invoked
61 configure for gcc will target a 32-bits compiler, so it will break down
62 the line.
63
64 Fabian
65
66
67 --
68 Fabian Groffen
69 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies