version up : gmp-6.0.0a still keeping gmp-4 for gcc.
[slapos.git] / component / gcc / buildout.cfg
1 # GNU C Compiler
2 # Mostly required to support languages different than C or C++
3 [buildout]
4 extends =
5   ../m4/buildout.cfg
6   ../gmp/buildout.cfg
7   ../zip/buildout.cfg
8
9 parts =
10   gcc
11
12 [mpfr]
13 recipe = slapos.recipe.cmmi
14 url = http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2
15 md5sum = bfbecb2eacb6d48432ead5cfc3f7390a
16 configure-options =
17   --with-gmp=${gmp-4:location}
18   --disable-static
19 environment =
20   LDFLAGS=-Wl,-rpath=${gmp-4:location}/lib
21
22 [mpc]
23 recipe = slapos.recipe.cmmi
24 url = http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
25 md5sum = 0d6acab8d214bd7d1fbbc593e83dd00d
26 configure-options =
27   --with-gmp=${gmp-4:location}
28   --with-mpfr=${mpfr:location}
29   --disable-static
30 environment =
31   LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp-4:location}/lib
32
33 [ppl]
34 recipe = slapos.recipe.cmmi
35 # we should use version 0.10.x for gcc-4.5
36 url = http://bugseng.com/products/ppl/download/ftp/releases/0.10.2/ppl-0.10.2.tar.bz2
37 md5sum = 5667111f53150618b0fa522ffc53fc3e
38 configure-options =
39   --with-libgmp-prefix=${gmp-4:location}
40   --with-libgmpxx-prefix=${gmp-4:location}
41   --disable-static
42 environment =
43   PATH=${m4:location}/bin:%(PATH)s
44   LDFLAGS=-Wl,-rpath=${gmp-4:location}/lib
45
46 [cloog-ppl]
47 recipe = slapos.recipe.cmmi
48 url = ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.9.tar.gz
49 md5sum = 806e001d1b1a6b130069ff6274900af5
50 configure-options =
51   --with-gmp=${gmp-4:location}
52   --with-ppl=${ppl:location}
53   --disable-static
54 environment =
55   PATH=${m4:location}/bin:%(PATH)s
56   LDFLAGS=-Wl,-rpath=${gmp-4:location}/lib -Wl,-rpath=${ppl:location}/lib
57
58 [gcc-download]
59 hack-revision = ${gcc-interconnection-workaround:hack-revision}
60 recipe = hexagonit.recipe.download
61 url = http://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2
62 md5sum = 8e0b5c12212e185f3e4383106bfa9cc6
63 strip-top-level-dir = True
64 destination = ${gcc-source:location}
65
66 [gcc-source]
67 hack-revision = ${gcc-interconnection-workaround:hack-revision}
68 location = ${buildout:parts-directory}/${:_buildout_section_name_}
69
70 [gcc-multiarch.patch]
71 recipe = hexagonit.recipe.download
72 md5sum = 819e6735270c8a432b0512b49f40219f
73 url = ${:_profile_base_location_}/${:filename}
74 filename = ${:_buildout_section_name_}
75 download-only = true
76
77 [gcc]
78 hack-revision = ${gcc-interconnection-workaround:hack-revision}
79 depends =
80   ${gcc-download:location}
81 recipe = slapos.recipe.cmmi
82 path = ${gcc-source:location}
83 md5sum = bb3265edf0fa7543e50cedb93e04e427
84 patches =
85   ${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
86 patch-options = -p2
87 configure-command = make clean \\; make distclean \\; ./configure
88 configure-options =
89   --disable-bootstrap
90   --enable-languages="c,c++"
91   --disable-multilib
92   --with-gmp=${gmp-4:location}
93   --with-mpfr=${mpfr:location}
94   --with-mpc=${mpc:location}
95   --with-ppl=${ppl:location}
96   --with-cloog=${cloog-ppl:location}
97   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
98 environment =
99   LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp-4:location}/lib -Wl,-rpath=${mpc:location}/lib -Wl,-rpath=${ppl:location}/lib -Wl,-rpath=${cloog-ppl:location}/lib
100 # make install does not work when several core are used
101 make-targets = install -j1
102
103 [gcc-minimal]
104 recipe = slapos.recipe.cmmi
105 url = http://ftp.gnu.org/gnu/gcc/gcc-4.5.4/gcc-core-4.5.4.tar.bz2
106 md5sum = ca62e442629a9a7710f5d797bf1b521c
107 patches =
108   ${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
109 patch-options = -p2
110 configure-options =
111   --disable-bootstrap
112   --enable-languages=c
113   --disable-multilib
114   --with-gmp=${gmp-4:location}
115   --with-mpfr=${mpfr:location}
116   --with-mpc=${mpc:location}
117   --without-ppl
118   --without-cloog
119 environment =
120   LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp-4:location}/lib -Wl,-rpath=${mpc:location}/lib
121 # make install does not work when several core are used
122 make-targets = install -j1
123
124 [gcc-interconnection-workaround]
125 # gcc parts are interconnected, so buildout is not capable to clean them up
126 # until gcc will be simplified by using more robust build recipe (like
127 # slapos.recipe.build) each time any of parts which reuses this one gets updated
128 # the hack-revision have to be increased
129 hack-revision = 2