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

[foam-extend.org] Foam extend 3.1 rpmBuild error.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2016, 14:54
Default Foam extend 3.1 rpmBuild error.
  #1
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
hi everyone;

I recently installed foam-extend-3.1 on Ubuntu-14.04 as specified in OpenWiki web-page.

Copied is part of output upon compiling. I see some errors related to rpmBuild and have no clue how to overcome this error. Stage 3.
Code:
This system rpm command: rpm --force-debian

========================================
Starting ThirdParty AllMake: Stage3
========================================

Package name      : metis-5.1.0
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/metis-5.1.0.tar.gz
RPM spec file name: metis-5.1.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package metis-5.1.0
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/metis-5.1.0-linuxGccDPOpt.i386.rpm
Package metis-5.1.0 is already installed
Done installing package 

Package name      : ParMGridGen-1.0
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParMGridGen-1.0.tar.gz
RPM spec file name: ParMGridGen-1.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package ParMGridGen-1.0
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/ParMGridGen-1.0-linuxGccDPOpt.i386.rpm
Package ParMGridGen-1.0 is already installed
Done installing package 

Package name      : libccmio-2.6.1
Package URL       : http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz
RPM spec file name: libccmio-2.6.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package libccmio-2.6.1
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGccDPOpt.i386.rpm
Download libccmio-2.6.1.tar.gz from : http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz
--2016-05-09 19:24:23--  http://portal.nersc.gov/svn/visit/tags/2.4.2/third_party/libccmio-2.6.1.tar.gz
Resolving portal.nersc.gov (portal.nersc.gov)... 128.55.6.160
Connecting to portal.nersc.gov (portal.nersc.gov)|128.55.6.160|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-05-09 19:24:23 ERROR 404: Not Found.

Making package libccmio-2.6.1 using RPM.
Building package libccmio-2.6.1 using SPEC file : libccmio-2.6.1.spec. Optional args: 
error: File /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.tar.gz: No such file or directory
Installing package: libccmio-2.6.1
  Uninstalling libccmio-2.6.1 using RPM: libccmio-2.6.1-linuxGccDPOpt.i386
  Installing libccmio-2.6.1 using RPM file: /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGccDPOpt.i386.rpm
error: open of /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGccDPOpt.i386.rpm failed: No such file or directory
Done installing package 

Package name      : mesquite-2.1.2
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/mesquite-2.1.2.tar.gz
RPM spec file name: mesquite-2.1.2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package mesquite-2.1.2
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/mesquite-2.1.2-linuxGccDPOpt.i386.rpm
Package mesquite-2.1.2 is already installed
Done installing package 

Package name      : scotch-6.0.0
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/scotch-6.0.0.tar.gz
RPM spec file name: scotch-6.0.0.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package scotch-6.0.0
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/scotch-6.0.0-linuxGccDPOpt.i386.rpm
Package scotch-6.0.0 is already installed
Done installing package 

Package name      : parmetis-4.0.3
Package URL       : http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz
RPM spec file name: parmetis-4.0.3.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package parmetis-4.0.3
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/parmetis-4.0.3-linuxGccDPOpt.i386.rpm
Package parmetis-4.0.3 is already installed
Done installing package 

Package name      : PyFoam-0.6.3
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/PyFoam-0.6.1.tar.gz
RPM spec file name: PyFoam-0.6.3.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package PyFoam-0.6.3
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/PyFoam-0.6.3-linuxGccDPOpt.i386.rpm
Making package PyFoam-0.6.3 using RPM.
Building package PyFoam-0.6.3 using SPEC file : PyFoam-0.6.3.spec. Optional args: 
error: File /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/SOURCES/PyFoam-0.6.3-rc.tar.gz: No such file or directory
Installing package: PyFoam-0.6.3
  Uninstalling PyFoam-0.6.3 using RPM: PyFoam-0.6.3-linuxGccDPOpt.i386
  Installing PyFoam-0.6.3 using RPM file: /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/PyFoam-0.6.3-linuxGccDPOpt.i386.rpm
error: open of /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/PyFoam-0.6.3-linuxGccDPOpt.i386.rpm failed: No such file or directory
Done installing package 

Package name      : hwloc-1.7.2
Package URL       : http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/hwloc-1.7.2.tar.gz
RPM spec file name: hwloc-1.7.2.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package hwloc-1.7.2
RPM file name     : /home/saideep/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/i386/hwloc-1.7.2-linuxGccDPOpt.i386.rpm
Package hwloc-1.7.2 is already installed
Done installing package 

========================================
Done ThirdParty AllMake: Stage3
========================================
Further the tutorial cases work fine but when I try to modify the solver, I get the error shown below.
Code:
Making dependency list for source file interFoam1.C
SOURCE=interFoam1.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-200 -I/home/saideep/foam/foam-extend-3.1/src/transportModels     -I/home/saideep/foam/foam-extend-3.1/src/transportModels/incompressible/lnInclude     -I/home/saideep/foam/foam-extend-3.1/src/transportModels/interfaceProperties/lnInclude     -I/home/saideep/foam/foam-extend-3.1/src/turbulenceModels/incompressible/turbulenceModel     -I/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/saideep/foam/foam-extend-3.1/src/foam/lnInclude -I/home/saideep/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/interFoam1.o
In file included from interFoam1.C:69:0:
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H: In function ‘int main(int, char**)’:
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]
     bool transonic =
          ^
In file included from interFoam1.C:55:0:
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H:3:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
     int nOuterCorr(readInt(pimple.lookup("nOuterCorrectors")));
         ^
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H:4:9: warning: unused variable ‘nCorr’ [-Wunused-variable]
     int nCorr(readInt(pimple.lookup("nCorrectors")));
         ^
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H:9:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
     bool momentumPredictor =
          ^
/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude/readPIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]
     bool transonic =
          ^
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-200 -I/home/saideep/foam/foam-extend-3.1/src/transportModels     -I/home/saideep/foam/foam-extend-3.1/src/transportModels/incompressible/lnInclude     -I/home/saideep/foam/foam-extend-3.1/src/transportModels/interfaceProperties/lnInclude     -I/home/saideep/foam/foam-extend-3.1/src/turbulenceModels/incompressible/turbulenceModel     -I/home/saideep/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/saideep/foam/foam-extend-3.1/src/foam/lnInclude -I/home/saideep/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linuxGccDPOpt/interFoam1.o -L/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt \
         -linterfaceProperties     -lincompressibleTransportModels     -lincompressibleTurbulenceModel     -lincompressibleRASModels     -lincompressibleLESModels     -lfiniteVolume     -llduSolvers -lfoam -ldl   -lm -o /home/saideep/foam/saideep-3.1/applications/bin/linuxGccDPOpt/interFoam1
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_create'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_mutexattr_destroy'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_destroy'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_tryrdlock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_mutex_trylock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_mutexattr_init'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_rdlock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_join'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlockattr_destroy'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_trywrlock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_mutexattr_settype'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlockattr_init'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_init'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_unlock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlock_wrlock'
/home/saideep/foam/foam-extend-3.1/lib/linuxGccDPOpt/libfoam.so: undefined reference to `pthread_rwlockattr_setkind_np'
collect2: error: ld returned 1 exit status
make: *** [/home/saideep/foam/saideep-3.1/applications/bin/linuxGccDPOpt/interFoam1] Error 1
As I am compiling FE31 on a single core and had done this multiple times but still fail to understand the reason, could anyone help me out please.

Thanks;
Saideep
Saideep is offline   Reply With Quote

Old   May 12, 2016, 12:12
Default
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Anybody? Else is it only me with this problem?

I guess there is something I understood and compiled wrong for several times.

Incase if anyone recognizes, the way i installed FE3.1
Ran the update and installations as specified for Ubuntu 14.04 in
https://openfoamwiki.net/index.php/I...end-3.1/Ubuntu

Later,
From https://openfoamwiki.net/index.php/I...om_source_code
Used git clone to get the version and compiled it.

I use alias and OF versions 2.3/ 3.0 work fine. Only the FE31 has a problem.

Any help much appreciated foamers.

Saideep
Saideep is offline   Reply With Quote

Old   September 25, 2016, 19:34
Default Change the link for downloading the package
  #3
New Member
 
Thábata Maciel
Join Date: Aug 2012
Posts: 9
Rep Power: 14
thab is on a distinguished road
Hi, Saideep,
I recently had the same problem. I not sure why the link was not working for the download of libccmio-2.6.1.tar.gz during compiling of the Third Party packages.
What I did was find another link that I could download it from, and replace it in the AllMake.stage3 file.

I used this link:
ftp://www.daba.lv/pub/TIS/bibliotekas/dazadas/libccmio-2.6.1.tar.gz

However, please note that I am not sure this link is entirely trustworthy. It worked for me, but feel free to find another address to download it

I hope I wasn't too late.
thab is offline   Reply With Quote

Reply

Tags
foam extend 3.1, rpmbuild

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 12:34
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 05:07.