GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Installation and Compilation » Installation fails (neuland reconstruction directory)
Installation fails [message #20562] Thu, 16 March 2017 16:48 Go to next message
lanyizsombor is currently offline  lanyizsombor
Messages: 6
Registered: March 2017
Location: Budapest, Hungary
occasional visitor
From: *catv.broadband.hu
Hi Dima,

I'm installing R3BRoot to another computer, everything (FairSoft, FairRoot and R3BRoot) is the latest version, and I followed all the instructions that I followed before, when I installed it before, on my other machine. But cmake fails when building neuland/reconstruction directory with pointer error:

...
[ 53%] Building CXX object neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstru ctionNeuralNetworkMultiplicity.cxx.o
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx: In member function 'virtual std::vector<R3BNeulandNeutron> Neuland::ReconstructionNeuralNetworkMultiplicity::GetNeutrons(const std::vector<R3BNeulandCluster*>&) const':
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:69:39: error: no matching function for call to 'FairMQSocketZMQ::Send(std::unique_ptr<FairMQMessageZMQ>::pointer, int)'
fSocket->Send(msg.get(), 0);
^
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:69:39: note: candidates are:
In file included from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.h:6:0,
from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:1:
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:38:17: note: virtual int FairMQSocketZMQ::Send(FairMQMessagePtr&, int)
virtual int Send(FairMQMessagePtr& msg, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:38:17: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'FairMQMessagePtr& {aka std::unique_ptr<FairMQMessage>&}'
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:41:21: note: virtual int64_t FairMQSocketZMQ::Send(std::vector<std::unique_ptr<FairMQMessage> >&, int)
virtual int64_t Send(std::vector<std::unique_ptr<FairMQMessage>>& msgVec, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:41:21: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'std::vector<std::unique_ptr<FairMQMessage> >&'
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:73:43: error: no matching function for call to 'FairMQSocketZMQ::Receive(std::unique_ptr<FairMQMessageZMQ>::pointer, int)'
fSocket->Receive(answ.get(), 0);
^
/home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:73:43: note: candidates are:
In file included from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.h:6:0,
from /home/lanyi/R3BRoot/neuland/reconstruction/ReconstructionNeuralNetworkMu ltiplicity.cxx:1:
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:39:17: note: virtual int FairMQSocketZMQ::Receive(FairMQMessagePtr&, int)
virtual int Receive(FairMQMessagePtr& msg, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:39:17: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'FairMQMessagePtr& {aka std::unique_ptr<FairMQMessage>&}'
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:42:21: note: virtual int64_t FairMQSocketZMQ::Receive(std::vector<std::unique_ptr<FairMQMessage> >&, int)
virtual int64_t Receive(std::vector<std::unique_ptr<FairMQMessage>>& msgVec, const int flags = 0);
^
/home/lanyi/FairRoot/install-v-16.06a/include/FairMQSocketZMQ.h:42:21: note: no known conversion for argument 1 from 'std::unique_ptr<FairMQMessageZMQ>::pointer {aka FairMQMessageZMQ*}' to 'std::vector<std::unique_ptr<FairMQMessage> >&'
neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/build.mak e:207: recipe for target 'neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstr uctionNeuralNetworkMultiplicity.cxx.o' failed
make[2]: *** [neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/Reconstr uctionNeuralNetworkMultiplicity.cxx.o] Error 1
CMakeFiles/Makefile2:1587: recipe for target 'neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/all' failed
make[1]: *** [neuland/reconstruction/CMakeFiles/R3BNeulandReconstruction.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Best regards,
Zsombor
Re: Installation fails [message #20565 is a reply to message #20562] Thu, 16 March 2017 17:00 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *dyn.telefonica.de
Hi Lanyi,

Which compilers do you have on both machines? Please post here output of "gcc --version"

Best regards,
Dima
Re: Installation fails [message #20569 is a reply to message #20565] Thu, 16 March 2017 20:53 Go to previous messageGo to next message
lanyizsombor is currently offline  lanyizsombor
Messages: 6
Registered: March 2017
Location: Budapest, Hungary
occasional visitor
From: *catv.broadband.hu
Gcc, g++ and gfortran is also version 4.9.3 (Ubuntu 4.9.3-13ubuntu2), because at the previous installation the compilation with newer versions failed, so I downgraded them.

Best,
Zsombor
Re: Installation fails [message #20579 is a reply to message #20569] Fri, 17 March 2017 06:23 Go to previous messageGo to next message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *dyn.telefonica.de
There was an update of neuland directory some days ago. Can you try to run "git pull origin", previously committing your changes locally?

Meanwhile I will check with my Ubuntu installation, and which compiler I have there.

Best regards,
Dima
Re: Installation fails [message #20580 is a reply to message #20579] Fri, 17 March 2017 11:08 Go to previous messageGo to next message
lanyizsombor is currently offline  lanyizsombor
Messages: 6
Registered: March 2017
Location: Budapest, Hungary
occasional visitor
From: *elte.hu
I pulled the repository the way you told (git pull origin), rebuilt the project, and now everything's fine. Thank you for the help.

Best regards,
Zsombor
Re: Installation fails [message #20594 is a reply to message #20562] Fri, 17 March 2017 13:22 Go to previous message
Jan Mayer is currently offline  Jan Mayer
Messages: 20
Registered: August 2015
occasional visitor
From: *ikp.uni-koeln.de
That problem is on me - there was a change to FairMQ in FairRoot/dev which I do not yet have accounted for.

In the meantime you can simply exclude that specific file from build, that is in

neuland/CMakeLists.txt
if(ROOT_VERSION_MAJOR GREATER 5)
#	add_subdirectory(reconstruction)  <-- don't build that for the moment
	add_subdirectory(clustering)
	add_subdirectory(digitizing)
else(ROOT_VERSION_MAJOR GREATER 5)


Best,
Jan
Previous Topic: Fresh Installation does not work
Next Topic: FairRoot installation problem
Goto Forum:
  


Current Time: Fri Apr 26 23:36:03 CEST 2024

Total time taken to generate the page: 0.00795 seconds