nixpkgs/pkgs/development/libraries/gsl/gsl-1_16.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

{ fetchurl, fetchpatch, lib, stdenv }:
stdenv.mkDerivation rec {
name = "gsl-1.16";
src = fetchurl {
url = "mirror://gnu/gsl/${name}.tar.gz";
sha256 = "0lrgipi0z6559jqh82yx8n4xgnxkhzj46v96dl77hahdp58jzg3k";
};
# do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html)
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma";
patches = [
(fetchpatch {
name = "bug-39055.patch";
url = "https://git.savannah.gnu.org/cgit/gsl.git/patch/?id=9cc12d";
sha256 = "1bmrmihi28cly9g9pq54kkix2jy59y7cd7h5fw4v1c7h5rc2qvs8";
})
];
doCheck = true;
meta = {
description = "The GNU Scientific Library, a large numerical library";
homepage = "https://www.gnu.org/software/gsl/";
license = lib.licenses.gpl3Plus;
longDescription = ''
The GNU Scientific Library (GSL) is a numerical library for C
and C++ programmers. It is free software under the GNU General
Public License.
The library provides a wide range of mathematical routines such
as random number generators, special functions and least-squares
fitting. There are over 1000 functions in total with an
extensive test suite.
'';
platforms = lib.platforms.unix;
gsl_1: Disables build on aarch64-linux * https://hydra.nixos.org/build/84910540 ``` Making check in eigen make[1]: Entering directory '/build/gsl-1.16/eigen' make test make[2]: Entering directory '/build/gsl-1.16/eigen' gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -c test.c /nix/store/bsb6596kk4fp20hyl9yl55xwv1ax4b6s-bash-4.4-p23/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o test test.o libgsleigen.la ../test/libgsltest.la ../linalg/libgsllinalg.la ../permutation/libgslpermutation.la ../blas/libgslblas.la ../cblas/libgslcblas.la ../matrix/libgslmatrix.la ../vector/libgslvector.la ../block/libgslblock.la ../complex/libgslcomplex.la ../ieee-utils/libgslieeeutils.la ../sys/libgslsys.la ../err/libgslerr.la ../utils/libutils.la ../rng/libgslrng.la ../sort/libgslsort.la -lm libtool: link: gcc -g -O2 -o .libs/test test.o ./.libs/libgsleigen.a ../test/.libs/libgsltest.a ../linalg/.libs/libgsllinalg.a ../permutation/.libs/libgslpermutation.a ../blas/.libs/libgslblas.a ../cblas/.libs/libgslcblas.so ../matrix/.libs/libgslmatrix.a ../vector/.libs/libgslvector.a ../block/.libs/libgslblock.a ../complex/.libs/libgslcomplex.a ../ieee-utils/.libs/libgslieeeutils.a ../sys/.libs/libgslsys.a ../err/.libs/libgslerr.a ../utils/.libs/libutils.a ../rng/.libs/libgslrng.a ../sort/.libs/libgslsort.a -lm -Wl,-rpath -Wl,/nix/store/rz7sjaxwm3qf6nk9kk90v1qf81y1s62v-gsl-1.16/lib make[2]: Leaving directory '/build/gsl-1.16/eigen' make check-TESTS make[2]: Entering directory '/build/gsl-1.16/eigen' make[3]: Entering directory '/build/gsl-1.16/eigen' FAIL: test make[4]: Entering directory '/build/gsl-1.16/eigen' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/build/gsl-1.16/eigen' ==================================== gsl 1.16: eigen/test-suite.log ==================================== .. contents:: :depth: 2 FAIL: test ========== FAIL: herm random, normalized(1), unsorted (0.999999999999999112 observed vs 1 expected) [117761] FAIL: herm random, normalized(2), val/asc (0.999999999999999112 observed vs 1 expected) [117789] FAIL: herm random, normalized(0), val/desc (0.999999999999999112 observed vs 1 expected) [117811] FAIL: herm random, normalized(1), abs/asc (0.999999999999999112 observed vs 1 expected) [117836] FAIL: herm random, normalized(1), abs/desc (0.999999999999999112 observed vs 1 expected) [117860] ```
2018-12-09 22:04:38 +00:00
# Failing "eigen" tests on aarch64.
badPlatforms = [ "aarch64-linux" ];
};
}