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