{"action":"opened","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/3092","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/3092/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3092/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/3092/events","html_url":"https://github.com/conan-io/conan/issues/3092","id":334517525,"node_id":"MDU6SXNzdWUzMzQ1MTc1MjU=","number":3092,"title":"\"conan install\" says a package needs to be built, but \"conan search\" shows a matching binary","user":{"login":"DavidZemon","id":3068292,"node_id":"MDQ6VXNlcjMwNjgyOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3068292?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidZemon","html_url":"https://github.com/DavidZemon","followers_url":"https://api.github.com/users/DavidZemon/followers","following_url":"https://api.github.com/users/DavidZemon/following{/other_user}","gists_url":"https://api.github.com/users/DavidZemon/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidZemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidZemon/subscriptions","organizations_url":"https://api.github.com/users/DavidZemon/orgs","repos_url":"https://api.github.com/users/DavidZemon/repos","events_url":"https://api.github.com/users/DavidZemon/events{/privacy}","received_events_url":"https://api.github.com/users/DavidZemon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-21T14:22:43Z","updated_at":"2018-06-21T14:22:43Z","closed_at":null,"author_association":"NONE","body":"To help us debug your issue please explain:\r\n\r\n- [ ] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [ ] I've specified the Conan version, operating system version and any tool that can be relevant.\r\n- [ ] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.\r\n\r\nConan v1.4.4\r\nI'm afraid I don't know if you'll be able to reproduce this since I'm using a closed-source package with a locked-down Conan server.\r\n\r\nWhat I'm running into is a problem where my linux package is always being rebuilt from source on my local machine, despite the remote server showing a matching binary with appropriate options.\r\n\r\n```\r\ncaptain@balrog:~$ conan install OpenSSL/1.0.2n@conan/stable -s build_type=Debug --build OpenSSL\r\nOpenSSL/1.0.2n@conan/stable: Installing package\r\nRequirements\r\n    OpenSSL/1.0.2n@conan/stable from local cache\r\n    zlib/1.2.11@conan/stable from 'conan-center'\r\nPackages\r\n    OpenSSL/1.0.2n@conan/stable:7844130be93cd4c54d42e8d4922b936e6832525f\r\n    zlib/1.2.11@conan/stable:485addee8a0f673df1a98da864bcbad8924300bc\r\n\r\nCross-build from 'Linux:x86_64' to 'Linux:armv7hf'\r\nOpenSSL/1.0.2n@conan/stable: WARN: Package is corrupted, removing folder: /home/captain/.conan/data/OpenSSL/1.0.2n/conan/stable/package/7844130be93cd4c54d42e8d4922b936e6832525f\r\nzlib/1.2.11@conan/stable: Already installed!\r\nOpenSSL/1.0.2n@conan/stable: WARN: Forced build from source\r\nOpenSSL/1.0.2n@conan/stable: Installing build requirements of: OpenSSL/1.0.2n@conan/stable\r\nOpenSSL/1.0.2n@conan/stable: Build requires: [linux/4.9.59@wsbu/stable]\r\nOpenSSL/1.0.2n@conan/stable: Requirements\r\nOpenSSL/1.0.2n@conan/stable:     linux/4.9.59@wsbu/stable from local cache\r\nOpenSSL/1.0.2n@conan/stable: Packages\r\nOpenSSL/1.0.2n@conan/stable:     linux/4.9.59@wsbu/stable:5dc7c772e508a33d1fa1c2ffcd8a6aa2a66697b8\r\nOpenSSL/1.0.2n@conan/stable: \r\nlinux/4.9.59@wsbu/stable: WARN: Can't find a 'linux/4.9.59@wsbu/stable' package for the specified options and settings:\r\n- Settings: arch=armv7hf, build_type=Debug, compiler=gcc, compiler.version=4.9, platform=sitara\r\n- Options: install_source=False\r\n- Package ID: 5dc7c772e508a33d1fa1c2ffcd8a6aa2a66697b8\r\n\r\nERROR: Missing prebuilt package for 'linux/4.9.59@wsbu/stable'\r\nTry to build it from sources with \"--build linux\"\r\nOr read \"http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package\"\r\n\r\ncaptain@balrog:~$ conan install OpenSSL/1.0.2n@conan/stable -s build_type=Debug --build OpenSSL^C\r\ncaptain@balrog:~$ conan search -r ci --raw linux/4.9.59@wsbu/stable\r\nExisting packages for recipe linux/4.9.59@wsbu/stable:\r\n\r\n    Package_ID: 531dd80389397dad66762fc7a5794390f94be73c\r\n        [options]\r\n            install_source: False\r\n        [settings]\r\n            arch: x86_64\r\n            build_type: Release\r\n            compiler: gcc\r\n            compiler.version: 7\r\n            platform: x86_64\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: 5dc7c772e508a33d1fa1c2ffcd8a6aa2a66697b8\r\n        [options]\r\n            install_source: False\r\n        [settings]\r\n            arch: armv7hf\r\n            build_type: Debug\r\n            compiler: gcc\r\n            compiler.version: 4.9\r\n            platform: sitara\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: 6bf0ea4e0870901858169ded5c493e679e63b143\r\n        [options]\r\n            install_source: True\r\n        [settings]\r\n            arch: armv7hf\r\n            build_type: Debug\r\n            compiler: gcc\r\n            compiler.version: 4.9\r\n            platform: sitara\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: 711de81d3de271a59a8ab35631ab56999d4469ff\r\n        [options]\r\n            install_source: False\r\n        [settings]\r\n            arch: x86_64\r\n            build_type: Debug\r\n            compiler: gcc\r\n            compiler.version: 7\r\n            platform: x86_64\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: 89d8238bbe04a388d5d0a2415aab0934eb33f9a3\r\n        [options]\r\n            install_source: True\r\n        [settings]\r\n            arch: x86_64\r\n            build_type: Release\r\n            compiler: gcc\r\n            compiler.version: 7\r\n            platform: x86_64\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: b4fa5683e5676f79c5287ea1406319a98d4c4c0b\r\n        [options]\r\n            install_source: False\r\n        [settings]\r\n            arch: x86_64\r\n            build_type: Release\r\n            compiler: gcc\r\n            compiler.version: 5\r\n            platform: x86_64\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: c0aeb4ab40733a28d360acabf2e0cb02120637a2\r\n        [options]\r\n            install_source: True\r\n        [settings]\r\n            arch: x86_64\r\n            build_type: Debug\r\n            compiler: gcc\r\n            compiler.version: 7\r\n            platform: x86_64\r\n        Outdated from recipe: False\r\n\r\n    Package_ID: e5019d4af3b3b792626478dfc4da5d0d972fe24c\r\n        [options]\r\n            install_source: False\r\n        [settings]\r\n            arch: armv7hf\r\n            build_type: Release\r\n            compiler: gcc\r\n            compiler.version: 4.9\r\n            platform: sitara\r\n        Outdated from recipe: False\r\n\r\ncaptain@balrog:~$ \r\n```\r\n\r\nSo the important parts that I see in the above snippet are Conan saying it's missing a package in the local cache with a specific package ID\r\n\r\n```\r\nlinux/4.9.59@wsbu/stable: WARN: Can't find a 'linux/4.9.59@wsbu/stable' package for the specified options and settings:\r\n- Settings: arch=armv7hf, build_type=Debug, compiler=gcc, compiler.version=4.9, platform=sitara\r\n- Options: install_source=False\r\n- Package ID: 5dc7c772e508a33d1fa1c2ffcd8a6aa2a66697b8\r\n```\r\n\r\nand then the search function saying \"hey, i have these package IDs\"... and one of them matches (second one down).\r\n\r\nAny ideas why it's trying to build this package from source?"}}
{"actor":{"display_login":"DavidZemon"}}