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

Error installing OpenFOAM 2.2.0 on CentOS 6.4

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree9Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   January 19, 2014, 15:36
Default Yes - it works for me too
  #21
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
Bruno

I found the combination of gcc-4.7.3, binutils-2.23 and cmake-2.8.3 compiled just fine. I agree that it is most likely the binutils - perhaps something broken in the loader with RHEL; but I would not have guessed it.

Thanks Again

Tony
wyldckat likes this.
tladd is offline   Reply With Quote

Old   January 21, 2014, 19:32
Default Follow up to gcc 4.7.2
  #22
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
Bruno

I made some more tests of the build of cmake. Here is what I found with
gmp-5.0.4 mpc-0.9 mpfr-3.1.0 in each case

gcc cmake binutils Build?
4.7.2 2.8.12.1 2.23 No
4.7.2 2.8.3 2.23 No
4.7.2 2.8.3 2.22 No
4.7.3 2.8.3 2.23 Yes
4.7.3 2.8.4 2.23.2 Yes
4.7.3 2.8.12.1 2.23 Yes
4.7.3 2.8.12.1 2.23.2 Yes

So for me everything I tried with 4.7.3 worked while everything with 4.7.2 failed. So I do not understand your magic touch that enabled a build with 4.7.2 - unless the build you thought was 4.7.2 was in fact 4.7.3.

In any case I am OK at this point - I have built a number of working versions of OpenFOAM - I just need to edit settings.sh to change 4.7.2 to 4.7.3.
tladd is offline   Reply With Quote

Old   February 3, 2014, 03:13
Default Error in executing ./Allwmake during OpenFOAM 2.2.2 installation
  #23
New Member
 
Azraf Azman
Join Date: Jan 2014
Posts: 1
Rep Power: 0
Azraf is on a distinguished road
Dear all,
I am new to OpenFOAM and Linux. Currently I am trying to install OpenFOAM in CentOS 6.5 for i686 machine. I followed the instructions from http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL but encountered some problem at no 13 instruction which is ./Allwmake. Please advise. sorry for the inconvenience because it is quite long.

the error as below:

Code:
[CFD@azraf PV3Readers]$ ./Allwmake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Readers.C
SOURCE=vtkPV3Readers.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3Readers.o
'/home/CFD/OpenFOAM/OpenFOAM-2.2.2/platforms/linuxGccDPOpt/lib/libvtkPV3Readers.so' is up to date.
+ '[' -d /home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0 -a -r /home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0 ']'
+ wmake libso vtkPV3blockMesh
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3blockMesh.C
Making dependency list for source file vtkPV3blockMeshConvert.C
Making dependency list for source file vtkPV3blockMeshUtils.C
SOURCE=vtkPV3blockMesh.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3blockMesh.o
SOURCE=vtkPV3blockMeshConvert.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3blockMeshConvert.o
SOURCE=vtkPV3blockMeshUtils.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/mesh/blockMesh/lnInclude -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3blockMeshUtils.o
/usr/bin/ld: cannot find -lblockMesh
collect2: ld returned 1 exit status
make: *** [/home/CFD/OpenFOAM/OpenFOAM-2.2.2/platforms/linuxGccDPOpt/lib/libvtkPV3blockMesh.so] Error 1
+ cd PV3blockMeshReader
+ mkdir -p Make/linuxGccDPOpt
+ cd Make/linuxGccDPOpt
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
CMake Error at CMakeLists.txt:43 (QT4_WRAP_CPP):
  Unknown CMake command "QT4_WRAP_CPP".


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found.  Stop.
+ '[' -d /home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0 -a -r /home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0 ']'
+ wmake libso vtkPV3Foam
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3Foam.C
Making dependency list for source file vtkPV3FoamFields.C
Making dependency list for source file vtkPV3FoamMesh.C
Making dependency list for source file vtkPV3FoamMeshLagrangian.C
Making dependency list for source file vtkPV3FoamMeshSet.C
Making dependency list for source file vtkPV3FoamMeshVolume.C
Making dependency list for source file vtkPV3FoamMeshZone.C
Making dependency list for source file vtkPV3FoamUpdateInfo.C
Making dependency list for source file vtkPV3FoamUtils.C
SOURCE=vtkPV3Foam.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3Foam.o
SOURCE=vtkPV3FoamFields.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamFields.o
SOURCE=vtkPV3FoamMesh.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamMesh.o
SOURCE=vtkPV3FoamMeshLagrangian.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamMeshLagrangian.o
SOURCE=vtkPV3FoamMeshSet.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamMeshSet.o
SOURCE=vtkPV3FoamMeshVolume.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamMeshVolume.o
SOURCE=vtkPV3FoamMeshZone.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamMeshZone.o
SOURCE=vtkPV3FoamUpdateInfo.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamUpdateInfo.o
SOURCE=vtkPV3FoamUtils.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-100 -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I../../vtkPV3Readers/lnInclude -I../PV3FoamReader -I/home/CFD/OpenFOAM/ThirdParty-2.2.2/platforms/linuxGcc/paraview-3.12.0/include/paraview-3.12 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/CFD/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/vtkPV3FoamUtils.o
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/home/CFD/OpenFOAM/OpenFOAM-2.2.2/platforms/linuxGccDPOpt/lib/libvtkPV3Foam.so] Error 1
+ cd PV3FoamReader
+ mkdir -p Make/linuxGccDPOpt
+ cd Make/linuxGccDPOpt
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
CMake Error at CMakeLists.txt:44 (QT4_WRAP_CPP):
  Unknown CMake command "QT4_WRAP_CPP".


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found.  Stop.
[CFD@azraf PV3Readers]$

Last edited by wyldckat; February 4, 2014 at 15:57. Reason: Added [CODE][/CODE]
Azraf is offline   Reply With Quote

Old   February 3, 2014, 09:38
Default
  #24
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
I am not an expert in this, but the first complaint is that it cannot find libblockMesh.so. It should be in OpenFOAM-2.2.2/platforms/linux64Gcc45DPOpt/lib or similar. If not you need to check for errors in the build of OpenFOAM itself perhaps.

Tony
tladd is offline   Reply With Quote

Old   February 4, 2014, 15:59
Default
  #25
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@Azraf: Tony is correct. There seems to have been bigger problems while building OpenFOAM itself.
Please follow the instructions in step #11.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 12, 2014, 19:57
Default CMake build error
  #26
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 5
mmmn036 is on a distinguished road
Hello,

I was installing OpenFOAM 2.2.2 and paraview on Centos6.4 by followng the instruction of-http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.2.2/CentOS_SL_RHEL#CentOS_6.4 .

OpenFoam installation was successful and it runs cases with parallel, but I got error when I was building CMake 2.8.3.

I look into the log files and didn't see any error until step no. 12.

I attached the error in log file. Would anyone please help me out.

Thanks
Attached Files
File Type: gz log.makeCmake.gz (10.7 KB, 0 views)

Last edited by mmmn036; February 13, 2014 at 14:45.
mmmn036 is offline   Reply With Quote

Old   February 13, 2014, 00:37
Default
  #27
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
The log file seemed empty when I tried to read it. I think it should be larger than 183 bytes.

Tony
tladd is offline   Reply With Quote

Old   February 13, 2014, 14:47
Default
  #28
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 5
mmmn036 is on a distinguished road
Sorry about empty file. here I updated the log file.
Attached Files
File Type: gz log.makeCmake.gz (10.7 KB, 3 views)
mmmn036 is offline   Reply With Quote

Old   February 13, 2014, 16:06
Default
  #29
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
Manjura

I had a similar error but not with gcc-4.5.2. I found that gcc-4.7.2 crashed on building cmake in the same way as in your log files with the "keypad" error. I found that switching to 4.7.3 worked fine. In post 22 I report builds that worked and those that did not.

However Bruno Santos, who is much more experienced than me, got a 4.7.2 build to work so I am not sure exactly what is wrong.

I would suggest

1) You go over the instructions for the build of cmake and make sure you are following them exactly.
2) Are you using binutils-2.20.1 as the instructions recommend. Bruno says this can make a difference.
3) Try with different version of gcc - e.g. 4.7.3. (see post 22)
4) I compared your log file with my successful build of cmake-2.8.3 with gcc-4.5.2. The first difference was on line 192
193,195c193,195
< -- Looking for idna_to_ascii_lz in idn;dl - not found
< -- Looking for dlopen in dl
< -- Looking for dlopen in dl - found
---
> -- Looking for idna_to_ascii_lz in idn;dl - found
> -- Looking for dlopen in dl;idn
> -- Looking for dlopen in dl;idn - found

There is this thing "idna_to_ascii_lz in idn;dl" which my log reports as found and yours says not found. No idea why, but this may give you a place to start.

Good luck

Tony
tladd is offline   Reply With Quote

Old   February 13, 2014, 19:57
Default
  #30
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 5
mmmn036 is on a distinguished road
Thanks Tony for your reply.

The binutils version is 2.23. Is that may cause any problem?

Thanks
mmmn036 is offline   Reply With Quote

Old   February 13, 2014, 20:15
Default
  #31
Member
 
Tony Ladd
Join Date: Aug 2013
Posts: 35
Rep Power: 5
tladd is on a distinguished road
Possibly - do try 2.20.1 and post the result.

Tony
tladd is offline   Reply With Quote

Old   February 13, 2014, 20:48
Default
  #32
Member
 
Manjura Maula Md. Nayamatullah
Join Date: May 2013
Location: San Antonio, Texas, USA
Posts: 42
Rep Power: 5
mmmn036 is on a distinguished road
oh...yes....it is binutils version that gives me the error.
binutils 2.20.1 is good to build cmake 2.8.3.

Thanks a lot for helping me out. Now I will build paraview.

Manjura
mmmn036 is offline   Reply With Quote

Old   February 13, 2014, 23:13
Default
  #33
New Member
 
Jonathan Leo Pierce
Join Date: Feb 2014
Posts: 2
Rep Power: 0
jpierce is on a distinguished road
Maybe late to the party, but I found this page while searching for that particular error in building cmake. I was running gcc-4.7.2 and binutils-2.22. After compiling binutils-2.24 and rebuilding cmake, I still had the same error.

In the end, editing $CMAKE_BUILD/Source/CMakeFiles/ccmake.dir/link.txt and adding "-ltinfo" to the end of the line fixed the issue. Went back and tested with binutils-2.22 using a fresh build directory, and I was able to complete the build using that, as well.

All this might not be necessary on RH5-based distributions. I believe (but could be wrong) that they modified DSO linking between majors so you have to be a little more explicit now.

[edit]: Someone on the kbuild mailing list arrived at the same conclusion/solution for that project: https://groups.google.com/forum/#!to...el/0AMWriDGc8g
wyldckat likes this.
jpierce is offline   Reply With Quote

Old   February 15, 2014, 18:27
Default
  #34
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,648
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Jonathan and welcome to the forum!

And many thanks for sharing this information about building CMake!
I just have a couple of questions, just to confirm the situation, so that I can try and reproduce the same issue:
  1. Which Linux Distribution did you use?
  2. What does this command give you, when the OpenFOAM shell environment is ready to be used:
    Code:
    ld --version
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 24, 2014, 15:06
Default
  #35
New Member
 
Jonathan Leo Pierce
Join Date: Feb 2014
Posts: 2
Rep Power: 0
jpierce is on a distinguished road
  1. This is in CentOS 6.3 (stock, no updates applied). For the purposes of cmake, there shouldn't be much difference between that and v6.4, which mmmn036 was having issues with.
  2. To be quite honest, I'm not an OpenFOAM user. (I work in Neuroimaging and was compiling the pre-requisites for Gadgetron.) This post just happened to be the first result in several related Google searches. I'm not using the binutils package that comes with the distro; I have custom builds in /usr/local. The output is probably just about what you would expect. For v2.22:
    Code:
    GNU ld (GNU Binutils) 2.22
    Copyright 2011 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or (at your option) a later version.
    This program has absolutely no warranty.
    and for v2.24:
    Code:
    GNU ld (GNU Binutils) 2.24
    Copyright 2013 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or (at your option) a later version.
    This program has absolutely no warranty.
wyldckat likes this.
jpierce is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSuse 12.3 x64 with OpenFoam 2.2.0 aylalisa OpenFOAM Installation 2 May 5, 2013 11:29
OpenFOAM 2.2.0 installation on ICC (Intel C++ Compiler) vishal3 OpenFOAM Installation 3 April 26, 2013 20:00
InterPhaseChangeFoam problem with OpenFOAM 2.2.0 Mashiro5 OpenFOAM Running, Solving & CFD 5 April 18, 2013 09:47
Installing OpenFOAM 2.1.1 on CentOS 5.x phuchuynh OpenFOAM Installation 1 October 10, 2012 16:58
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33


All times are GMT -4. The time now is 22:06.