lol
at 18.03-beta 74 lines 2.9 kB view raw
1{ fetchurl, stdenv, ppl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "cloog-ppl-0.15.11"; 5 6 src = fetchurl { 7 url = "mirror://gcc/infrastructure/${name}.tar.gz"; 8 sha256 = "0psdm0bn5gx60glfh955x5b3b23zqrd92idmjr0b00dlnb839mkw"; 9 }; 10 11 propagatedBuildInputs = [ ppl ]; 12 13 nativeBuildInputs = [ autoreconfHook ]; 14 15 patches = [ ./fix-ppl-version.patch ]; 16 17 configureFlags = "--with-ppl=${ppl}"; 18 19 preAutoreconf = '' 20 touch NEWS ChangeLog AUTHORS 21 ''; 22 23 crossAttrs = { 24 configureFlags = "--with-ppl=${ppl.crossDrv}"; 25 }; 26 27 doCheck = true; 28 29 meta = { 30 description = "CLooG-PPL, the Chunky Loop Generator"; 31 32 longDescription = '' 33 CLooG is a free software library to generate code for scanning 34 Z-polyhedra. That is, it finds a code (e.g., in C, FORTRAN...) that 35 reaches each integral point of one or more parameterized polyhedra. 36 CLooG has been originally written to solve the code generation problem 37 for optimizing compilers based on the polytope model. Nevertheless it 38 is used now in various area e.g., to build control automata for 39 high-level synthesis or to find the best polynomial approximation of a 40 function. CLooG may help in any situation where scanning polyhedra 41 matters. While the user has full control on generated code quality, 42 CLooG is designed to avoid control overhead and to produce a very 43 effective code. 44 ''; 45 46 # CLooG-PPL is actually a port of GLooG from PolyLib to PPL. 47 homepage = http://www.cloog.org/; 48 49 license = stdenv.lib.licenses.gpl2Plus; 50 51 maintainers = [ ]; 52 53 /* Leads to an ICE on Cygwin: 54 55 make[3]: Entering directory `/tmp/nix-build-9q5gw5m37q5l4f0kjfv9ar8fsc9plk27-ppl-0.10.2.drv-1/ppl-0.10.2/src' 56 /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 57 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 58 In file included from checked.defs.hh:595, 59 from Checked_Number.defs.hh:27, 60 from Coefficient.types.hh:15, 61 from Coefficient.defs.hh:26, 62 from Box.defs.hh:28, 63 from Box.cc:24: 64 checked.inlines.hh: In function `Parma_Polyhedra_Library::Result Parma_Polyhedra_Library::Checked::input_generic(Type&, std::istream&, Parma_Polyhedra_Library::Rounding_Dir)': 65 checked.inlines.hh:607: internal compiler error: in invert_truthvalue, at fold-const.c:2719 66 Please submit a full bug report, 67 with preprocessed source if appropriate. 68 See <URL:http://cygwin.com/problems.html> for instructions. 69 make[3]: *** [Box.lo] Error 1 70 71 */ 72 platforms = with stdenv.lib.platforms; allBut cygwin; 73 }; 74}