{"id":16336849,"url":"https://github.com/angerman/macos-ghc-dylib-blowup","last_synced_at":"2025-07-31T05:04:37.498Z","repository":{"id":79904453,"uuid":"127629923","full_name":"angerman/macos-ghc-dylib-blowup","owner":"angerman","description":"Example project demonstrating the mach-o load commandsize blowup with ghc constructed dylibs","archived":false,"fork":false,"pushed_at":"2018-04-01T13:08:06.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T00:44:26.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/angerman.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":"2018-04-01T13:04:06.000Z","updated_at":"2018-04-01T13:08:07.000Z","dependencies_parsed_at":"2023-09-17T02:22:58.226Z","dependency_job_id":null,"html_url":"https://github.com/angerman/macos-ghc-dylib-blowup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angerman%2Fmacos-ghc-dylib-blowup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angerman%2Fmacos-ghc-dylib-blowup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angerman%2Fmacos-ghc-dylib-blowup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angerman%2Fmacos-ghc-dylib-blowup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angerman","download_url":"https://codeload.github.com/angerman/macos-ghc-dylib-blowup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254556885,"owners_count":22091011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10T23:45:08.708Z","updated_at":"2025-05-16T15:36:04.819Z","avatar_url":"https://github.com/angerman.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# malformed mach-o: load commands size (...) \u003e 32768\n\nThe way GHC constructs dylibs, and the way cabal places dylibs with `cabal new-build`, can\nresult in load-command-size blowups.\n\nThis repository is a reproduction case to illustrate the issue.\n\n# Build\n\n```shell\n$ cat cabal.project|grep -v \"^packages\"|xargs cabal unpack\n$ cabal new-build\n```\n\nthe first command will unpack all packages listed in the `cabal.project` file; the second will then build the project with `cabal new-build`. This should (while the issue persists) yield the following (or similar error):\n\n```\nghc: panic! (the 'impossible' happened)\n  (GHC version 8.4.1 for x86_64-apple-darwin):\n\tLoading temp shared object failed: dlopen(/var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc75192_0/libghc_19.dylib, 5): no suitable image found.  Did find:\n\t/var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc75192_0/libghc_19.dylib: malformed mach-o: load commands size (34104) \u003e 32768\n\nPlease report this as a GHC bug:  http://www.haskell.org/ghc/reportabug\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangerman%2Fmacos-ghc-dylib-blowup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangerman%2Fmacos-ghc-dylib-blowup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangerman%2Fmacos-ghc-dylib-blowup/lists"}