{"action":"created","issue":{"url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/423","repository_url":"https://api.github.com/repos/AIDASoft/DD4hep","labels_url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/423/comments","events_url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/423/events","html_url":"https://github.com/AIDASoft/DD4hep/issues/423","id":345461859,"node_id":"MDU6SXNzdWUzNDU0NjE4NTk=","number":423,"title":"undefined reference","user":{"login":"jstrube","id":360190,"node_id":"MDQ6VXNlcjM2MDE5MA==","avatar_url":"https://avatars2.githubusercontent.com/u/360190?v=4","gravatar_id":"","url":"https://api.github.com/users/jstrube","html_url":"https://github.com/jstrube","followers_url":"https://api.github.com/users/jstrube/followers","following_url":"https://api.github.com/users/jstrube/following{/other_user}","gists_url":"https://api.github.com/users/jstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrube/subscriptions","organizations_url":"https://api.github.com/users/jstrube/orgs","repos_url":"https://api.github.com/users/jstrube/repos","events_url":"https://api.github.com/users/jstrube/events{/privacy}","received_events_url":"https://api.github.com/users/jstrube/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-28T16:38:02Z","updated_at":"2018-08-02T00:36:31Z","closed_at":"2018-08-02T00:36:31Z","author_association":"CONTRIBUTOR","body":"Since most of the suggestions I found for fixing the memcpy error #422 are to use a new compiler, I'm trying to do just that.\r\n```\r\nsource /cvmfs/ilc.desy.de/sw/x86_64_gcc49_sl6/v02-00-01/init_ilcsoft.sh\r\nsource /cvmfs/clicdp.cern.ch/Env/base.sh\r\nmkdir build\r\ncd build/\r\ncmake -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DGeant4_DIR=/cvmfs/ilc.desy.de/sw/x86_64_gcc49_sl6/v02-00-01/geant4/10.03.p02/lib64/Geant4-10.3.2/ -DROOT_DIR=$ROOTSYS ..\r\nmake -j4\r\n```\r\nUnfortunately, this dies with\r\n```\r\n[  0%] Built target DD4hepGaudiPluginMgr\r\n[  0%] Built target listcomponents\r\n[ 10%] Built target DDParsers\r\n[ 10%] Linking CXX shared library ../lib/libDDCore.so\r\nCMakeFiles/DDCore.dir/src/XML/DocumentHandler.cpp.o: In function `(anonymous namespace)::undressed_file_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':\r\n/home/jstrube/Workdir/DD4HEP_debug/DD4hep/DDCore/src/XML/DocumentHandler.cpp:37: undefined reference to `TString::TString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'\r\nCMakeFiles/DDCore.dir/G__DD4hep.cxx.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_G__DD4hep_Impl()':\r\n/home/jstrube/Workdir/DD4HEP_debug/DD4hep/build/DDCore/G__DD4hep.cxx:26083: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > > const&, char const**)'\r\nCMakeFiles/DDCore.dir/G__DD4hepProperties.cxx.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_G__DD4hepProperties_Impl()':\r\n/home/jstrube/Workdir/DD4HEP_debug/DD4hep/build/DDCore/G__DD4hepProperties.cxx:1796: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > > const&, char const**)'\r\nCMakeFiles/DDCore.dir/G__DD4hepSegmentations.cxx.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_G__DD4hepSegmentations_Impl()':\r\n/home/jstrube/Workdir/DD4HEP_debug/DD4hep/build/DDCore/G__DD4hepSegmentations.cxx:3081: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > > const&, char const**)'\r\nCMakeFiles/DDCore.dir/G__DD4hepGeo.cxx.o: In function `(anonymous namespace)::TriggerDictionaryInitialization_G__DD4hepGeo_Impl()':\r\n/home/jstrube/Workdir/DD4HEP_debug/DD4hep/build/DDCore/G__DD4hepGeo.cxx:4611: undefined reference to `TROOT::RegisterModule(char const*, char const**, char const**, char const*, char const*, void (*)(), std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > > const&, char const**)'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [lib/libDDCore.so.1.8] Error 1\r\nmake[1]: *** [DDCore/CMakeFiles/DDCore.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\nI suspect the newer gcc is stricter about order of includes and declaring classes, but I have not chased this down in detail. Can one compile DD4HEP this way? "},"comment":{"url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/comments/409768222","html_url":"https://github.com/AIDASoft/DD4hep/issues/423#issuecomment-409768222","issue_url":"https://api.github.com/repos/AIDASoft/DD4hep/issues/423","id":409768222,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTc2ODIyMg==","user":{"login":"jstrube","id":360190,"node_id":"MDQ6VXNlcjM2MDE5MA==","avatar_url":"https://avatars2.githubusercontent.com/u/360190?v=4","gravatar_id":"","url":"https://api.github.com/users/jstrube","html_url":"https://github.com/jstrube","followers_url":"https://api.github.com/users/jstrube/followers","following_url":"https://api.github.com/users/jstrube/following{/other_user}","gists_url":"https://api.github.com/users/jstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrube/subscriptions","organizations_url":"https://api.github.com/users/jstrube/orgs","repos_url":"https://api.github.com/users/jstrube/repos","events_url":"https://api.github.com/users/jstrube/events{/privacy}","received_events_url":"https://api.github.com/users/jstrube/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T00:36:31Z","updated_at":"2018-08-02T00:36:31Z","author_association":"CONTRIBUTOR","body":"hmm. Can't reproduce the error. Seems to work fine with your setup script now.\r\nThank you!"}}
{"actor":{"display_login":"jstrube"}}