{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18461","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18461/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18461/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18461/events","html_url":"https://github.com/NixOS/nixpkgs/issues/18461","id":175967551,"number":18461,"title":"libiconv-osx is borken on macOS 10.12 Sierra","user":{"login":"kirelagin","id":451835,"avatar_url":"https://avatars.githubusercontent.com/u/451835?v=3","gravatar_id":"","url":"https://api.github.com/users/kirelagin","html_url":"https://github.com/kirelagin","followers_url":"https://api.github.com/users/kirelagin/followers","following_url":"https://api.github.com/users/kirelagin/following{/other_user}","gists_url":"https://api.github.com/users/kirelagin/gists{/gist_id}","starred_url":"https://api.github.com/users/kirelagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirelagin/subscriptions","organizations_url":"https://api.github.com/users/kirelagin/orgs","repos_url":"https://api.github.com/users/kirelagin/repos","events_url":"https://api.github.com/users/kirelagin/events{/privacy}","received_events_url":"https://api.github.com/users/kirelagin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-09-09T09:33:44Z","updated_at":"2016-09-09T12:31:25Z","closed_at":null,"body":"```text\r\n› ghci\r\nGHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help\r\n<command line>: can't load .so/.DLL for: /nix/store/xc80lqlb3k0xfh0n5zrpc4i29cllc141-libiconv-osx-10.9.5/lib/libiconv.dylib (dlopen(/nix/store/xc80lqlb3k0xfh0n5zrpc4i29cllc141-libiconv-osx-10.9.5/lib/libiconv.dylib, 5): no suitable image found.  Did find:\r\n       \t/nix/store/xc80lqlb3k0xfh0n5zrpc4i29cllc141-libiconv-osx-10.9.5/lib/libiconv.dylib: malformed mach-o image: symbol table underruns __LINKEDIT)\r\n```\r\n\r\n(I could not reproduce the error with other programs that depend on libiconv-osx.)\r\n\r\nLooking at the sources of dyld-360.22, which ships with 10.11.6, I don’t see this kind of error message, so, I guess, it’s a new check added in Sierra. I’m trying to figure out what’s wrong with the dylib. This binary comes straight from Apple, right? Which makes things even more strange. Does anyone happen to know where to get the sources of new dyld?\r\n\r\n/cc @copumpkin @shlevy"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/245899645","html_url":"https://github.com/NixOS/nixpkgs/issues/18461#issuecomment-245899645","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18461","id":245899645,"user":{"login":"copumpkin","id":2623,"avatar_url":"https://avatars.githubusercontent.com/u/2623?v=3","gravatar_id":"","url":"https://api.github.com/users/copumpkin","html_url":"https://github.com/copumpkin","followers_url":"https://api.github.com/users/copumpkin/followers","following_url":"https://api.github.com/users/copumpkin/following{/other_user}","gists_url":"https://api.github.com/users/copumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/copumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copumpkin/subscriptions","organizations_url":"https://api.github.com/users/copumpkin/orgs","repos_url":"https://api.github.com/users/copumpkin/repos","events_url":"https://api.github.com/users/copumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/copumpkin/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T12:31:25Z","updated_at":"2016-09-09T12:31:25Z","body":"Oh sorry for being unclear, the error message is slightly different in ld64, but look for this block:\r\n\r\n```c\r\n\tif ( symtab != nullptr ) {\r\n\t\tif ( symtab->symoff() < _linkeditStartOffset )\r\n\t\t\tthrowf(\"malformed mach-o, symbol table not in __LINKEDIT\");\r\n\t\tif ( symtab->stroff() < _linkeditStartOffset )\r\n\t\t\tthrowf(\"malformed mach-o, symbol table strings not in __LINKEDIT\");\r\n\t}\r\n```\r\n\r\nThat's a new block that was added pretty recently to the public `ld64` sources in 10.11. See https://github.com/tpoechtrager/cctools-port/commit/05d1a0ab92a9b87cc6896092bbaa4f71d4067b01 for the diff that adds it to the `cctools-port` project we use in nixpkgs. The wording isn't identical, but we definitely have stuff in nixpkgs that triggers that error message today. I know because I tried upgrading a few weeks ago to the latest `cctools-port` and ran into that error message. I haven't had time to look into it yet, but I'm guessing the two are related. I know you checked it manually, but perhaps it's only certain binaries/libraries that fail the check? All I know is that when I upgraded to the latest `cctools-port`, I got a failure when bootstrapping the `stdenv` and decided to figure it out later."}}
{"actor":{"display_login":"copumpkin"}}