Problem with the installation in Ubuntu

Asked by Gonzalo Tancredi

I have just made an update of the Ubuntu 10.04 and I have problems to compile ESyS.

The output of uname -a is
Linux gonzalo-laptop 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 x86_64 GNU/Linux

I follow the instructions of https://answers.launchpad.net/esys-particle/+faq/1282
How do I install ESyS-Particle on Ubuntu-10.04

I run the following commans:

sudo apt-get install subversion libtool automake build-essential libboost-all-dev openmpi-bin libopenmpi-dev povray-includes
sudo apt-get install libvtk5-dev python-epydoc
svn checkout https://svn.esscc.uq.edu.au/svn/esys3/lsm/trunk esys-particle
sh autogen.sh
./configure CC=mpicc CXX=mpic++
make

After a while I get the following error messages:

make[2]: Entering directory `/home/gonzalo/Software/ESyS-Particle-trunk/MainBE'
mpic++ -DHAVE_CONFIG_H -I. -I.. "-I.." -I/usr/include -I../Foundation -I../Model -I../Parallel -I../Fields -g -O2 -MT Worker.o -MD -MP -MF .deps/Worker.Tpo -c -o Worker.o Worker.cpp
mv -f .deps/Worker.Tpo .deps/Worker.Po
/bin/bash ../libtool --tag=CXX --mode=link mpic++ -g -O2 -release 2.0 -L/usr/lib -o ESySParticleBEWorker Worker.o ../Parallel/libParallel.la ../ntable/src/libntable.la ../tml/message/libTmlMessage.la ../tml/type/libTmlType.la ../ppa/src/libppa.la ../Fields/libFields.la ../Geometry/libGgGeometry.la -lboost_filesystem-mt -lpython2.6
libtool: link: warning: `-release' is ignored for programs
libtool: link: mpic++ -g -O2 -o .libs/ESySParticleBEWorker Worker.o -L/usr/lib ../Parallel/.libs/libParallel.so ../ntable/src/.libs/libntable.so ../tml/message/.libs/libTmlMessage.so ../tml/type/.libs/libTmlType.so ../ppa/src/.libs/libppa.so ../Fields/.libs/libFields.so ../Geometry/.libs/libGgGeometry.so -lboost_filesystem-mt -lpython2.6
/usr/bin/ld: warning: libboost_filesystem-mt.so.1.38.0, needed by /usr/local/lib/libFoundation-2.0.so, not found (try using -rpath or -rpath-link)
../Parallel/.libs/libParallel.so: undefined reference to `ARotThermPairInteraction::checkIDs()'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotThermFrictionInteraction>(CRotThermFrictionInteraction&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::getScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotThermParticle::exchangeType>(CRotThermParticle::exchangeType&)'
../Parallel/.libs/libParallel.so: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, CRotThermParticle const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::getVectorFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::loadCheckPointData(std::basic_istream<char, std::char_traits<char> >&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotThermFrictionInteraction>(CRotThermFrictionInteraction const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::getScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::setExchangeValues(CRotThermParticle::exchangeType const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermElasticInteraction::getScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::CRotThermBondedInteraction()'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotThermElasticIGP'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotThermParticle'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::setCircular(Vec3 const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermElasticIGP::CRotThermElasticIGP()'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotParticleVi>(CRotParticleVi const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::getVectorFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::loadRestartData(std::basic_istream<char, std::char_traits<char> >&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::setExchangeValues(CRotParticleVi::exchangeType const&)'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotThermBondedInteraction'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotParticleVi>(CRotParticleVi&)'
../Parallel/.libs/libParallel.so: undefined reference to `ARotThermPairInteraction::~ARotThermPairInteraction()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::getVectorFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermElasticInteraction::getCheckedScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `ARotThermPairInteraction::setPP(std::vector<CRotThermParticle*, std::allocator<CRotThermParticle*> >)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::CRotThermBondedInteraction(CRotThermParticle*, CRotThermParticle*, CRotThermBondedIGP const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotParticleVi::exchangeType>(CRotParticleVi::exchangeType const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotThermBondedInteraction>(CRotThermBondedInteraction const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::getCheckedScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedIGP::CRotThermBondedIGP()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::CRotThermFrictionInteraction(CRotThermParticle*, CRotThermParticle*, CRotThermFrictionIGP const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::~CRotThermBondedInteraction()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermElasticInteraction::CRotThermElasticInteraction(CRotThermParticle*, CRotThermParticle*, CRotThermElasticIGP const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::setCircular(Vec3 const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::getScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotThermBondedInteraction>(CRotThermBondedInteraction&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::CRotThermParticle(esys::lsm::SimpleParticleData const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::CRotThermFrictionInteraction()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionIGP::CRotThermFrictionIGP()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::getExchangeValues()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermBondedInteraction::broken()'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotThermParticle::exchangeType>(CRotThermParticle::exchangeType const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::loadRestartData(std::basic_istream<char, std::char_traits<char> >&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::getCheckedScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotThermElasticInteraction'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::CRotParticleVi(esys::lsm::SimpleParticleData const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotParticleVi::exchangeType>(CRotParticleVi::exchangeType&)'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotThermFrictionInteraction'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::CRotThermParticle()'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::unpack<CRotThermParticle>(CRotThermParticle&)'
../Parallel/.libs/libParallel.so: undefined reference to `BondedInteractionCpData::BondedInteractionCpData(CRotThermBondedInteraction const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::rescale()'
../Parallel/.libs/libParallel.so: undefined reference to `operator<<(std::basic_ostream<char, std::char_traits<char> >&, CRotParticleVi const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CFrictionInteraction::loadRestartData(std::basic_istream<char, std::char_traits<char> >&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::getVectorFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::getExchangeValues()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermParticle::getScalarFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `ARotThermPairInteraction::setPP(CRotThermParticle*, CRotThermParticle*)'
../Parallel/.libs/libParallel.so: undefined reference to `CRotParticleVi::CRotParticleVi()'
../Parallel/.libs/libParallel.so: undefined reference to `vtable for CRotParticleVi'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermFrictionInteraction::~CRotThermFrictionInteraction()'
../Parallel/.libs/libParallel.so: undefined reference to `CRotThermElasticInteraction::getVectorFieldFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
../Parallel/.libs/libParallel.so: undefined reference to `void TML_PackedMessageInterface::pack<CRotThermParticle>(CRotThermParticle const&)'
collect2: ld returned 1 exit status
make[2]: *** [ESySParticleBEWorker] Error 1
make[2]: Leaving directory `/home/gonzalo/Software/ESyS-Particle-trunk/MainBE'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gonzalo/Software/ESyS-Particle-trunk'
make: *** [all] Error 2

Any clue about what is the problem?

Gonzalo

Question information

Language:
English Edit question
Status:
Solved
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Solved by:
Gonzalo Tancredi
Solved:
Last query:
Last reply:
Revision history for this message
Gonzalo Tancredi (gonzalo) said :
#1

Humans are the only animal that make mistakes twice !!!

Some time ago, I experienced a similar problem like the one mentioned above, but I haven't realized that it was the same problem.
It is mentioned in
https://bugs.launchpad.net/esys-particle/+bug/490045

The solution was already given by Dion in the previous report

Before you tried to compile the new trunk you should do the following:

* cd old/esys/source/dir
* sudo make uninstall
* make distclean

* cd new/esys/source/trunk/
* sh autogeon.sh
* ./configure ...
* make

My apologies to put the same question.

Gonzalo

Revision history for this message
Dion Weatherley (d-weatherley) said :
#2

Hi Gonzalo,

Great to hear from you again...and even better that you resolved your installation problem quickly! I'm eager to hear how your research is going so please email me soon.

For the benefit of others reading this thread, it is important to ensure that old versions of ESyS-Particle are removed before installing the latest development version. In preparation for the v2.1 release, Vince Boros has added quite a lot of code to include thermal interactions. This means old shared libraries are incompatible with newer versions of ESyS-Particle.

In case "make uninstall" doesn't work, instructions on how to manually remove old versions of ESyS-Particle are available here:
https://answers.launchpad.net/esys-particle/+faq/947

Cheers,

Dion.