{"action":"created","issue":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/1661","repository_url":"https://api.github.com/repos/trilinos/Trilinos","labels_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1661/labels{/name}","comments_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1661/comments","events_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1661/events","html_url":"https://github.com/trilinos/Trilinos/issues/1661","id":254331658,"number":1661,"title":"Tpetra: build error in unpackAndCombineNew","user":{"login":"aprokop","id":7297887,"avatar_url":"https://avatars1.githubusercontent.com/u/7297887?v=4","gravatar_id":"","url":"https://api.github.com/users/aprokop","html_url":"https://github.com/aprokop","followers_url":"https://api.github.com/users/aprokop/followers","following_url":"https://api.github.com/users/aprokop/following{/other_user}","gists_url":"https://api.github.com/users/aprokop/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokop/subscriptions","organizations_url":"https://api.github.com/users/aprokop/orgs","repos_url":"https://api.github.com/users/aprokop/repos","events_url":"https://api.github.com/users/aprokop/events{/privacy}","received_events_url":"https://api.github.com/users/aprokop/received_events","type":"User","site_admin":false},"labels":[{"id":287520103,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/bug","name":"bug","color":"fc2929","default":true},{"id":335017395,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/build","name":"build","color":"bfd4f2","default":false},{"id":318642986,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":289606028,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/Tpetra","name":"Tpetra","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"aprokop","id":7297887,"avatar_url":"https://avatars1.githubusercontent.com/u/7297887?v=4","gravatar_id":"","url":"https://api.github.com/users/aprokop","html_url":"https://github.com/aprokop","followers_url":"https://api.github.com/users/aprokop/followers","following_url":"https://api.github.com/users/aprokop/following{/other_user}","gists_url":"https://api.github.com/users/aprokop/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokop/subscriptions","organizations_url":"https://api.github.com/users/aprokop/orgs","repos_url":"https://api.github.com/users/aprokop/repos","events_url":"https://api.github.com/users/aprokop/events{/privacy}","received_events_url":"https://api.github.com/users/aprokop/received_events","type":"User","site_admin":false},"assignees":[{"login":"aprokop","id":7297887,"avatar_url":"https://avatars1.githubusercontent.com/u/7297887?v=4","gravatar_id":"","url":"https://api.github.com/users/aprokop","html_url":"https://github.com/aprokop","followers_url":"https://api.github.com/users/aprokop/followers","following_url":"https://api.github.com/users/aprokop/following{/other_user}","gists_url":"https://api.github.com/users/aprokop/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokop/subscriptions","organizations_url":"https://api.github.com/users/aprokop/orgs","repos_url":"https://api.github.com/users/aprokop/repos","events_url":"https://api.github.com/users/aprokop/events{/privacy}","received_events_url":"https://api.github.com/users/aprokop/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-08-31T13:19:17Z","updated_at":"2017-08-31T15:14:03Z","closed_at":"2017-08-31T15:14:03Z","author_association":"CONTRIBUTOR","body":"@trilinos/tpetra @mhoemmen @tjfulle \r\n\r\nFor some reason, the code does not compile unless `tfectFuncName` is moved outside of `HAVE_TPETRA_DEBUG`. It's a bit of mystery to me as I though it would only be used in `TEUCHOS_TEST_FOR_EXCEPTION` which is hidden behind the macro.\r\n\r\nThe corresponding error:\r\n```\r\nIn file included from ../../packages/teuchos/core/src/Teuchos_Assert.hpp:46:0,\r\n                 from ../../packages/teuchos/core/src/Teuchos_any.hpp:51,\r\n                 from ../../packages/teuchos/core/src/Teuchos_RCPNode.hpp:53,\r\n                 from ../../packages/teuchos/core/src/Teuchos_ArrayViewDecl.hpp:46,\r\n                 from ../../packages/teuchos/core/src/Teuchos_ArrayView.hpp:46,\r\n                 from ../../packages/teuchos/kokkoscompat/src/KokkosCompat_View.hpp:59,\r\n                 from ../../packages/teuchos/kokkoscompat/src/KokkosCompat_ClassicNodeAPI_Wrapper.hpp:5,\r\n                 from packages/tpetra/core/src/Tpetra_MultiVector_INT_INT_INT_SERIAL.cpp:68:\r\n../../packages/tpetra/core/src/Tpetra_MultiVector_def.hpp: In member function ‘virtual void Tpetra::MultiVector<S, LO, GO, N, classic>::unpackAndCombineNew(const Kokkos::DualView<const LocalOrdinal*, typename N\r\node::device_type>&, const Kokkos::DualView<const typename Kokkos::Details::ArithTraits<RealFloatType>::val_type*, typename Tpetra::DistObject<Scalar, LocalOrdinal, GlobalOrdinal, Node, classic>::buffer_device_t\r\nype>&, const Kokkos::DualView<const long unsigned int*, typename Tpetra::DistObject<Scalar, LocalOrdinal, GlobalOrdinal, Node, classic>::buffer_device_type>&, size_t, Tpetra::Distributor&, Tpetra::CombineMode)’\r\n:\r\n../../packages/teuchos/core/src/Teuchos_TestForException.hpp:232:40: error: ‘tfecfFuncName’ was not declared in this scope\r\n    Teuchos::typeName(*this) << \"::\" << tfecfFuncName << msg ) \\\r\n                                        ^\r\n../../packages/teuchos/core/src/Teuchos_TestForException.hpp:179:10: note: in definition of macro ‘TEUCHOS_TEST_FOR_EXCEPTION’\r\n       << msg; \\\r\n          ^~~\r\n../../packages/tpetra/core/src/Tpetra_MultiVector_def.hpp:1698:9: note: in expansion of macro ‘TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC’\r\n         TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC\r\n         ^\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/comments/326327337","html_url":"https://github.com/trilinos/Trilinos/issues/1661#issuecomment-326327337","issue_url":"https://api.github.com/repos/trilinos/Trilinos/issues/1661","id":326327337,"user":{"login":"mhoemmen","id":926747,"avatar_url":"https://avatars0.githubusercontent.com/u/926747?v=4","gravatar_id":"","url":"https://api.github.com/users/mhoemmen","html_url":"https://github.com/mhoemmen","followers_url":"https://api.github.com/users/mhoemmen/followers","following_url":"https://api.github.com/users/mhoemmen/following{/other_user}","gists_url":"https://api.github.com/users/mhoemmen/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoemmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoemmen/subscriptions","organizations_url":"https://api.github.com/users/mhoemmen/orgs","repos_url":"https://api.github.com/users/mhoemmen/repos","events_url":"https://api.github.com/users/mhoemmen/events{/privacy}","received_events_url":"https://api.github.com/users/mhoemmen/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T15:14:03Z","updated_at":"2017-08-31T15:14:03Z","author_association":"CONTRIBUTOR","body":"@aprokop I merged your fix; thanks! :-D"}}
{"actor":{"display_login":"mhoemmen"}}