{"action":"opened","issue":{"url":"https://api.github.com/repos/madisongh/meta-tegra/issues/77","repository_url":"https://api.github.com/repos/madisongh/meta-tegra","labels_url":"https://api.github.com/repos/madisongh/meta-tegra/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/madisongh/meta-tegra/issues/77/comments","events_url":"https://api.github.com/repos/madisongh/meta-tegra/issues/77/events","html_url":"https://github.com/madisongh/meta-tegra/issues/77","id":314077657,"number":77,"title":"Unknown CMake command \"find_host_program\".","user":{"login":"lfdmn","id":17184363,"avatar_url":"https://avatars0.githubusercontent.com/u/17184363?v=4","gravatar_id":"","url":"https://api.github.com/users/lfdmn","html_url":"https://github.com/lfdmn","followers_url":"https://api.github.com/users/lfdmn/followers","following_url":"https://api.github.com/users/lfdmn/following{/other_user}","gists_url":"https://api.github.com/users/lfdmn/gists{/gist_id}","starred_url":"https://api.github.com/users/lfdmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfdmn/subscriptions","organizations_url":"https://api.github.com/users/lfdmn/orgs","repos_url":"https://api.github.com/users/lfdmn/repos","events_url":"https://api.github.com/users/lfdmn/events{/privacy}","received_events_url":"https://api.github.com/users/lfdmn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T11:52:51Z","updated_at":"2018-04-13T11:52:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using pyro-l4t-r28.1 branch to build a TX2 image. I'm trying to build a library, ArrayFire, which links CUDA using the cross compilation toolchain. \r\n\r\n```\r\n~/library_builds/arrayfire/build $ /opt/stack/sysroots/x86_64-pokysdk-linux/usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DBUILD_CPU=OFF -DBUILD_CUDA=ON -DBUILD_OPENCL=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_GRAPHICS=OFF -DCMAKE_BUILD_TYPE=Release ..\r\n-- The C compiler identification is GNU 6.4.0\r\n-- The CXX compiler identification is GNU 6.4.0\r\n-- Check for working C compiler: /opt/stack/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc\r\n-- Check for working C compiler: /opt/stack/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /opt/stack/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++\r\n-- Check for working CXX compiler: /opt/stack/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\nCMake Error at /opt/stack/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.7/Modules/FindCUDA.cmake:675 (find_host_program):\r\n  Unknown CMake command \"find_host_program\".\r\nCall Stack (most recent call first):\r\n  /opt/stack/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.7/Modules/FindCUDA.cmake:686 (cuda_find_host_program)\r\n  CMakeLists.txt:18 (FIND_PACKAGE)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/home/user/library_builds/arrayfire/build/CMakeFiles/CMakeOutput.log\".\r\nSee also \"/home/user/library_builds/arrayfire/build/CMakeFiles/CMakeError.log\".\r\n```\r\nI use the cmake provided in the SDK image, it seems compilers are properly detected. I cannot find the cuda_find_host_program macro anywhere.\r\n\r\nAny idea what I could be missing?"}}
{"actor":{"display_login":"lfdmn"}}