{"id":17535971,"url":"https://github.com/fuuzetsu/broken-nix-openblas","last_synced_at":"2026-01-27T13:02:25.828Z","repository":{"id":141608864,"uuid":"341391026","full_name":"Fuuzetsu/broken-nix-openblas","owner":"Fuuzetsu","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-23T01:35:00.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-20T20:49:57.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fuuzetsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-23T01:34:08.000Z","updated_at":"2021-02-23T01:35:03.000Z","dependencies_parsed_at":"2023-04-26T18:54:46.430Z","dependency_job_id":null,"html_url":"https://github.com/Fuuzetsu/broken-nix-openblas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fuuzetsu/broken-nix-openblas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuuzetsu%2Fbroken-nix-openblas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuuzetsu%2Fbroken-nix-openblas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuuzetsu%2Fbroken-nix-openblas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuuzetsu%2Fbroken-nix-openblas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fuuzetsu","download_url":"https://codeload.github.com/Fuuzetsu/broken-nix-openblas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuuzetsu%2Fbroken-nix-openblas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-20T19:44:36.381Z","updated_at":"2026-01-27T13:02:25.813Z","avatar_url":"https://github.com/Fuuzetsu.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simply run\n\n```console\n$ nix-shell\n$ gfortran main.f90 -lblas \u0026\u0026 ./a.out\n```\n\nYou should see a segfault:\n\n```console\n$ gfortran main.f90 -lblas \u0026\u0026 ./a.out\nf951: Warning: command line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++ but not for Fortran\nf951: Warning: command line option ‘-Wformat-security’ is valid for C/C++/ObjC/ObjC++ but not for Fortran\nf951: Warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for Fortran\na = 5.0\nX = [ 5.0 6.0 7.0 ]\n\nProgram received signal SIGSEGV: Segmentation fault - invalid memory reference.\n\nBacktrace for this error:\n#0  0x7f7ea902eb90 in ???\n#1  0x7f7ea902ddc5 in ???\n#2  0x7f7ea8cdf39f in ???\n#3  0x7f7eaa0db328 in ???\nSegmentation fault (core dumped)\n\n```\n\nHowever, you can check out OpenBLAS in a different directory and build it:\n\n```console\n$ cd /tmp\n$ git clone git@github.com:xianyi/OpenBLAS.git\n$ nix-shell '\u003cnixpkgs\u003e' -A openblas\n$ make\n```\n\nNow you can run the program we built earlier with the self-built OpenBLAS and it\nshould mysteriously just work.\n\n```console\n$ LD_LIBRARY_PATH=/tmp/OpenBlas:$LD_LIBRARY_PATH ./a.out\na = 5.0\nX = [ 5.0 6.0 7.0 ]\n\nX = a * X\nX = [ 25.0 30.0 35.0 ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuuzetsu%2Fbroken-nix-openblas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuuzetsu%2Fbroken-nix-openblas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuuzetsu%2Fbroken-nix-openblas/lists"}