{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/1411","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/1411/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/1411/events","html_url":"https://github.com/conda/conda-build/issues/1411","id":179693804,"number":1411,"title":"Crash in post-processing `patchelf`","user":{"login":"bgruening","id":469983,"avatar_url":"https://avatars.githubusercontent.com/u/469983?v=3","gravatar_id":"","url":"https://api.github.com/users/bgruening","html_url":"https://github.com/bgruening","followers_url":"https://api.github.com/users/bgruening/followers","following_url":"https://api.github.com/users/bgruening/following{/other_user}","gists_url":"https://api.github.com/users/bgruening/gists{/gist_id}","starred_url":"https://api.github.com/users/bgruening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgruening/subscriptions","organizations_url":"https://api.github.com/users/bgruening/orgs","repos_url":"https://api.github.com/users/bgruening/repos","events_url":"https://api.github.com/users/bgruening/events{/privacy}","received_events_url":"https://api.github.com/users/bgruening/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T06:53:15Z","updated_at":"2016-09-28T08:34:11Z","closed_at":null,"body":"The latest release crashes with the following error for some (pre-compiled) binaries.\r\n```\r\nFixing permissions\r\ncannot find section .dynamic\r\nTraceback (most recent call last):\r\n  File \"/home/bag/miniconda2/bin/conda-build\", line 6, in <module>\r\n    sys.exit(conda_build.cli.main_build.main())\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/cli/main_build.py\", line 246, in main\r\n    execute(sys.argv[1:])\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/cli/main_build.py\", line 238, in execute\r\n    already_built=None, config=config)\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/api.py\", line 83, in build\r\n    need_source_download=need_source_download, config=config)\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/build.py\", line 1004, in build_tree\r\n    config=recipe_config)\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/build.py\", line 714, in build\r\n    croot=config.croot)\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/post.py\", line 399, in post_build\r\n    mk_relative(m, f, prefix)\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/post.py\", line 366, in mk_relative\r\n    mk_relative_linux(f, prefix=prefix, rpaths=m.get_value('build/rpaths', ['lib']))\r\n  File \"/home/bag/miniconda2/lib/python2.7/site-packages/conda_build/post.py\", line 315, in mk_relative_linux\r\n    existing = check_output([patchelf, '--print-rpath', elf]).decode('utf-8').splitlines()[0]\r\n  File \"/home/bag/miniconda2/lib/python2.7/subprocess.py\", line 574, in check_output\r\n    raise CalledProcessError(retcode, cmd, output=output)\r\nsubprocess.CalledProcessError: Command '['/home/bag/miniconda2/bin/patchelf', '--print-rpath', '/home/bag/miniconda2/conda-bld/searchgui_1475044759195/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/share/searchgui-3.1.1-0/resources/Comet/linux/comet.exe']' returned non-zero exit status 1\r\n```\r\n\r\nCan be related to these changes: https://github.com/conda/conda-build/commit/39503ec42da8d71d16f9ce4cf050abe507f7b2b9\r\n"},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/250105487","html_url":"https://github.com/conda/conda-build/issues/1411#issuecomment-250105487","issue_url":"https://api.github.com/repos/conda/conda-build/issues/1411","id":250105487,"user":{"login":"mingwandroid","id":1042804,"avatar_url":"https://avatars.githubusercontent.com/u/1042804?v=3","gravatar_id":"","url":"https://api.github.com/users/mingwandroid","html_url":"https://github.com/mingwandroid","followers_url":"https://api.github.com/users/mingwandroid/followers","following_url":"https://api.github.com/users/mingwandroid/following{/other_user}","gists_url":"https://api.github.com/users/mingwandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwandroid/subscriptions","organizations_url":"https://api.github.com/users/mingwandroid/orgs","repos_url":"https://api.github.com/users/mingwandroid/repos","events_url":"https://api.github.com/users/mingwandroid/events{/privacy}","received_events_url":"https://api.github.com/users/mingwandroid/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T08:34:11Z","updated_at":"2016-09-28T08:34:11Z","body":"@msarahan, I guess we need to catch the check_output exception here and not bother trying to fix rpaths for things that don't have them?"}}
{"actor":{"display_login":"mingwandroid"}}