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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2016, 15:50
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.

Attached is the output file upon compiling. I see some errors related to rpmBuild and have no clue how to overcome this error.

Further the tutorial cases work fine but when I try to modify the solver, I get the error shown in error report file.
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

Reply

Tags
foam extend 3.1, rpmbuild


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 05:53
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 21:36.