[Yade-users] [Question #683819]: Error during installation: libyade.so
New question #683819 on Yade: https://answers.launchpad.net/yade/+question/683819 Hello everyone, When I was trying to install yade_2018.02b from source code on Ubuntu 16.04 (64bit). I have successfully finished the "cmake" without errors and the enabled and disabled options were shown as: -- === -- Yade configured with following features: Odeint VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW TWOPHASEFLOW LINSOLV SPH DEFORM LIQMIGRATION GL2PS LBMFLOW MASK_ARBITRARY PROFILING PotentialParticles PotentialBlocks -- Disabled features: CHOLMOD_GPU -- Optimized build -- === -- Configuring done -- Generating done -- Build files have been written to: /home/yufan/myYade/build However, there is something wrong during the subsequent "make" step. The log with errors: root@yufan-virtual-machine:/home/yufan/myYade/build# sudo make -j2 [ 1%] Automatic moc for target boot [ 2%] Automatic moc for target yade [ 2%] Built target boot_automoc [ 2%] Automatic moc for target _GLViewer [ 2%] Built target _GLViewer_automoc [ 3%] Automatic moc for target _polyhedra_utils [ 3%] Built target _polyhedra_utils_automoc [ 3%] Built target yade_automoc [ 3%] Automatic moc for target _packSpheres [ 3%] Automatic moc for target _packPredicates [ 3%] Built target _packSpheres_automoc [ 3%] Built target _packPredicates_automoc [ 4%] Automatic moc for target wrapper [ 4%] Automatic moc for target _packObb [ 4%] Built target wrapper_automoc [ 4%] Built target _packObb_automoc [ 4%] Automatic moc for target WeightedAverage2d [ 5%] Automatic moc for target _utils [ 5%] Built target WeightedAverage2d_automoc [ 5%] Built target _utils_automoc [ 5%] Automatic moc for target _customConverters [ 5%] Built target _customConverters_automoc [ 6%] Built target _polyhedra_utils [ 10%] Built target _GLViewer [ 12%] Built target _packObb [ 13%] Built target WeightedAverage2d [ 13%] Linking CXX shared library lib/x86_64-linux-gnu/libyade.so /usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libbz2.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status CMakeFiles/yade.dir/build.make:4363: recipe for target 'lib/x86_64-linux-gnu/libyade.so' failed make[2]: *** [lib/x86_64-linux-gnu/libyade.so] Error 1 CMakeFiles/Makefile2:171: recipe for target 'CMakeFiles/yade.dir/all' failed make[1]: *** [CMakeFiles/yade.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 I will be appreciate if someone can give me some tips to solve the problem. Thanks very much. You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Open => Needs information Robert Caulk requested more information: Did you try to "recompile with -fPIC" ? -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Jan Stránský requested more information: @Robert: > SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -O2 --param=ssp-buffer- size=4 -Wformat -Wformat-security -Werror=format-security -Wall -std=c++11") this is from CMakeLists.txt of 2018.02b, -fPIC should be already there @yufan: what does "make VERBOSE=ON" tells? Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Robert Caulk posted a new comment: Also try compiling without "sudo". -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Needs information => Open YUFAN ZHAO gave more information on the question: @Robert >Also try compiling without "sudo". Thanks for your advice, but it made no sense w/ or w/o "sudo". -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 YUFAN ZHAO gave more information on the question: @Jan >what does "make VERBOSE=ON" tells? Thanks for your reply. There was no change about the error after typing "make VERBOSE=ON". The log shown as below: [ 6%] Linking CXX shared library lib/x86_64-linux-gnu/libyade.so /usr/bin/cmake -E cmake_link_script CMakeFiles/yade.dir/link.txt --verbose=ON /usr/bin/c++ -fPIC -fPIC -O2 --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -std=c++11 -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include -DQGLVIEWER_FOUND -DYADE_OPENGL -DYADE_QT5 -DYADE_CGAL -DFLOW_ENGINE -DTWOPHASEFLOW -DLINSOLV -DFLOW_ENGINE -DYADE_GL2PS -DLBM_ENGINE -Wl,--as-needed -shared -Wl,-soname,libyade.so -o lib/x86_64-linux-gnu/libyade.so CMakeFiles/yade.dir/core/ForceContainerSerial.cpp.o CMakeFiles/yade.dir/core/InteractionContainer.cpp.o CMakeFiles/yade.dir/core/Cell.cpp.o CMakeFiles/yade.dir/core/State.cpp.o CMakeFiles/yade.dir/core/ForceContainerParallel.cpp.o CMakeFiles/yade.dir/core/Material.cpp.o CMakeFiles/yade.dir/core/ThreadRunner.cpp.o CMakeFiles/yade.dir/core/Scene.cpp.o CMakeFiles/yade.dir/core/FileGenerator.cpp.o CMakeFiles/yade.dir/core/BodyContainer.cpp.o CMakeFiles/yade.dir/core/SimulationFlow.cpp.o CMakeFiles/yade.dir/core/Clump.cpp.o CMakeFiles/yade.dir/core/ThreadWorker.cpp.o CMakeFiles/yade.dir/core/corePlugins.cpp.o CMakeFiles/yade.dir/core/Interaction.cpp.o CMakeFiles/yade.dir/core/Omega.cpp.o CMakeFiles/yade.dir/core/Body.cpp.o CMakeFiles/yade.dir/pkg/dem/MeasureCapStress.cpp.o CMakeFiles/yade.dir/pkg/dem/BlockGen.cpp.o CMakeFiles/yade.dir/pkg/dem/PotentialBlock2AABB.cpp.o CMakeFiles/yade.dir/pkg/dem/BubbleMat.cpp.o CMakeFiles/yade.dir/pkg/dem/TriaxialStressController.cpp.o CMakeFiles/yade.dir/pkg/dem/Polyhedra.cpp.o CMakeFiles/yade.dir/pkg/dem/GeneralIntegratorInsertionSortCollider.cpp.o CMakeFiles/yade.dir/pkg/dem/Ip2_ElastMat.cpp.o CMakeFiles/yade.dir/pkg/dem/CapillaryPhys.cpp.o CMakeFiles/yade.dir/pkg/dem/FrictViscoPM.cpp.o CMakeFiles/yade.dir/pkg/dem/TriaxialTest.cpp.o CMakeFiles/yade.dir/pkg/dem/TriaxialCompressionEngine.cpp.o CMakeFiles/yade.dir/pkg/dem/ViscoelasticCapillarPM.cpp.o CMakeFiles/yade.dir/pkg/dem/SpheresFactory.cpp.o CMakeFiles/yade.dir/pkg/dem/ForceTorqueRecorder.cpp.o CMakeFiles/yade.dir/pkg/dem/FacetTopologyAnalyzer.cpp.o CMakeFiles/yade.dir/pkg/dem/PotentialBlock.cpp.o CMakeFiles/yade.dir/pkg/dem/ThreeDTriaxialEngine.cpp.o CMakeFiles/yade.dir/pkg/dem/VTKRecorder.cpp.o CMakeFiles/yade.dir/pkg/dem/UniaxialStrainer.cpp.o CMakeFiles/yade.dir/pkg/dem/ViscoelasticPM.cpp.o CMakeFiles/yade.dir/pkg/dem/Ig2_PP_PP_ScGeom.cpp.o CMakeFiles/yade.dir/pkg/dem/Ig2_Facet_Sphere_ScGeom.cpp.o CMakeFiles/yade.dir/pkg/dem/Polyhedra_splitter.cpp.o CMakeFiles/yade.dir/pkg/dem/CapillaryPhys1.cpp.o CMakeFiles/yade.dir/pkg/dem/TesselationWrapper.cpp.o CMakeFiles/yade.dir/pkg/dem/KnKsPBLaw.cpp.o CMakeFiles/yade.dir/pkg/dem/PotentialParticle2AABB.cpp.o CMakeFiles/yade.dir/pkg/dem/SimpleShear.cpp.o CMakeFiles/yade.dir/pkg/dem/ElectrostaticMat.cpp.o CMakeFiles/yade.dir/pkg/dem/FrictPhys.cpp.o CMakeFiles/yade.dir/pkg/dem/Integrator.cpp.o CMakeFiles/yade.dir/pkg/dem/RockBolt.cpp.o CMakeFiles/yade.dir/pkg/dem/KinemC__Engine.cpp.o CMakeFiles/yade.dir/pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity.cpp.o CMakeFiles/yade.dir/pkg/dem/STLImporter.cpp.o CMakeFiles/yade.dir/pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity1.cpp.o CMakeFiles/yade.dir/pkg/dem/ElasticContactLaw.cpp.o CMakeFiles/yade.dir/pkg/dem/GlobalStiffnessTimeStepper.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Bo1_DeformableElement_Aabb.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Lin4NodeTetra_Lin4NodeTetra_InteractionElement.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Gl1_Node.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/DeformableCohesiveElement.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/FEInternalForceDispatchers.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Gl1_DeformableElement.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/DeformableElement.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Lin4NodeTetra.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/LinElastMat.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/CohesiveMat.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Bo1_Node_Aabb.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/Node.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/FEInternalForceEngine.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/If2_2xLin4NodeTetra_LinCohesiveStiffPropDampElastMat.cpp.o CMakeFiles/yade.dir/pkg/dem/deformablecohesive/If2_Lin4NodeTetra_LinIsoRayleighDampElast.cpp.o CMakeFiles/yade.dir/pkg/dem/ConcretePM.cpp.o CMakeFiles/yade.dir/pkg/dem/PotentialParticle.cpp.o CMakeFi
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Open => Needs information Jan Stránský requested more information: > There was no change about the error after typing "make VERBOSE=ON". > > /usr/bin/c++ -fPIC ... the point was that now it is clear that -fPIC was used why you want to build Yade 2018.02b from source? A solution **could** be to use a newer version of Ubuntu (with no guarantee of success and all the disadvantages of system upgraging). cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Bruno Chareyre posted a new comment: Hi, please try to build again in a new folder and show the output of cmake this time. Bruno -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Needs information => Open YUFAN ZHAO gave more information on the question: @Jan Thank you very much. >A solution **could** be to use a newer version of Ubuntu (with no guarantee of success and all the disadvantages of system upgrading). Actually, I tried to install 2019 at first, but I encountered the problem that I described above. Then I turned to a different version (2018.02b) and the same problem occurred. -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 YUFAN ZHAO gave more information on the question: @Bruno >please try to build again in a new folder and show the output of cmake this time. Thanks very much for your response. I built again into another folder and the info. is shown as below: root@yufan-virtual-machine:/home/yufan/Yade/Building# cmake -DCMAKE_INSTALL_PREFIX=../Installation ../Source -DENABLE_POTENTIAL_BLOCKS=1 -DENABLE_POTENTIAL_PARTICLES=1 -DENABLE_DEFORM=1 -DCHOLMOD_GPU=1 -DENABLE_SPH=1 -DENABLE_LIQMIGRATION=1 -DENABLE_MASK_ARBITRARY=1 -DENABLE_PROFILING=1 -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version "4.8.7") -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Version is set to 2019.01a -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so -- GTS using gts-config /usr/bin/gts-config -- Using GTS from /usr -- Found GL2PS: /usr/lib/libgl2ps.so -- Found CGAL: /usr/include, /usr/lib/x86_64-linux-gnu/libCGAL.so -- Found NumPy: version "1.11.0" /usr/lib/python2.7/dist-packages/numpy/core/include -- Found Loki: /usr/include -- GCC Version >= 4.8. Adding -ftrack-macro-expansion=0 -- GCC Version >= 4.8. Adding -save-temps -- GCC Version >= 4.9. Adding -fstack-protector-strong -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.58.0 -- Found the following Boost libraries: -- python -- thread -- filesystem -- iostreams -- regex -- serialization -- system -- date_time -- chrono -- atomic -- Boost_VERSION: 105800 -- Boost_LIB_VERSION: 1_58 -- Boost_INCLUDE_DIRS: /usr/include -- Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libpthread.so -- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") -- Found BZip2: /usr/local/lib/libbz2.a (found version "1.0.6") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.12") -- Found Eigen3, version: 3.2.92 -- Disable vectorization -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- Found VTK -- Found OpenMP -- GTS using gts-config /usr/bin/gts-config -- Using GTS from /usr -- Checking for
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 YUFAN ZHAO gave more information on the question: @Bruno Chareyre @Jan Stránský I want to provide additional information that the Ubuntu is running through a Vmware (virtual machine). Is it correlated with the problem? -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Jan Stránský posted a new comment: > Actually, I tried to install 2019 at first, but I encountered the problem that I described above. Then I turned to a different version (2018.02b) and the same problem occurred. my note was about trying different version of **operating system**, not Yade. In your case, you have quite new Yade version running on quite old Ubuntu. There could be some mismatch with used libraries (new Yade expecting something which is not present yet on the system). The problem is, that nobody will happy to trying this case, not saying about fixing the issue.. cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Open => Solved YUFAN ZHAO confirmed that the question is solved: @Jan Stránský Thank you all very much! -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp