buildout.cfg 4.57 KB
Newer Older
1
# GNU C Compiler
Marco Mariani's avatar
Marco Mariani committed
2
# Mostly required to support languages different than C or C++
3 4
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
5
  ../m4/buildout.cfg
6
  ../gmp/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
7
  ../zip/buildout.cfg
8 9

parts =
10
  gcc
11 12

[mpfr]
13
recipe = slapos.recipe.cmmi
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
14 15
url = http://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.bz2
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 25 26
url = http://www.multiprecision.org/mpc/download/mpc-0.9.tar.gz
md5sum = 0d6acab8d214bd7d1fbbc593e83dd00d
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 36 37
# we should use version 0.11.x for gcc-4.7
url = http://bugseng.com/external/ppl/download/ftp/releases/0.11/ppl-0.11.tar.bz2
md5sum = c414abd2ecaf1f1f48949c78d383ee1a
38
configure-options =
39 40
  --with-gmp=${gmp-4:location}
  --with-gmp-prefix=${gmp-4:location}
41 42 43
  --disable-static
environment =
  PATH=${m4:location}/bin:%(PATH)s
44
  LDFLAGS=-Wl,-rpath=${gmp-4:location}/lib
45 46
  CXXFLAGS=-fpermissive

47 48

[cloog-ppl]
49
recipe = slapos.recipe.cmmi
50 51
url = ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.16.1.tar.gz
md5sum = 947123350d1ff6dcb4b0774947ac015a
52
configure-options =
53
  --with-gmp-prefix=${gmp-4:location}
54 55 56 57
  --with-ppl=${ppl:location}
  --disable-static
environment =
  PATH=${m4:location}/bin:%(PATH)s
58
  LDFLAGS=-Wl,-rpath=${gmp-4:location}/lib -Wl,-rpath=${ppl:location}/lib
59 60

[gcc-download]
61
hack-revision = ${gcc-interconnection-workaround:hack-revision}
62
recipe = hexagonit.recipe.download
63 64
url = http://ftp.gnu.org/gnu/gcc/gcc-4.7.3/gcc-4.7.3.tar.bz2
md5sum = 86f428a30379bdee0224e353ee2f999e
65
strip-top-level-dir = True
66
destination = ${gcc-source:location}
67

68
[gcc-source]
69
hack-revision = ${gcc-interconnection-workaround:hack-revision}
70 71
location = ${buildout:parts-directory}/${:_buildout_section_name_}

72
[gcc]
73
hack-revision = ${gcc-interconnection-workaround:hack-revision}
74 75
depends =
  ${gcc-download:location}
76
recipe = slapos.recipe.cmmi
77
path = ${gcc-source:location}
78 79 80 81
md5sum = bb3265edf0fa7543e50cedb93e04e427
configure-command = make clean \\; make distclean \\; ./configure
configure-options =
  --disable-bootstrap
Sebastien Robin's avatar
Sebastien Robin committed
82
  --enable-languages="c,c++"
83
  --disable-multilib
84
  --with-gmp=${gmp-4:location}
85 86
  --with-mpfr=${mpfr:location}
  --with-mpc=${mpc:location}
87 88
  --with-ppl=${ppl:location}
  --with-cloog=${cloog-ppl:location}
89
  --enable-cloog-backend=isl
90 91
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
environment =
92
  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
93 94 95 96 97
# make install does not work when several core are used
make-targets = install -j1

[gcc-minimal]
recipe = slapos.recipe.cmmi
98 99
url = http://ftp.gnu.org/gnu/gcc/gcc-4.7.3/gcc-4.7.3.tar.bz2
md5sum = 86f428a30379bdee0224e353ee2f999e
100 101 102 103
configure-options =
  --disable-bootstrap
  --enable-languages=c
  --disable-multilib
104
  --with-gmp=${gmp-4:location}
105 106 107 108 109
  --with-mpfr=${mpfr:location}
  --with-mpc=${mpc:location}
  --without-ppl
  --without-cloog
environment =
110
  LDFLAGS=-Wl,-rpath=${mpfr:location}/lib -Wl,-rpath=${gmp-4:location}/lib -Wl,-rpath=${mpc:location}/lib
111 112
# make install does not work when several core are used
make-targets = install -j1
113

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
[gcc-fortran]
hack-revision = ${gcc-interconnection-workaround:hack-revision}
depends =
  ${gcc-download:location}
recipe = slapos.recipe.cmmi
path = ${gcc-source:location}
md5sum = bb3265edf0fa7543e50cedb93e04e427
configure-command = make clean \\; make distclean \\; ./configure
configure-options =
  --disable-bootstrap
  --enable-languages="c,c++,fortran"
  --disable-multilib
  --with-gmp=${gmp-4:location}
  --with-mpfr=${mpfr:location}
  --with-mpc=${mpc:location}
  --with-ppl=${ppl:location}
  --with-cloog=${cloog-ppl:location}
  --enable-cloog-backend=isl
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
environment =
  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
# make install does not work when several core are used
make-targets = install -j1

138 139 140 141 142
[gcc-interconnection-workaround]
# gcc parts are interconnected, so buildout is not capable to clean them up
# until gcc will be simplified by using more robust build recipe (like
# slapos.recipe.build) each time any of parts which reuses this one gets updated
# the hack-revision have to be increased
143
hack-revision = 2