|
[Sponsors] |
[foam-extend.org] Foam-Extend 4.0 Compiling on F33 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 17, 2021, 22:22 |
Foam-Extend 4.0 Compiling on F33
|
#1 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 143
Rep Power: 11 |
Dear everyone,
I am trying to compile foam extend 4.0 on F33 but its faiiling. I keep getting fatal error cannot find ld for almost every file it tries to compile. I tried using Fedora's own GCC 10 and I even installed GCC 4.9, 5.5, 6.5, 75, 8.4, 9.3 and it still gives the error. I have ld on my system to and have all the pre-requisites too. Here is my pref.sh Code:
unset WM_THIRD_PARTY_USE_CMAKE_322 export WM_MPLIB=SYSTEMOPENMPI export WM_CC=gcc55 export WM_CXX=g++55 And here is a tidbit from my build log Code:
make: Nothing to be done for 'all'. + wmakePrintBuild -check same version as previous build + wmakeLnInclude foam + wmakeLnInclude meshTools + wmakeLnInclude OSspecific/POSIX + wmake libo OSspecific/POSIX '/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/lib/linux64GccDPOpt/libOSspecific.o' is up to date. + set +x Note: ignore spurious warnings about missing mpicxx.h headers + wmake libso foam SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/4.0/' -e 's/BUILD_STRING/4.0-268bb07d15d8/' $SOURCE > Make/linux64GccDPOpt/global.C; g++55 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/usr/include/openmpi-x86_64 -pthread -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/global.C -o Make/linux64GccDPOpt/global.o collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/wmake/Makefile:188: /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/lib/linux64GccDPOpt/libfoam.so] Error 1 + decompositionMethods/AllwmakeLnInclude + wmakeLnInclude decompositionMethods + wmakeLnInclude metisDecomp + wmakeLnInclude parMetisDecomp + wmakeLnInclude scotchDecomp + decompositionMethods/Allwmake + wmakeLnInclude decompositionMethods + wmake libso decompositionMethods collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/wmake/Makefile:188: /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/lib/linux64GccDPOpt/libdecompositionMethods.so] Error 1 + wmake libso metisDecomp collect2: fatal error: cannot find 'ld' compilation terminated. make: *** [/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/wmake/Makefile:188: /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/lib/linux64GccDPOpt/libmetisDecomp.so] Error 1 + wmake libso parMetisDecomp SOURCE=parMetisDecomp.C ; g++55 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/usr/include/openmpi-x86_64 -pthread -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/ThirdParty/packages/parmetis-4.0.3/platforms/linux64GccDPOpt/include -I../decompositionMethods/lnInclude -I../metisDecomp/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude -I/home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/parMetisDecomp.o parMetisDecomp.C: In member function ‘Foam::label Foam::parMetisDecomp::decompose(Foam::Field<int>&, Foam::Field<int>&, const pointField&, Foam::Field<int>&, Foam::Field<int>&, const Foam::List<int>&, Foam::List<int>&)’: parMetisDecomp.C:104:11: error: ‘real_t’ was not declared in this scope Field<real_t> xyz(3*cellCentres.size()); ^ parMetisDecomp.C:104:17: error: template argument 1 is invalid Field<real_t> xyz(3*cellCentres.size()); ^ parMetisDecomp.C:109:20: error: invalid types ‘int[int]’ for array subscript xyz[compI++] = float(cc.x()); ^ parMetisDecomp.C:110:20: error: invalid types ‘int[int]’ for array subscript xyz[compI++] = float(cc.y()); ^ parMetisDecomp.C:111:20: error: invalid types ‘int[int]’ for array subscript xyz[compI++] = float(cc.z()); ^ parMetisDecomp.C:142:21: error: type/value mismatch at argument 1 in template parameter list for ‘template<class Type> class Foam::Field’ Field<real_t> prevXyz(fromPrevProc); ^ parMetisDecomp.C:142:21: note: expected a type, got ‘real_t’ parMetisDecomp.C:142:43: error: invalid user-defined conversion from ‘Foam::IPstream’ to ‘int’ [-fpermissive] Field<real_t> prevXyz(fromPrevProc); ^ In file included from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/Ostream.H:39:0, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/OSstream.H:40, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/messageStream.H:220, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/error.H:51, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/HashTableI.H:26, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/HashTable.H:550, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/objectRegistry.H:38, from /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/polyMesh.H:43, from ../decompositionMethods/lnInclude/decompositionMethod.H:38, from parMetisDecomp.H:37, from parMetisDecomp.C:26: /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/IOstream.H:366:13: note: candidate is: Foam::IOstream::operator void*() const <near match> operator void*() const ^ /home/SI/.root/opt/OpenFOAM/foam/foam-extend-4.0/src/foam/lnInclude/IOstream.H:366:13: note: no known conversion from ‘void*’ to ‘int’ parMetisDecomp.C:161:29: error: no matching function for call to ‘Foam::parMetisDecomp::prepend(int&, int&)’ prepend(prevXyz, xyz); ^ In file included from parMetisDecomp.H:177:0, from parMetisDecomp.C:26: parMetisDecompTemplates.C:32:6: note: candidate: template<class Type> static void Foam::parMetisDecomp::prepend(const Foam::UList<T>&, Foam::List<T>&) void Foam::parMetisDecomp::prepend ^ parMetisDecompTemplates.C:32:6: note: template argument deduction/substitution failed: parMetisDecomp.C:161:29: note: mismatched types ‘const Foam::UList<T>’ and ‘int’ prepend(prevXyz, xyz); ^ parMetisDecomp.C:185:31: error: type/value mismatch at argument 1 in template parameter list for ‘template<class Type> class Foam::SubField’ << SubField<real_t>(xyz, nDims*nCells, nDims*startCell) ^ parMetisDecomp.C:185:31: note: expected a type, got ‘real_t’ parMetisDecomp.C:214:13: error: request for member ‘setSize’ in ‘xyz’, which is of non-class type ‘int’ xyz.setSize(xyz.size()-nDims*nCells); ^ parMetisDecomp.C:214:25: error: request for member ‘size’ in ‘xyz’, which is of non-class type ‘int’ xyz.setSize(xyz.size()-nDims*nCells); ^ parMetisDecomp.C:270:17: error: type/value mismatch at argument 1 in template parameter list for ‘template<class Type> class Foam::Field’ Field<real_t> tpwgts(nCon*nProcessors_, 1./nProcessors_); ^ parMetisDecomp.C:270:17: note: expected a type, got ‘real_t’ parMetisDecomp.C:270:60: error: expression list treated as compound expression in initializer [-fpermissive] Field<real_t> tpwgts(nCon*nProcessors_, 1./nProcessors_); ^ parMetisDecomp.C:270:30: warning: left operand of comma operator has no effect [-Wunused-value] Field<real_t> tpwgts(nCon*nProcessors_, 1./nProcessors_); ^ parMetisDecomp.C:272:17: error: type/value mismatch at argument 1 in template parameter list for ‘template<class Type> class Foam::Field’ Field<real_t> ubvec(nCon, 1.02); ^ parMetisDecomp.C:272:17: note: expected a type, got ‘real_t’ parMetisDecomp.C:272:35: error: expression list treated as compound expression in initializer [-fpermissive] Field<real_t> ubvec(nCon, 1.02); ^ parMetisDecomp.C:272:35: warning: left operand of comma operator has no effect [-Wunused-value] parMetisDecomp.C:276:16: error: invalid types ‘int[int]’ for array subscript ubvec[0] = 1; ^ parMetisDecomp.C:298:13: error: request for member ‘begin’ in ‘xyz’, which is of non-class type ‘int’ xyz.begin(), ^ parMetisDecomp.C:301:16: error: request for member ‘begin’ in ‘tpwgts’, which is of non-class type ‘int’ tpwgts.begin(), ^ parMetisDecomp.C:302:15: error: request for member ‘begin’ in ‘ubvec’, which is of non-class type ‘int’ ubvec.begin(), ^ make: *** [parMetisDecomp.dep:343: Make/linux64GccDPOpt/parMetisDecomp.o] Error 1 . . . . Anyone have any idea why this is? |
|
April 18, 2021, 00:15 |
Switched to GCC-53 and now i get different error's
|
#2 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 143
Rep Power: 11 |
Here is the log
|
|
April 18, 2021, 02:35 |
Compilation worked, but thirdparty failed
|
#3 |
Senior Member
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 143
Rep Power: 11 |
So the log is attached.
It seems on Fedora, shebang throws an error for pyfoam because you need to specify the python version in the header of the .py files. I am able to edit them, however running thirdparty allmake replaces them again with the older files. Is there away I can edit the thirdpary allwmake to make that not happen? Also the only error left is the error in the pametis decomp files, gcc--53 throws some errors I don't understand. Last edited by EternalSeekerX; April 18, 2021 at 03:59. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 23:07 |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |