{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8614","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8614/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8614/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/8614/events","html_url":"https://github.com/NixOS/nixpkgs/issues/8614","id":92782217,"number":8614,"title":"openblas fails to compile","user":{"login":"cheecheeo","id":175882,"avatar_url":"https://avatars.githubusercontent.com/u/175882?v=3","gravatar_id":"","url":"https://api.github.com/users/cheecheeo","html_url":"https://github.com/cheecheeo","followers_url":"https://api.github.com/users/cheecheeo/followers","following_url":"https://api.github.com/users/cheecheeo/following{/other_user}","gists_url":"https://api.github.com/users/cheecheeo/gists{/gist_id}","starred_url":"https://api.github.com/users/cheecheeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheecheeo/subscriptions","organizations_url":"https://api.github.com/users/cheecheeo/orgs","repos_url":"https://api.github.com/users/cheecheeo/repos","events_url":"https://api.github.com/users/cheecheeo/events{/privacy}","received_events_url":"https://api.github.com/users/cheecheeo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-03T03:24:38Z","updated_at":"2015-08-28T23:30:29Z","closed_at":"2015-08-28T23:30:29Z","body":"When I try to install openblas I get following failure:\r\n\r\n```\r\njchee@gratia:~/packages/dotfiles$ nix-env --file $NIXPKGS -iA 'openblas'\r\ninstalling ‘openblas-0.2.14’\r\nthese derivations will be built:\r\n  /nix/store/a81xdwfxryp00y10imv6gfmp110l264d-openblas-0.2.14.drv\r\nbuilding path(s) ‘/nix/store/s9ciyzk69jrh5rcccxqkqd6kmmqi1wph-openblas-0.2.14’\r\nunpacking sources\r\nunpacking source archive /nix/store/arpi0lqjwfaj4xg4yfri16w0s3jvp53q-openblas-0.2.14.tar.gz\r\nsource root is xianyi-OpenBLAS-2b0d8a8\r\npatching sources\r\nconfiguring\r\nno configure script, doing nothing\r\nbuilding\r\nmake flags: SHELL=/nix/store/dbxpkswwc7rh6g1iy6dwqklzw39hihb1-bash-4.3-p33/bin/bash DYNAMIC_ARCH=1 NUM_THREADS=64 FC=gfortran CC=gcc PREFIX=\"$(out)\" BINARY=64 USE_OPENMP=1 INTERFACE64=1   \r\ngetarch_2nd.c: In function 'main':\r\ngetarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function)\r\n     printf(\"SGEMM_UNROLL_M=%d\\n\", SGEMM_DEFAULT_UNROLL_M);\r\n                                   ^\r\ngetarch_2nd.c:12:35: note: each undeclared identifier is reported only once for each function it appears in\r\ngetarch_2nd.c:13:35: error: 'SGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function)\r\n     printf(\"SGEMM_UNROLL_N=%d\\n\", SGEMM_DEFAULT_UNROLL_N);\r\n                                   ^\r\ngetarch_2nd.c:14:35: error: 'DGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function)\r\n     printf(\"DGEMM_UNROLL_M=%d\\n\", DGEMM_DEFAULT_UNROLL_M);\r\n                                   ^\r\ngetarch_2nd.c:15:35: error: 'DGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function)\r\n     printf(\"DGEMM_UNROLL_N=%d\\n\", DGEMM_DEFAULT_UNROLL_N);\r\n                                   ^\r\ngetarch_2nd.c:19:35: error: 'CGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function)\r\n     printf(\"CGEMM_UNROLL_M=%d\\n\", CGEMM_DEFAULT_UNROLL_M);\r\n                                   ^\r\ngetarch_2nd.c:20:35: error: 'CGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function)\r\n     printf(\"CGEMM_UNROLL_N=%d\\n\", CGEMM_DEFAULT_UNROLL_N);\r\n                                   ^\r\ngetarch_2nd.c:21:35: error: 'ZGEMM_DEFAULT_UNROLL_M' undeclared (first use in this function)\r\n     printf(\"ZGEMM_UNROLL_M=%d\\n\", ZGEMM_DEFAULT_UNROLL_M);\r\n                                   ^\r\ngetarch_2nd.c:22:35: error: 'ZGEMM_DEFAULT_UNROLL_N' undeclared (first use in this function)\r\n     printf(\"ZGEMM_UNROLL_N=%d\\n\", ZGEMM_DEFAULT_UNROLL_N);\r\n                                   ^\r\ngetarch_2nd.c:67:50: error: 'SGEMM_DEFAULT_Q' undeclared (first use in this function)\r\n     printf(\"#define SLOCAL_BUFFER_SIZE\\t%ld\\n\", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));\r\n                                                  ^\r\ngetarch_2nd.c:68:50: error: 'DGEMM_DEFAULT_Q' undeclared (first use in this function)\r\n     printf(\"#define DLOCAL_BUFFER_SIZE\\t%ld\\n\", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));\r\n                                                  ^\r\ngetarch_2nd.c:69:50: error: 'CGEMM_DEFAULT_Q' undeclared (first use in this function)\r\n     printf(\"#define CLOCAL_BUFFER_SIZE\\t%ld\\n\", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));\r\n                                                  ^\r\ngetarch_2nd.c:70:50: error: 'ZGEMM_DEFAULT_Q' undeclared (first use in this function)\r\n     printf(\"#define ZLOCAL_BUFFER_SIZE\\t%ld\\n\", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));\r\n                                                  ^\r\nmake: *** [getarch_2nd] Error 1\r\nMakefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail..  Stop.\r\nbuilder for ‘/nix/store/a81xdwfxryp00y10imv6gfmp110l264d-openblas-0.2.14.drv’ failed with exit code 2\r\nerror: build of ‘/nix/store/a81xdwfxryp00y10imv6gfmp110l264d-openblas-0.2.14.drv’ failed\r\n```"}}