{"action":"created","issue":{"url":"https://api.github.com/repos/azonenberg/openfpga/issues/116","repository_url":"https://api.github.com/repos/azonenberg/openfpga","labels_url":"https://api.github.com/repos/azonenberg/openfpga/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/azonenberg/openfpga/issues/116/comments","events_url":"https://api.github.com/repos/azonenberg/openfpga/issues/116/events","html_url":"https://github.com/azonenberg/openfpga/issues/116","id":267449533,"number":116,"title":"build system somehow finds yosys not on path, and then fails to run it","user":{"login":"rqou","id":732574,"avatar_url":"https://avatars1.githubusercontent.com/u/732574?v=4","gravatar_id":"","url":"https://api.github.com/users/rqou","html_url":"https://github.com/rqou","followers_url":"https://api.github.com/users/rqou/followers","following_url":"https://api.github.com/users/rqou/following{/other_user}","gists_url":"https://api.github.com/users/rqou/gists{/gist_id}","starred_url":"https://api.github.com/users/rqou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqou/subscriptions","organizations_url":"https://api.github.com/users/rqou/orgs","repos_url":"https://api.github.com/users/rqou/repos","events_url":"https://api.github.com/users/rqou/events{/privacy}","received_events_url":"https://api.github.com/users/rqou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-22T09:24:32Z","updated_at":"2017-10-22T11:21:06Z","closed_at":null,"author_association":"COLLABORATOR","body":"```\r\n$ cmake --version\r\ncmake version 3.9.3\r\n\r\nCMake suite maintained and supported by Kitware (kitware.com/cmake).\r\n```\r\n\r\nI'm not sure what changed, but the build system is once again failing to fail to find yosys. I have a random ancient copy of yosys installed under `/opt` which is _not_ on my `PATH`. Somehow, cmake finds it and manages to set `${YOSYS}` to the path to it. However, because it isn't on my `PATH`, it then fails to run obviously and then causes build failures."},"comment":{"url":"https://api.github.com/repos/azonenberg/openfpga/issues/comments/338469856","html_url":"https://github.com/azonenberg/openfpga/issues/116#issuecomment-338469856","issue_url":"https://api.github.com/repos/azonenberg/openfpga/issues/116","id":338469856,"user":{"login":"rqou","id":732574,"avatar_url":"https://avatars1.githubusercontent.com/u/732574?v=4","gravatar_id":"","url":"https://api.github.com/users/rqou","html_url":"https://github.com/rqou","followers_url":"https://api.github.com/users/rqou/followers","following_url":"https://api.github.com/users/rqou/following{/other_user}","gists_url":"https://api.github.com/users/rqou/gists{/gist_id}","starred_url":"https://api.github.com/users/rqou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rqou/subscriptions","organizations_url":"https://api.github.com/users/rqou/orgs","repos_url":"https://api.github.com/users/rqou/repos","events_url":"https://api.github.com/users/rqou/events{/privacy}","received_events_url":"https://api.github.com/users/rqou/received_events","type":"User","site_admin":false},"created_at":"2017-10-22T11:21:06Z","updated_at":"2017-10-22T11:21:06Z","author_association":"COLLABORATOR","body":"`--verbose` did not give any extra information, but this issue only happens if I try to cross compile using `cmake --verbose .. -DBUILD_RUST=off -DBUILD_DOC=off -DCMAKE_INSTALL_PREFIX=/opt/fpgatools -DCMAKE_C_COMPILER=x86_64-linux-musl-gcc -DCMAKE_CXX_COMPILER=x86_64-linux-musl-g++ -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_FLAGS=\"--sysroot=/home/rqou/code/fpgatools-build-system/tools-x86_64/sysroot\" -DCMAKE_CXX_FLAGS=\"--sysroot=/home/rqou/code/fpgatools-build-system/tools-x86_64/sysroot\" -DCMAKE_EXE_LINKER_FLAGS=\"-static\"`"}}
{"actor":{"display_login":"rqou"}}