{"action":"created","issue":{"url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/24","repository_url":"https://api.github.com/repos/Genoil/cpp-ethereum","labels_url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/24/comments","events_url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/24/events","html_url":"https://github.com/Genoil/cpp-ethereum/issues/24","id":149244148,"number":24,"title":"Build broken","user":{"login":"gsora","id":145909,"avatar_url":"https://avatars.githubusercontent.com/u/145909?v=3","gravatar_id":"","url":"https://api.github.com/users/gsora","html_url":"https://github.com/gsora","followers_url":"https://api.github.com/users/gsora/followers","following_url":"https://api.github.com/users/gsora/following{/other_user}","gists_url":"https://api.github.com/users/gsora/gists{/gist_id}","starred_url":"https://api.github.com/users/gsora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsora/subscriptions","organizations_url":"https://api.github.com/users/gsora/orgs","repos_url":"https://api.github.com/users/gsora/repos","events_url":"https://api.github.com/users/gsora/events{/privacy}","received_events_url":"https://api.github.com/users/gsora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-18T19:09:18Z","updated_at":"2016-05-13T19:27:39Z","closed_at":null,"body":"This is the error I'm encountering:\r\n\r\n```\r\n/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:\r\n/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope\r\n   return (char *) memcpy (__dest, __src, __n) + __n;\r\n                                          ^\r\nCMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:266 (message):\r\n  Error generating file\r\n  /home/gsora/cpp-ethereum-genoil/build/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o\r\n\r\n\r\nlibethash-cuda/CMakeFiles/ethash-cuda.dir/build.make:197: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o' failed\r\nmake[2]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o] Error 1\r\nCMakeFiles/Makefile2:232: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/all' failed\r\n\r\n```\r\n\r\nBut, if I add `-D_FORCE_INLINES` to line 8 of `libethash-cuda/CMakeList.txt`, CUDA is building but then this error happends:\r\n\r\n```\r\n/home/gsora/cpp-ethereum-genoil/libdevcore/TransientDirectory.cpp: In destructor ‘dev::TransientDirectory::~TransientDirectory()’:\r\n/home/gsora/cpp-ethereum-genoil/libdevcore/TransientDirectory.cpp:62:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]\r\n  if (!ec)\r\n     ^\r\n[ 95%] Linking CXX shared library libdevcore.so\r\n[ 95%] Built target devcore\r\n[ 97%] Building CXX object ethminer/CMakeFiles/ethminer.dir/main.cpp.o\r\nIn file included from /home/gsora/cpp-ethereum-genoil/ethminer/main.cpp:39:0:\r\n/home/gsora/cpp-ethereum-genoil/ethminer/MinerAux.h: In member function ‘bool MinerCLI::interpretOption(int&, int, char**)’:\r\n/home/gsora/cpp-ethereum-genoil/ethminer/MinerAux.h:242:11: error: ‘m_openclDeviceCount’ was not declared in this scope\r\n    while (m_openclDeviceCount < 16 && i + 1 < argc)\r\n           ^\r\n/home/gsora/cpp-ethereum-genoil/ethminer/MinerAux.h:246:6: error: ‘m_openclDevices’ was not declared in this scope\r\n      m_openclDevices[m_openclDeviceCount++] = stol(argv[++i]);\r\n      ^\r\nIn file included from /home/gsora/cpp-ethereum-genoil/ethminer/main.cpp:39:0:\r\n/home/gsora/cpp-ethereum-genoil/ethminer/MinerAux.h: In member function ‘void MinerCLI::doFarm(dev::eth::MinerType, std::__cxx11::string&, unsigned int)’:\r\n/home/gsora/cpp-ethereum-genoil/ethminer/MinerAux.h:912:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]\r\n      if (current.seedHash != newSeedHash)\r\n         ^\r\nethminer/CMakeFiles/ethminer.dir/build.make:62: recipe for target 'ethminer/CMakeFiles/ethminer.dir/main.cpp.o' failed\r\nmake[2]: *** [ethminer/CMakeFiles/ethminer.dir/main.cpp.o] Error 1\r\nCMakeFiles/Makefile2:403: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed\r\nmake[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2\r\nMakefile:127: recipe for target 'all' failed\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/comments/219137622","html_url":"https://github.com/Genoil/cpp-ethereum/issues/24#issuecomment-219137622","issue_url":"https://api.github.com/repos/Genoil/cpp-ethereum/issues/24","id":219137622,"user":{"login":"Genoil","id":7251705,"avatar_url":"https://avatars.githubusercontent.com/u/7251705?v=3","gravatar_id":"","url":"https://api.github.com/users/Genoil","html_url":"https://github.com/Genoil","followers_url":"https://api.github.com/users/Genoil/followers","following_url":"https://api.github.com/users/Genoil/following{/other_user}","gists_url":"https://api.github.com/users/Genoil/gists{/gist_id}","starred_url":"https://api.github.com/users/Genoil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Genoil/subscriptions","organizations_url":"https://api.github.com/users/Genoil/orgs","repos_url":"https://api.github.com/users/Genoil/repos","events_url":"https://api.github.com/users/Genoil/events{/privacy}","received_events_url":"https://api.github.com/users/Genoil/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T19:27:38Z","updated_at":"2016-05-13T19:27:38Z","body":"Seems like you are trying to build without OpenCL support. Which should work, so I've applied a little fix https://github.com/Genoil/cpp-ethereum/commit/7987dd4172508c09545b9a336e3a20da36a07d97. Does it help?"}}