I am trying to build deal.II on a cluster with x86_64 architecture, Scientific
Linux 6.9 (Carbon), gcc 7.2.0 and openmpi 3.0.0. (Yes, I am building dealii
everywhere, as our entire research group just began to use dealii.) This time,
I got linking error related to SolutionTransfer as follows:
Linking CXX executable ../bin/step-15.release
CMakeFiles/step-15.release.dir/step-15/step-15.cc.o: In function
`Step15::MinimalSurfaceProblem<2>::refine_mesh()':
step-15.cc:(.text._ZN6Step1521MinimalSurfaceProblemILi2EE11refine_meshEv[_ZN6Step1521MinimalSurfaceProblemILi2EE11refine_meshEv]+0x1c0):
undefined reference to `dealii::SolutionTransfer<2, dealii::Vector<double>,
This is strange. SolutionTransfer is used in a number of tutorial programs,
for example step-26. Can you link that file?
The source code is the latest up to Jan 27. Everything else seems to be fine:
I am able to run step-18, but not step-15 because the latter uses
SolutionTransfer. The error message does not provide any information, I don't
know where to start debugging. I've attached my building logs. Any advice is
appreciated!
The function should have been produced from the file
source/numeric/solution_transfer.cc. What happens if you do
touch /path/to/sources-of-dealii/source/numerics/solution_transfer.cc
cd /path/to/your/build/directory
make -j1 install
I can only imagine that the build of this file failed for some reason (out of
memory?) and the commands above just force a re-build.
P.S. dealii was built with: cmake ../dealii -DBUILD_SHARED_LIBS=OFF
-DCMAKE_BUILD_TYPE=Release -DDEAL_II_WITH_CXX14=ON -DDEAL_II_WITH_LAPACK=ON
-DLAPACK_DIR=../lapack-build -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_P4EST=ON
-DP4EST_DIR=../p4est-1.1/local -DDEAL_II_WITH_PETSC=ON
-DPETSC_ARCH=arch-linux2-c-opt -DPETSC_DIR=../petsc-3.8.2
You are building with static (i.e., without shared) libraries. This is
uncommon these days? What are you reasons for doing so? It will take forever
for you to link any application. It will also take enormous amounts of disk
space if you build multiple applications.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.