{"action":"opened","issue":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/2714","repository_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/2714/labels{/name}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/2714/comments","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/2714/events","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/issues/2714","id":367113446,"node_id":"MDU6SXNzdWUzNjcxMTM0NDY=","number":2714,"title":"CUDA 9.2: Boost PropTree Error in ResourceLog","user":{"login":"ax3l","id":1353258,"node_id":"MDQ6VXNlcjEzNTMyNTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1353258?v=4","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"labels":[{"id":163171179,"node_id":"MDU6TGFiZWwxNjMxNzExNzk=","url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/affects%20latest%20release","name":"affects latest release","color":"e11d21","default":false},{"id":710554615,"node_id":"MDU6TGFiZWw3MTA1NTQ2MTU=","url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/backend:%20cuda","name":"backend: cuda","color":"0e8a16","default":false},{"id":49956691,"node_id":"MDU6TGFiZWw0OTk1NjY5MQ==","url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/bug","name":"bug","color":"fc2929","default":true},{"id":50986606,"node_id":"MDU6TGFiZWw1MDk4NjYwNg==","url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/component:%20plugin","name":"component: plugin","color":"cf6800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/10","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/milestone/10","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/milestones/10/labels","id":2455699,"node_id":"MDk6TWlsZXN0b25lMjQ1NTY5OQ==","number":10,"title":"0.4.0: CPU Support, Filter & Merging","description":"Possible topics:\r\n- finalize central parts of the Sphinx docs & migrate most of the wiki\r\n- official cupla (alpaka) support\r\n- particle merging","creator":{"login":"ax3l","id":1353258,"node_id":"MDQ6VXNlcjEzNTMyNTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1353258?v=4","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":574,"state":"open","created_at":"2017-04-13T15:44:52Z","updated_at":"2018-10-05T08:39:53Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-10-05T08:39:53Z","updated_at":"2018-10-05T08:39:53Z","closed_at":null,"author_association":"MEMBER","body":"In the combination of\r\n- GCC 4.9.4\r\n- CUDA 9.2.88\r\n- Boost 1.65.1\r\n- PIConGPU 0.4.0-rc2\r\n- Suse Linux Workstation\r\n\r\n@ajitup73 in #2704 sees the following compile error in our `ResourceLog` plugin:\r\n\r\n```\r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/core/swap.hpp(36): warning: calling a __host__ function from a __host__ __device__ function is not allowed\r\n          detected during:\r\n            instantiation of \"void boost_swap_impl::swap_impl(T &, T &) [with T=std::string]\" \r\n(56): here\r\n            instantiation of \"void boost::swap(T1 &, T2 &) [with T1=std::string, T2=std::string]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/property_tree/detail/ptree_implementation.hpp(214): here\r\n            instantiation of \"void boost::property_tree::basic_ptree<Key, Data, KeyCompare>::swap(boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &) [with Key=std::string, Data=std::string, KeyCompare=std::less<std::string>]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/property_tree/detail/ptree_implementation.hpp(201): here\r\n            instantiation of \"boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &boost::property_tree::basic_ptree<Key, Data, KeyCompare>::operator=(const boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &) [with Key=std::string, Data=std::string, KeyCompare=std::less<std::string>]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/property_tree/detail/ptree_implementation.hpp(644): here\r\n            instantiation of \"boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &boost::property_tree::basic_ptree<Key, Data, KeyCompare>::put_child(const boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type &, const boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &) [with Key=std::string, Data=std::string, KeyCompare=std::less<std::string>]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/property_tree/detail/ptree_implementation.hpp(848): here\r\n            instantiation of \"boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &boost::property_tree::basic_ptree<Key, Data, KeyCompare>::put(const boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type &, const Type &, Translator) [with Key=std::string, Data=std::string, KeyCompare=std::less<std::string>, Type=size_t, Translator=boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, size_t>]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/boost-1.65.1-dy5wuhsxhwb6imd6maxwaeo2jd7ppfsr/include/boost/property_tree/detail/ptree_implementation.hpp(860): here\r\n            instantiation of \"boost::property_tree::basic_ptree<Key, Data, KeyCompare>::self_type &boost::property_tree::basic_ptree<Key, Data, KeyCompare>::put(const boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type &, const Type &) [with Key=std::string, Data=std::string, KeyCompare=std::less<std::string>, Type=size_t]\" \r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.9.4/picongpu-0.4.0-rc2-qunulnqkeboxj4w4uhzltzaqvak2frwq/include/pmacc/../picongpu/plugins/ResourceLog.hpp(95): here\r\n\r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.8/gcc-4.9.4-ta2pzw4p2wr62erizilz2uu3s2gdtleg/include/c++/4.9.4/bits/stl_pair.h(145): error: identifier \"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage\" is undefined in device code\r\n\r\n/home/tempo/src/spack/opt/spack/linux-opensuse42-x86_64/gcc-4.8/gcc-4.9.4-ta2pzw4p2wr62erizilz2uu3s2gdtleg/include/c++/4.9.4/bits/stl_pair.h(145): error: identifier \"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage\" is undefined in device code\r\n```\r\n\r\nHave we seen this before? It looks to me, that somehow a `std::string` signature slips into device code. Maybe via `default` ctors in boost functionality for property trees inside the otherwise [host-only `notify`](https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.4.0-rc2/include/picongpu/plugins/ResourceLog.hpp#L95)?\r\n\r\nFull outputs:\r\n- [pic-configure / cmake](https://github.com/ComputationalRadiationPhysics/picongpu/files/2422619/pic-config_cuda.txt) (ok)\r\n- [pic-build / make -j](https://github.com/ComputationalRadiationPhysics/picongpu/issues/2704#issuecomment-427254839) (fails with error above)"}}
{"actor":{"display_login":"ax3l"}}