{"action":"created","issue":{"url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/5","repository_url":"https://api.github.com/repos/micromagnetics/magnum.fe","labels_url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/5/comments","events_url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/5/events","html_url":"https://github.com/micromagnetics/magnum.fe/issues/5","id":127034832,"number":5,"title":"Error while building","user":{"login":"nagasam","id":16735130,"avatar_url":"https://avatars.githubusercontent.com/u/16735130?v=3","gravatar_id":"","url":"https://api.github.com/users/nagasam","html_url":"https://github.com/nagasam","followers_url":"https://api.github.com/users/nagasam/followers","following_url":"https://api.github.com/users/nagasam/following{/other_user}","gists_url":"https://api.github.com/users/nagasam/gists{/gist_id}","starred_url":"https://api.github.com/users/nagasam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagasam/subscriptions","organizations_url":"https://api.github.com/users/nagasam/orgs","repos_url":"https://api.github.com/users/nagasam/repos","events_url":"https://api.github.com/users/nagasam/events{/privacy}","received_events_url":"https://api.github.com/users/nagasam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-16T16:31:19Z","updated_at":"2016-10-02T11:00:26Z","closed_at":null,"body":"nagarjuna@nagarjuna-Inspiron-5548:~/magnum.fe-master$ ll\r\ntotal 108\r\ndrwxrwxr-x 10 nagarjuna nagarjuna  4096  1月 17 01:13 ./\r\ndrwxr-xr-x 24 nagarjuna nagarjuna  4096  1月 17 01:17 ../\r\n-rw-rw-r--  1 nagarjuna nagarjuna    77  7月 18 18:12 AUTHORS\r\ndrwxrwxr-x  2 nagarjuna nagarjuna  4096  7月 18 18:12 cmake/\r\n-rw-rw-r--  1 nagarjuna nagarjuna  4460  7月 18 18:12 CMakeLists.txt\r\n-rw-rw-r--  1 nagarjuna nagarjuna 35147  7月 18 18:12 COPYING\r\n-rw-rw-r--  1 nagarjuna nagarjuna  7639  7月 18 18:12 COPYING.LESSER\r\ndrwxrwxr-x  4 nagarjuna nagarjuna  4096  7月 18 18:12 doc/\r\n-rw-rw-r--  1 nagarjuna nagarjuna  2555  7月 18 18:12 Dockerfile\r\ndrwxrwxr-x  6 nagarjuna nagarjuna  4096  7月 18 18:12 examples/\r\ndrwxrwxr-x  2 nagarjuna nagarjuna  4096  7月 18 18:12 git_hooks/\r\n-rw-rw-r--  1 nagarjuna nagarjuna   361  7月 18 18:12 .gitignore\r\ndrwxrwxr-x  4 nagarjuna nagarjuna  4096  7月 18 18:12 magnumfe/\r\n-rw-rw-r--  1 nagarjuna nagarjuna  2957  7月 18 18:12 README.md\r\ndrwxrwxr-x  3 nagarjuna nagarjuna  4096  7月 18 18:12 site-packages/\r\ndrwxrwxr-x  4 nagarjuna nagarjuna  4096  7月 18 18:12 tests/\r\ndrwxrwxr-x  3 nagarjuna nagarjuna  4096  7月 18 18:12 virtual/\r\nnagarjuna@nagarjuna-Inspiron-5548:~/magnum.fe-master$ mkdir build\r\nnagarjuna@nagarjuna-Inspiron-5548:~/magnum.fe-master$ cd build\r\nnagarjuna@nagarjuna-Inspiron-5548:~/magnum.fe-master/build$ cmake ..\r\n-- The C compiler identification is GNU 4.8.4\r\n-- The CXX compiler identification is GNU 4.8.4\r\n-- Check for working C compiler: /usr/bin/cc\r\n-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++\r\n-- Check for working CXX compiler: /usr/bin/c++ -- 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\n-- Found SWIG: /usr/bin/swig3.0 (found version \"3.0.5\") \r\n-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version \"2.7.6\") \r\n-- Found Python: /usr/lib/x86_64-linux-gnu/libpython2.7.so (Required is at least version \"2\") \r\n-- Found PythonInterp: /usr/bin/python2.7 (found version \"2.7.6\") \r\n-- Found NumPy: version \"1.8.2\" /usr/lib/python2.7/dist-packages/numpy/core/include\r\n-- Found Python 2.7, will install at /usr/local/lib/python2.7/dist-packages\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/nagarjuna/magnum.fe-master/build\r\nnagarjuna@nagarjuna-Inspiron-5548:~/magnum.fe-master/build$ sudo make\r\n[sudo] password for nagarjuna: \r\nScanning dependencies of target magnumfe\r\n[ 16%] Building CXX object CMakeFiles/magnumfe.dir/magnumfe/SubMeshInterpolator.cpp.o\r\n[ 33%] Building CXX object CMakeFiles/magnumfe.dir/magnumfe/DofForm.cpp.o\r\n[ 50%] Building CXX object CMakeFiles/magnumfe.dir/magnumfe/DofAssembler.cpp.o\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp: In static member function ‘static void magnumfe::DofAssembler::assemble(dolfin::GenericTensor&, const magnumfe::DofForm&, bool)’:\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:58:76: error: taking address of temporary [-fpermissive]\r\n         dofs[i] = &(a.function_space(i)->dofmap()->cell_dofs(cell->index()));\r\n                                                                            ^\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:58:17: error: cannot convert ‘dolfin::ArrayView<const int>*’ to ‘__gnu_cxx::__alloc_traits<std::allocator<const std::vector<int>*> >::value_type {aka const std::vector<int>*}’ in assignment\r\n         dofs[i] = &(a.function_space(i)->dofmap()->cell_dofs(cell->index()));\r\n                 ^\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:68:42: error: no matching function for call to ‘dolfin::GenericSparsityPattern::insert_global(std::vector<const std::vector<int>*>&)’\r\n         pattern.insert_global(ptr_entries);\r\n                                          ^\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:68:42: note: candidate is:\r\nIn file included from /usr/include/dolfin/la/dolfin_la.h:13:0,\r\n                 from /usr/include/dolfin.h:22,\r\n                 from /home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.h:23,\r\n                 from /home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:20:\r\n/usr/include/dolfin/la/GenericSparsityPattern.h:66:18: note: virtual void dolfin::GenericSparsityPattern::insert_global(const std::vector<dolfin::ArrayView<const int> >&)\r\n     virtual void insert_global(const std::vector<\r\n                  ^\r\n/usr/include/dolfin/la/GenericSparsityPattern.h:66:18: note:   no known conversion for argument 1 from ‘std::vector<const std::vector<int>*>’ to ‘const std::vector<dolfin::ArrayView<const int> >&’\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:100:74: error: taking address of temporary [-fpermissive]\r\n       dofs[i] = &(a.function_space(i)->dofmap()->cell_dofs(cell->index()));\r\n                                                                          ^\r\n/home/nagarjuna/magnum.fe-master/magnumfe/DofAssembler.cpp:100:15: error: cannot convert ‘dolfin::ArrayView<const int>*’ to ‘__gnu_cxx::__alloc_traits<std::allocator<const std::vector<int>*> >::value_type {aka const std::vector<int>*}’ in assignment\r\n       dofs[i] = &(a.function_space(i)->dofmap()->cell_dofs(cell->index()));\r\n               ^\r\nmake[2]: *** [CMakeFiles/magnumfe.dir/magnumfe/DofAssembler.cpp.o] Error 1\r\nmake[1]: *** [CMakeFiles/magnumfe.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n"},"comment":{"url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/comments/250965669","html_url":"https://github.com/micromagnetics/magnum.fe/issues/5#issuecomment-250965669","issue_url":"https://api.github.com/repos/micromagnetics/magnum.fe/issues/5","id":250965669,"user":{"login":"junnoaki","id":22543101,"avatar_url":"https://avatars.githubusercontent.com/u/22543101?v=3","gravatar_id":"","url":"https://api.github.com/users/junnoaki","html_url":"https://github.com/junnoaki","followers_url":"https://api.github.com/users/junnoaki/followers","following_url":"https://api.github.com/users/junnoaki/following{/other_user}","gists_url":"https://api.github.com/users/junnoaki/gists{/gist_id}","starred_url":"https://api.github.com/users/junnoaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junnoaki/subscriptions","organizations_url":"https://api.github.com/users/junnoaki/orgs","repos_url":"https://api.github.com/users/junnoaki/repos","events_url":"https://api.github.com/users/junnoaki/events{/privacy}","received_events_url":"https://api.github.com/users/junnoaki/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T11:00:26Z","updated_at":"2016-10-02T11:00:26Z","body":"I found this error occurs because magnam.fe is not fully compatible with fenics >= 1.6.0.\r\nWhen I downgraded fenics (and other related packages) into v1.5.x, this issue was solved.\r\n"}}
{"actor":{"display_login":"junnoaki"}}