{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/3028","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/3028/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/3028/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/3028/events","html_url":"https://github.com/conda/conda-build/issues/3028","id":342839574,"node_id":"MDU6SXNzdWUzNDI4Mzk1NzQ=","number":3028,"title":"Build with cmake/llvm on OS X is weird","user":{"login":"abergeron","id":1002504,"node_id":"MDQ6VXNlcjEwMDI1MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1002504?v=4","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-19T18:26:21Z","updated_at":"2018-07-23T17:48:12Z","closed_at":"2018-07-19T22:55:51Z","author_association":"NONE","body":"I want to build an application that links with LLVM as a conda package.  It uses Cmake as the build system.\r\n\r\n### Actual Behavior\r\n\r\nI get cmake errors if I do things this way (which I think is the \"correct\" way):\r\n\r\nThis config (conda1):\r\n```\r\nrequirements:\r\n  build:\r\n    - {{ compiler('cxx') }}\r\n    - cmake\r\n  host:\r\n    - llvmdev ==6.0.0\r\n```\r\n\r\nGives this problem:\r\n```\r\nCMake Error at /Users/anakha/miniconda/conda-bld/testp_1532023488507/_build_env/lib/cmake/llvm/LLVMExports.cmake:1167 (message):\r\n  The imported target \"PollyISL\" references the file\r\n\r\n     \"/Users/anakha/miniconda/conda-bld/testp_1532023488507/_build_env/lib/libPollyISL.a\"\r\n\r\n  but this file does not exist.  Possible reasons include:\r\n\r\n  * The file was deleted, renamed, or moved to another location.\r\n\r\n  * An install or uninstall procedure did not complete successfully.\r\n\r\n  * The installation package was faulty and contained\r\n\r\n     \"/Users/anakha/miniconda/conda-bld/testp_1532023488507/_build_env/lib/cmake/llvm/LLVMExports.cmake\"\r\n\r\n  but not all the files it references.\r\n\r\nCall Stack (most recent call first):\r\n  /Users/anakha/miniconda/conda-bld/testp_1532023488507/_build_env/lib/cmake/llvm/LLVMConfig.cmake:214 (include)\r\n  FindLLVM.cmake:19 (find_package)\r\n  CMakeLists.txt:6 (find_llvm)\r\n```\r\n\r\nThat config (conda2):\r\n```\r\nrequirements:\r\n  build:\r\n    - llvmdev ==6.0.0\r\n    - cmake\r\n  host:\r\n    - {{ compiler('cxx') }}\r\n```\r\n\r\n\"works\" as I want it to, probably only because the paths in build override the paths in host and thus the llvm-config from llvmdev-6.0.0 is seen before the one that comes from the compilers.\r\n\r\n### Expected Behavior\r\n\r\nI should be able to link with the LLVM I want for my app regardless of the compiler used.\r\n\r\n### Steps to Reproduce\r\n\r\nThis package has the two recipes and some minimal test code to make it work: [testp.tar.gz](https://github.com/conda/conda-build/files/2211209/testp.tar.gz)\r\n\r\n##### `Output of conda info`\r\n\r\n```\r\n     active environment : None\r\n       user config file : /Users/anakha/.condarc\r\n populated config files : /Users/anakha/.condarc\r\n          conda version : 4.5.4\r\n    conda-build version : 3.10.1\r\n         python version : 3.6.5.final.0\r\n       base environment : /Users/anakha/miniconda  (writable)\r\n           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/free/osx-64\r\n                          https://repo.anaconda.com/pkgs/free/noarch\r\n                          https://repo.anaconda.com/pkgs/r/osx-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n                          https://repo.anaconda.com/pkgs/pro/osx-64\r\n                          https://repo.anaconda.com/pkgs/pro/noarch\r\n          package cache : /Users/anakha/miniconda/pkgs\r\n                          /Users/anakha/.conda/pkgs\r\n       envs directories : /Users/anakha/miniconda/envs\r\n                          /Users/anakha/.conda/envs\r\n               platform : osx-64\r\n             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Darwin/17.7.0 OSX/10.13.6\r\n                UID:GID : 501:20\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/407143371","html_url":"https://github.com/conda/conda-build/issues/3028#issuecomment-407143371","issue_url":"https://api.github.com/repos/conda/conda-build/issues/3028","id":407143371,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzE0MzM3MQ==","user":{"login":"abergeron","id":1002504,"node_id":"MDQ6VXNlcjEwMDI1MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1002504?v=4","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T17:48:12Z","updated_at":"2018-07-23T17:48:12Z","author_association":"NONE","body":"It seems you didn't read my issue at all.  I AM using the conda compilers and they are the source of the problem.\r\n\r\nI have a test project which perfectly reproduces the problem that the llvm bundled with the compilers on OS X overrides the one that I specify in host since the the stuff in the build path is prepended.\r\n\r\nPlease don't dismiss issues out of hand because of a single badly-formulated sentence in a detailed report."}}
{"actor":{"display_login":"abergeron"}}