CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[foam-extend.org] Foam-Extend 4.0 Compiling on F33

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2021, 21:22
Unhappy Foam-Extend 4.0 Compiling on F33
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
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
My gcc and g++ executables are called gcc55 and g++55 (replace 55 with other versions like 49, 65, etc).

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
.
.
.
.
Any subsequent messages are the same, it tries to make a file but exits with error cannot find ld.

Anyone have any idea why this is?
EternalSeekerX is offline   Reply With Quote

Old   April 17, 2021, 23:15
Default Switched to GCC-53 and now i get different error's
  #2
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
Here is the log
Attached Files
File Type: zip log.zip (22.0 KB, 0 views)
EternalSeekerX is offline   Reply With Quote

Old   April 18, 2021, 01:35
Default Compilation worked, but thirdparty failed
  #3
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 137
Rep Power: 10
EternalSeekerX is on a distinguished road
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.
Attached Files
File Type: zip foam-extend-4.1.log.zip (22.1 KB, 0 views)

Last edited by EternalSeekerX; April 18, 2021 at 02:59.
EternalSeekerX is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 04:18
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 14:07
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04


All times are GMT -4. The time now is 11:18.