Configuration fails with VTK for Fedora 26 #782
Replies: 16 comments 3 replies
|
Could you also upload the |
|
Can you try it without |
|
I get the same error. |
|
The only thing I find in your But I can't diagnose what the problem is from here. |
|
Do you have a configuration where you link VTK to t8code? If so, what command do you use for building? Without VTK, the configuration completes, meaning that this is not a general path issue, but specific to VTK. If it helps, the VTK CMake files are installed to $HOME/vtk_install/lib64/cmake/vtk-9.1. |
|
I compiled a setup script which works on my machine. #!/bin/bash
git clone 'https://gitlab.kitware.com/vtk/vtk.git'
pushd vtk
git checkout 'v9.1.0'
popd
mkdir vtk_build
VTK_INSTALL_PREFIX="${PWD}/vtk_install"
pushd vtk_build
cmake -D CMAKE_INSTALL_PREFIX="${VTK_INSTALL_PREFIX}" -D VTK_USE_MPI=ON ../vtk
make -j
make install
popd
export PATH="$PATH:${PWD}/vtk_install/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${PWD}/vtk_install/lib"
git clone 'https://github.com/DLR-AMR/t8code.git'
pushd t8code
git submodule init
git submodule update
./bootstrap
popd
mkdir t8code_build
T8CODE_INSTALL_PREFIX="${PWD}/t8code_install"
pushd t8code_build
../t8code/configure \
--prefix="${T8CODE_INSTALL_PREFIX}" \
--enable-mpi \
--with-vtk \
--with-vtk_version_number=9.1 \
CFLAGS="-O3" CXXFLAGS="-O3" \
CC=mpicc CXX=mpicxx \
LDFLAGS="-L${VTK_INSTALL_PREFIX}/lib" \
CPPFLAGS="-I${VTK_INSTALL_PREFIX}/include/vtk-9.1"
make -j
make install -j
popdEdit: Added backslash after |
|
Thanks for the script. When I ran it, it installed t8code. However, two strange things happened:
I think I found the cause of the problem. In your script, there is no backslash after I inserted the backslash and launched the script again. This time, it failed with the same error as I reported yesterday. It means that at least my installation commands were correct. Could you check what it gives you if you insert the backslash? If it also fails on your side, then I found a bug. If not, I must continue pinpointing the issue on my machine. |
|
Silly me. I edited this line after pasting the script to Github. On my machine I ran the script with the backslash. So, yes this script installs t8code linked against VTK 9.1.0. I also tested the exectuables, checked if they are indeed linked against VTK ( There must be something different on your machine. In the office I (must) work on (older) Ubuntu systems. |
|
I tested above script on my private machine with a quite recent ArchLinux setup. It worked without issues besides applying a small patch https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9857.patch which justs adds a header file for an unknown symbol. |
|
@CsatiZoltan You wrote that you are working on a Fedora machine? Which version? |
|
It's a very old Fedora, I will check its version number later (I'm not in office). |
|
@CsatiZoltan I spun up a Fedora 26 instance on a VM and tried to setup t8code there. However, the standard packages installed via This means one has to install custom versions of the whole compiler chain which is fiddly and hard to provide technical support for. I recommend to upgrade your system. Feel free to reopen this issue if there are follow-up questions. |
|
Thanks for trying it out. |
|
This time, I tried to install t8code on our cluster, based on CentOS 7.9 with kernel version 3.10.0-1160.el7.x86_64. I loaded the required modules: $ module list
Currently Loaded Modulefiles:
1) tools/automake/1.16.1
2) tools/git/2.37.1
3) tools/cmake/3.23.0
4) compiler/gcc/9.4.0
5) mpi/openmpi/4.1.1_gcc94
6) tools/libtool/2.4.6but the building failed (not a VTK error). To find the cause of the error, could you tell me what toolchain you use on your clusters? I saw in the Wiki that it is an Intel compiler and MPI. Strangely, on my Fedora desktop, it worked fine with the default GCC 7.3.1. |
Uh oh!
There was an error while loading. Please reload this page.
Following the Wiki for the installation, I use the following command:
which gives the error below:
Note that I had to change vtk_install/lib to vtk_install/lib64 on my Fedora Linux as VTK creates a lib64 directory (might be useful to update the Wiki).
Why does t8code not find my freshly installed VTK?
My $HOME/vtk_install/ folder has the following tree structure
I could
cdinto all the paths written in the configure command above, so it is not a typo.All reactions