2016-01-18 02:04:40 +03:00
|
|
|
{ fetchurl, stdenv, ppl, autoreconfHook }:
|
2010-08-05 17:21:29 +04:00
|
|
|
|
2009-07-19 01:28:10 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2011-04-06 09:21:05 +04:00
|
|
|
name = "cloog-ppl-0.15.11";
|
2009-07-19 01:28:10 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gcc/infrastructure/${name}.tar.gz";
|
2011-04-06 09:21:05 +04:00
|
|
|
sha256 = "0psdm0bn5gx60glfh955x5b3b23zqrd92idmjr0b00dlnb839mkw";
|
2009-07-19 01:28:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ppl ];
|
|
|
|
|
2016-01-18 02:04:40 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2014-04-13 15:46:23 +04:00
|
|
|
|
|
|
|
patches = [ ./fix-ppl-version.patch ];
|
|
|
|
|
2011-12-14 18:31:56 +04:00
|
|
|
configureFlags = "--with-ppl=${ppl}";
|
2009-07-19 01:28:10 +04:00
|
|
|
|
2016-01-18 02:04:40 +03:00
|
|
|
preAutoreconf = ''
|
2014-04-13 15:46:23 +04:00
|
|
|
touch NEWS ChangeLog AUTHORS
|
|
|
|
'';
|
|
|
|
|
2010-08-02 01:21:26 +04:00
|
|
|
crossAttrs = {
|
2012-12-28 22:08:19 +04:00
|
|
|
configureFlags = "--with-ppl=${ppl.crossDrv}";
|
2010-08-02 01:21:26 +04:00
|
|
|
};
|
|
|
|
|
2009-07-19 01:28:10 +04:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "CLooG-PPL, the Chunky Loop Generator";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
CLooG is a free software library to generate code for scanning
|
|
|
|
Z-polyhedra. That is, it finds a code (e.g., in C, FORTRAN...) that
|
|
|
|
reaches each integral point of one or more parameterized polyhedra.
|
|
|
|
CLooG has been originally written to solve the code generation problem
|
|
|
|
for optimizing compilers based on the polytope model. Nevertheless it
|
|
|
|
is used now in various area e.g., to build control automata for
|
|
|
|
high-level synthesis or to find the best polynomial approximation of a
|
|
|
|
function. CLooG may help in any situation where scanning polyhedra
|
|
|
|
matters. While the user has full control on generated code quality,
|
|
|
|
CLooG is designed to avoid control overhead and to produce a very
|
|
|
|
effective code.
|
|
|
|
'';
|
|
|
|
|
|
|
|
# CLooG-PPL is actually a port of GLooG from PolyLib to PPL.
|
|
|
|
homepage = http://www.cloog.org/;
|
|
|
|
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-07-19 01:28:10 +04:00
|
|
|
|
2013-08-17 01:44:33 +04:00
|
|
|
maintainers = [ ];
|
2009-09-17 14:16:21 +04:00
|
|
|
|
|
|
|
/* Leads to an ICE on Cygwin:
|
|
|
|
|
|
|
|
make[3]: Entering directory `/tmp/nix-build-9q5gw5m37q5l4f0kjfv9ar8fsc9plk27-ppl-0.10.2.drv-1/ppl-0.10.2/src'
|
|
|
|
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O2 -frounding-math -W -Wall -c -o Box.lo Box.cc
|
|
|
|
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -g -O2 -frounding-math -W -Wall -c Box.cc -DDLL_EXPORT -DPIC -o .libs/Box.o
|
|
|
|
In file included from checked.defs.hh:595,
|
|
|
|
from Checked_Number.defs.hh:27,
|
|
|
|
from Coefficient.types.hh:15,
|
|
|
|
from Coefficient.defs.hh:26,
|
|
|
|
from Box.defs.hh:28,
|
|
|
|
from Box.cc:24:
|
|
|
|
checked.inlines.hh: In function `Parma_Polyhedra_Library::Result Parma_Polyhedra_Library::Checked::input_generic(Type&, std::istream&, Parma_Polyhedra_Library::Rounding_Dir)':
|
|
|
|
checked.inlines.hh:607: internal compiler error: in invert_truthvalue, at fold-const.c:2719
|
|
|
|
Please submit a full bug report,
|
|
|
|
with preprocessed source if appropriate.
|
|
|
|
See <URL:http://cygwin.com/problems.html> for instructions.
|
|
|
|
make[3]: *** [Box.lo] Error 1
|
|
|
|
|
|
|
|
*/
|
2014-08-09 14:28:16 +04:00
|
|
|
platforms = with stdenv.lib.platforms; allBut cygwin;
|
2009-07-19 01:28:10 +04:00
|
|
|
};
|
|
|
|
}
|