View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003821 | OpenFOAM | Bug | public | 2022-04-03 11:34 | 2022-04-04 11:33 |
Reporter | Yuusha | Assigned To | henry | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Mageia | OS Version | 8 |
Product Version | dev | ||||
Fixed in Version | dev | ||||
Summary | 0003821: Compilation error with polyTopoChange/polyTopoChange/polyTopoChange.C | ||||
Description | Compiling OpenFOAM-dev on Mageia 8 gives the error attached when trying to compile polyTopoChange/polyTopoChange/polyTopoChange.C. g++ --version : g++ (Mageia 10.3.0-2.mga8) 10.3.0 WM_LABEL=SIZE = 64 I tried on several computers with Mageia 8 and in super-user (installation in /opt) and normal user (installation in $HOME) and the error is always the same. Same computers have a functional installation of OpenFOAM-7 without any error. | ||||
Steps To Reproduce | 1. source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc WM_LABEL_SIZE=64 FOAMY_HEX_MESH=yes 2. ./Allwmake -j 4 3. See compilation error | ||||
Tags | No tags attached. | ||||
|
log.make (9,862 bytes)
Compiling enabled on 4 cores Allwmake /opt/OpenFOAM/OpenFOAM-dev make: rien à faire pour « all ». ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== Build Scotch decomposition library scotch_6.0.9 /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/scotch_6.0.9 scotch header in /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/scotch_6.0.9/include scotch libs in /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/lib ======================================== Build PTScotch decomposition library scotch_6.0.9 (uses MPI) /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/scotch_6.0.9 ptscotch header in /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/scotch_6.0.9/include/openmpi-system ptscotch libs in /opt/OpenFOAM/ThirdParty-dev/platforms/linux64GccDPInt64/lib/openmpi-system ======================================== Build Metis decomposition optional component Metis was not found ======================================== Build Zoltan decomposition optional component Zoltan was not found ======================================== Done ThirdParty Allwmake ======================================== Allwmake src same version as previous build Allwmake src/Pstream wmake dummy wmake mpi Allwmake libo src/OSspecific/POSIX found <sys/inotify.h> -- enabling inotify for file monitoring. wmake libo . wmake OpenFOAM wmake fileFormats wmake surfMesh wmake triSurface wmake meshTools Allwmake src/dummyThirdParty wmake scotchDecomp wmake ptscotchDecomp wmake metisDecomp wmake MGridGen wmake finiteVolume wmake lagrangian/basic wmake lagrangian/distributionModels wmake genericPatchFields wmake mesh/extrudeModel wmake dynamicMesh g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c polyTopoChange/polyTopoChange/polyTopoChange.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.o g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c repatchMesh/repatchPatch.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/repatchMesh/repatchPatch.o g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c setUpdater/setUpdater.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/setUpdater/setUpdater.o g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c meshCut/meshModifiers/boundaryCutter/boundaryCutter.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/meshCut/meshModifiers/boundaryCutter/boundaryCutter.o g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c meshCut/meshModifiers/meshCutter/meshCutter.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/meshCut/meshModifiers/meshCutter/meshCutter.o g++ -std=c++14 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/mesh/extrudeModel/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/POSIX/lnInclude -fPIC -c meshCut/meshModifiers/meshCutAndRemove/meshCutAndRemove.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/meshCut/meshModifiers/meshCutAndRemove/meshCutAndRemove.o Dans le fichier inclus depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.H:316, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/DynamicList.H:46, depuis polyTopoChange/polyTopoChange/polyTopoChange.H:66, depuis polyTopoChange/polyTopoChange/polyTopoChange.C:26: /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.C: Dans l'instanciation de « Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int] » : /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/CompactListListI.H:36:8: requis par « Foam::CompactListList<T>::CompactListList() [with T = long int] » polyTopoChange/polyTopoChange/polyTopoChange.C:1143:36: requis depuis ici /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.C:211:39: erreur: pas de fonction correspondant à l'appel « distance(int&, int&) » 211 | List<T>(first, last, std::distance(first, last)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~ Dans le fichier inclus depuis /usr/include/c++/10/bits/stl_algobase.h:66, depuis /usr/include/c++/10/bits/char_traits.h:39, depuis /usr/include/c++/10/ios:40, depuis /usr/include/c++/10/ostream:38, depuis /usr/include/c++/10/iostream:39, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/direction.H:37, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/bool.H:65, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UList.H:45, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.H:43, depuis /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/DynamicList.H:46, depuis polyTopoChange/polyTopoChange/polyTopoChange.H:66, depuis polyTopoChange/polyTopoChange/polyTopoChange.C:26: /usr/include/c++/10/bits/stl_iterator_base_funcs.h:138:5: note: candidat : « template<class _InputIterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::distance(_InputIterator, _InputIterator) » 138 | distance(_InputIterator __first, _InputIterator __last) | ^~~~~~~~ /usr/include/c++/10/bits/stl_iterator_base_funcs.h:138:5: note: la déduction/substitution de l'argument du patron a échoué: /usr/include/c++/10/bits/stl_iterator_base_funcs.h: Dans la substitution de « template<class _InputIterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int] » : /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.C:211:39: requis par « Foam::List<T>::List(InputIterator, InputIterator) [with InputIterator = int; T = long int] » /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/CompactListListI.H:36:8: requis par « Foam::CompactListList<T>::CompactListList() [with T = long int] » polyTopoChange/polyTopoChange/polyTopoChange.C:1143:36: requis depuis ici /usr/include/c++/10/bits/stl_iterator_base_funcs.h:138:5: erreur: pas de type nommé « difference_type » dans « struct std::iterator_traits<int> » make: *** [/opt/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26 : /opt/OpenFOAM/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.o] Erreur 1 make: *** Attente des tâches non terminées.... |
|
Resolved by commit 4fe853fa8743a33e1b840fbebadc625661d19ddc |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-04-03 11:34 | Yuusha | New Issue | |
2022-04-03 11:34 | Yuusha | File Added: log.make | |
2022-04-04 11:33 | henry | Assigned To | => henry |
2022-04-04 11:33 | henry | Status | new => resolved |
2022-04-04 11:33 | henry | Resolution | open => fixed |
2022-04-04 11:33 | henry | Fixed in Version | => dev |
2022-04-04 11:33 | henry | Note Added: 0012534 |