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

OpenFOAM 1.6 ext

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

Like Tree4Likes
  • 1 Post By wyldckat
  • 1 Post By wyldckat
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2013, 11:53
Default OpenFOAM 1.6 ext
  #1
Member
 
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13
fportela is on a distinguished road
Hello,

I've been trying to install OpenFOAM 1.6 ext for a while now without success.

I'm following the instructions given here: http://openfoamwiki.net/index.php/In...1.6-ext/Ubuntu

And I've looked in the forum at similar issues, but without success...

It seems like during stage 3 something goes wrong with ParMGridGen and ParMetis as seen below.

Has anyone come across similar issues? Any suggestions?

Cheers,
Felipe

Code:
Package name      : ParMGridGen-1.0
Package URL       : http://www.mgnet.org/mgnet/Codes/parmgridgen/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
Making package ParMGridGen-1.0 using RPM.
Building package ParMGridGen-1.0 using SPEC file : ParMGridGen-1.0.spec. Optional args: 
Executing(%prep): /bin/sh -e /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.diT7c4
+ umask 022
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMGridGen-1.0
+ /b -dc /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.tar.gz/bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ParMGridGen-1.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo Patch #1 (ParMGridGen-1.0.patch):
Patch #1 (ParMGridGen-1.0.patch):
+ + in/cat /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch
/usr/bin/patch -p1 --fuzz=0
patching file Makefile.in
patching file MGridGen/IMlib/Makefile
patching file MGridGen/Lib/Makefile
patching file MGridGen/Programs/Makefile
+ exit 0
Executing(%build): /bin/sh -e /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.POIHpY
+ umask 022
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd ParMGridGen-1.0
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n -m64 -fPIC ]
+ export CFLAGS=-m64 -fPIC
+ [ -n -m64 -fPIC ]
+ export CXXFLAGS=-m64 -fPIC
+ [ -n -m64 ]
+ export LDFLAGS=-m64
+ [ -z 6 ]
+ make -j 6 CC=gcc
(cd MGridGen ; make)
make[1]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
(cd IMlib ; gmake )
gmake[2]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/IMlib'
gcc -fPIC -O3   -I./   -c blas.c
gcc -fPIC -O3   -I./   -c dfkeysort.c
gcc -fPIC -O3   -I./   -c dkeysort.c
gcc -fPIC -O3   -I./   -c file.c
gcc -fPIC -O3   -I./   -c ifkeysort.c
gcc -fPIC -O3   -I./   -c ifloatsort.c
gcc -fPIC -O3   -I./   -c iintsort.c
gcc -fPIC -O3   -I./   -c ikeysort.c
gcc -fPIC -O3   -I./   -c memory.c
gcc -fPIC -O3   -I./   -c sort.c
gcc -fPIC -O3   -I./   -c util.c
gcc -shared -o libIMlib.so blas.o dfkeysort.o dkeysort.o file.o ifkeysort.o ifloatsort.o iintsort.o ikeysort.o memory.o  sort.o util.o
true libIMlib.so
gmake[2]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/IMlib'
(cd Lib ; gmake )
gmake[2]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/Lib'
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c aratio.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c coarsen.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c kwayfm.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c match.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c merge.c
merge.c: In function 'Merge0':
merge.c:1040:10: warning: format '%d' expects argument of type 'int', but argument 2 has type 'realtype *' [-Wformat=]
          IFSET(ctrl->dbglvl, DBG_MERGE,
          ^
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c mgridgen.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c refine.c
gcc -fPIC -O3  -I./ -I../../MGridGen/IMlib  -c setup.c
gcc -shared -o libMGridGen.so  aratio.o coarsen.o kwayfm.o match.o merge.o mgridgen.o refine.o setup.o  ../IMlib/blas.o ../IMlib/dfkeysort.o ../IMlib/dkeysort.o ../IMlib/file.o ../IMlib/ifkeysort.o ../IMlib/ifloatsort.o ../IMlib/iintsort.o ../IMlib/ikeysort.o ../IMlib/memory.o ../IMlib/sort.o ../IMlib/util.o 
true libMGridGen.so
gmake[2]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/Lib'
(cd Programs ; gmake )
gmake[2]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/Programs'
gcc -fPIC -O3   -I../../MGridGen/IMlib -I../Lib -c mgridgen.c
gcc -fPIC -O3   -I../../MGridGen/IMlib -I../Lib -c io.c
io.c: In function 'ReadGraph':
io.c:31:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets(line, MAXLINE, fpin);
          ^
io.c:52:13: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
        fgets(line, MAXLINE, fpin);
             ^
io.c: In function 'TransformGraph':
io.c:107:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets(line, MAXLINE, fpin);
          ^
io.c:119:13: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
        fgets(line, MAXLINE, fpin);
             ^
gcc -O3 -L../.. -L../Lib -L/usr/lib32/  -o ../../mgridgen mgridgen.o io.o -lMGridGen -lm
../Lib/libMGridGen.so: undefined reference to `log'
../Lib/libMGridGen.so: undefined reference to `pow'
../Lib/libMGridGen.so: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
gmake[2]: *** [../../mgridgen] Error 1
gmake[2]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen/Programs'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen'
make: *** [default] Error 2
error: Bad exit status from /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.POIHpY (%build)


RPM build errors:
    Bad exit status from /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.POIHpY (%build)
Installing package: ParMGridGen-1.0
  Uninstalling ParMGridGen-1.0 using RPM: ParMGridGen-1.0-linux64Gcc48DPOpt.x86_64
  Installing ParMGridGen-1.0 using RPM file: /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMGridGen-1.0-linux64Gcc48DPOpt.x86_64.rpm
error: open of /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMGridGen-1.0-linux64Gcc48DPOpt.x86_64.rpm failed: No such file or directory
Done installing package 

Package name      : ParMetis-3.1.1
Package URL       : http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/OLD/ParMetis-3.1.1.tar.gz
RPM spec file name: ParMetis-3.1.1.spec
Additional flags  : 
Updating the ThirdParty environment variables before building package ParMetis-3.1.1
Making package ParMetis-3.1.1 using RPM.
Building package ParMetis-3.1.1 using SPEC file : ParMetis-3.1.1.spec. Optional args: 
Executing(%prep): /bin/sh -e /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.j9koJB
+ umask 022
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMetis-3.1.1
+ /bin/gzip/bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ParMetis-3.1.1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo Patch #1 (ParMetis-3.1.1.patch):
Patch #1 (ParMetis-3.1.1.patch):
+ /bin/cat /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch
/usr/bin/patch -p1 --fuzz=0
patching file METISLib/Makefile
patching file Makefile.in
patching file ParMETISLib/Makefile
patching file Programs/Makefile
+ exit 0
Executing(%build): /bin/sh -e /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.eTCfRH
+ umask 022
+ cd /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd ParMetis-3.1.1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n -m64 -fPIC ]
+ export CFLAGS=-m64 -fPIC
+ [ -n -m64 -fPIC ]
+ export CXXFLAGS=-m64 -fPIC
+ [ -n -m64 ]
+ export LDFLAGS=-m64
+ [ -z 6 ]
+ make -j 6
(cd METISLib ; make ) 
make[1]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/METISLib'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
mpicc -DNDEBUG -O3 -fPIC -I.  -c coarsen.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c fm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c initpart.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c match.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ccgraph.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c pmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c pqueue.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c refine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c util.c
util.c: In function '__errexit':
util.c:31:3: warning: format not a string literal and no format arguments [-Wformat-security]
   fprintf(stdout, out2);
   ^
mpicc -DNDEBUG -O3 -fPIC -I.  -c timing.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c debug.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c bucketsort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c graph.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c stat.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayrefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c balance.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ometis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c srefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c sfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c separator.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mincover.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mmd.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mesh.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c meshpart.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c frename.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c fortran.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c myqsort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c compress.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c parmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c estmem.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mpmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mcoarsen.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mmatch.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c minitpart.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mbalance.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mutil.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mkmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mkwayrefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mkwayfmh.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mrefine2.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c minitpart2.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mbalance2.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mfm2.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kvmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayvolrefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayvolfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c subdomains.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c memory.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mrefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c checkgraph.c
gcc -shared -o libmetis-parmetis.so coarsen.o fm.o initpart.o match.o ccgraph.o pmetis.o pqueue.o refine.o util.o timing.o debug.o bucketsort.o graph.o stat.o kmetis.o kwayrefine.o kwayfm.o balance.o ometis.o srefine.o sfm.o separator.o mincover.o mmd.o mesh.o meshpart.o frename.o fortran.o myqsort.o compress.o parmetis.o estmem.o mpmetis.o mcoarsen.o mmatch.o minitpart.o mbalance.o mutil.o mkmetis.o mkwayrefine.o mkwayfmh.o mrefine2.o minitpart2.o mbalance2.o mfm2.o kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o mfm.o memory.o mrefine.o checkgraph.o
true libmetis-parmetis.so
make[1]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/METISLib'
(cd ParMETISLib ; make ) 
make[1]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/ParMETISLib'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
mpicc -DNDEBUG -O3 -fPIC -I.  -c comm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c util.c
util.c: In function 'errexit__':
util.c:31:3: warning: format not a string literal and no format arguments [-Wformat-security]
   fprintf(stdout, out2);
   ^
util.c: In function 'myprintf__':
util.c:52:3: warning: format not a string literal and no format arguments [-Wformat-security]
   fprintf(stdout, out2);
   ^
mpicc -DNDEBUG -O3 -fPIC -I.  -c debug.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c setup.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c grsetup.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c timer.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c node_refine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c initmsection.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c order.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c xyzpart.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c pspases.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c frename.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c iintsort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c iidxsort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ikeysort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ikeyvalsort.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c gkmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ometis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c initpart.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c match.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwayrefine.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c kwaybalance.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c remap.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c stat.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c fpqueue.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c ametis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c rmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c lmatch.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c initbalance.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mdiffusion.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c diffutil.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c wave.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c csrmatch.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c redomylink.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c balancemylink.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c selectq.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c akwayfm.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c serial.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c move.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mmetis.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c mesh.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c memory.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c weird.c
mpicc -DNDEBUG -O3 -fPIC -I.  -c backcompat.c
gcc -shared -o libparmetis.so comm.o util.o debug.o setup.o grsetup.o timer.o node_refine.o initmsection.o order.o xyzpart.o pspases.o frename.o iintsort.o iidxsort.o ikeysort.o ikeyvalsort.o kmetis.o gkmetis.o ometis.o initpart.o match.o kwayfm.o kwayrefine.o kwaybalance.o remap.o stat.o fpqueue.o ametis.o rmetis.o lmatch.o initbalance.o mdiffusion.o diffutil.o wave.o csrmatch.o redomylink.o balancemylink.o selectq.o akwayfm.o serial.o move.o mmetis.o mesh.o memory.o weird.o backcompat.o 
true libparmetis.so
make[1]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/ParMETISLib'
(cd Programs ; make ) 
make[1]: Entering directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/Programs'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
mpicc -DNDEBUG -O3 -fPIC -I./ -I../ParMETISLib   -c ptest.c
mpicc -DNDEBUG -O3 -fPIC -I./ -I../ParMETISLib   -c io.c
io.c: In function 'ParallelReadGraph':
io.c:58:12: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
       fgets(line, MAXLINE, fpin);
            ^
io.c:132:16: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
           fgets(line, MAXLINE, fpin);
                ^
io.c:208:12: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
       fgets(line, MAXLINE, fpin);
            ^
io.c:220:16: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
           fgets(line, MAXLINE, fpin);
                ^
io.c: In function 'ReadTestCoordinates':
io.c:452:17: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
           fscanf(fpin, "%e ", txyz+k*ndims+j);
                 ^
io.c: In function 'ReadMetisGraph':
io.c:489:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
   fgets(line, 8192, fpin);
        ^
io.c:498:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets(line, 8192, fpin);
          ^
io.c: In function 'Mc_SerialReadMetisGraph':
io.c:697:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
   fgets(line, 8192, fpin);
        ^
io.c:726:12: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
       fgets(line, 8192, fpin);
            ^
io.c: In function 'ParallelReadMesh':
io.c:897:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets(line, MAXLINE, fpin);
          ^
io.c:943:14: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
         fgets(line, MAXLINE, fpin);
              ^
mpicc -DNDEBUG -O3 -fPIC -I./ -I../ParMETISLib   -c adaptgraph.c
mpicc  -o ../Graphs/ptest ptest.o io.o adaptgraph.o  -L../METISLib -L../ParMETISLib -L/opt/local/lib -L/usr/lib  -lparmetis -lmetis-parmetis  -lm
chmod 744 ../Graphs/ptest
mpicc -DNDEBUG -O3 -fPIC -I./ -I../ParMETISLib   -c mtest.c
mpicc  -o ../Graphs/mtest mtest.o io.o -L../METISLib -L../ParMETISLib -L/opt/local/lib -L/usr/lib  -lparmetis -lmetis-parmetis  -lm
../ParMETISLib/libparmetis.so: undefined reference to `sqrtf'
../METISLib/libmetis-parmetis.so: undefined reference to `log'
../METISLib/libmetis-parmetis.so: undefined reference to `pow'
collect2: error: ld returned 1 exit status
make[1]: *** [../Graphs/mtest] Error 1
make[1]: Leaving directory `/home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/Programs'
make: *** [default] Error 2
error: Bad exit status from /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.eTCfRH (%build)


RPM build errors:
    Bad exit status from /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.eTCfRH (%build)
Installing package: ParMetis-3.1.1
  Uninstalling ParMetis-3.1.1 using RPM: ParMetis-3.1.1-linux64Gcc48DPOpt.x86_64
  Installing ParMetis-3.1.1 using RPM file: /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMetis-3.1.1-linux64Gcc48DPOpt.x86_64.rpm
error: open of /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMetis-3.1.1-linux64Gcc48DPOpt.x86_64.rpm failed: No such file or directory
Done installing package 

========================================
Done ThirdParty AllMake: Stage3
========================================
fportela is offline   Reply With Quote

Old   December 10, 2013, 18:18
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Felipe,

Code:
../Lib/libMGridGen.so: undefined reference to `log'
../Lib/libMGridGen.so: undefined reference to `pow'
../Lib/libMGridGen.so: undefined reference to `sqrt'
I know I've seen this issue before... and I think I documented that somewhere in some builds instructions on the wiki... wait, it was on the bug tracker... it's very likely this issue: http://www.openfoam.org/mantisbt/view.php?id=1048

Which specific Ubuntu version and architecture are you using?
Because if it is Ubuntu 13.10, I haven't written that section yet on that wiki page

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 10, 2013, 19:36
Default
  #3
Member
 
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13
fportela is on a distinguished road
Hi Bruno,

I thought you'd come to the rescue

Indeed I'm trying to get this working on Ubuntu 13.10, which I am starting to regret...

I had stumbled upon this but isn't this related to OF 2.2? For 1.6-ext, I'm note really sure where to place the suggested lines...

When following the wikki I used gcc48 instead of gcc47 (fyi)

Cheers,
Felipe

Quote:
Originally Posted by wyldckat View Post
Greetings Felipe,

Code:
../Lib/libMGridGen.so: undefined reference to `log'
../Lib/libMGridGen.so: undefined reference to `pow'
../Lib/libMGridGen.so: undefined reference to `sqrt'
I know I've seen this issue before... and I think I documented that somewhere in some builds instructions on the wiki... wait, it was on the bug tracker... it's very likely this issue: http://www.openfoam.org/mantisbt/view.php?id=1048

Which specific Ubuntu version and architecture are you using?
Because if it is Ubuntu 13.10, I haven't written that section yet on that wiki page

Best regards,
Bruno
fportela is offline   Reply With Quote

Old   December 11, 2013, 16:40
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Felipe,

I don't have time to look into this before Sunday, but the idea is to look into the patches used by 1.6-ext:
Quote:
Code:
+ cd ParMGridGen-1.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo Patch #1 (ParMGridGen-1.0.patch):
Patch #1 (ParMGridGen-1.0.patch):
+ + in/cat /home/felipe/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch
/usr/bin/patch -p1 --fuzz=0
patching file Makefile.in
patching file MGridGen/IMlib/Makefile
patching file MGridGen/Lib/Makefile
patching file MGridGen/Programs/Makefile
Those "Makefile" files need to be hacked into and use the arguments indicated on the bug report.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 11, 2013, 16:57
Default
  #5
Member
 
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13
fportela is on a distinguished road
Hi Bruno,

No worries, I'm not in a rush

I had tried adding the options in the patch for building Scotch, though from your last post it seems to me I should add the options to ParMGridGen and ParMetis, am I right?


Cheers,
Felipe

Quote:
Originally Posted by wyldckat View Post
Hi Felipe,

I don't have time to look into this before Sunday, but the idea is to look into the patches used by 1.6-ext:
Those "Makefile" files need to be hacked into and use the arguments indicated on the bug report.

Best regards,
Bruno
fportela is offline   Reply With Quote

Old   December 15, 2013, 15:48
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Felipe,

Sorry, I won't be able to look better into this before the 25th of December.

Nonetheless, the team working on 1.6-ext has got the branch "nextRelease", which is still in the works. They already have this particular issue fixed, which you can see an example here: https://github.com/Unofficial-Extend...15f294f#diff-1 - it's for the file "ParMGridGen-1.0.patch".

The other files need to be patched in a similar way, but the ones on "nextRelease" are mostly targeting the new versions of the libraries, with the exception of "ParMGridGen-1.0.patch" (I think).

Best regards,
Bruno
fportela likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 19, 2013, 12:34
Default
  #7
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 13
codder is on a distinguished road
As indicated in ReleaseNotes-foam-extend-3.0, I'm seeing lots of changes when I pull:

Code:
git clone git://git.code.sf.net/p/openfoam-extend/OpenFOAM-1.6-ext
I'm now compiling within

Code:
~/foam/foam-extend-3.0
... because of the restructured etc/bashrc. Is this ideologically correct?

Best, Eric
codder is offline   Reply With Quote

Old   December 19, 2013, 16:49
Default
  #8
Member
 
Eric Bryant
Join Date: Sep 2013
Location: Texas
Posts: 44
Rep Power: 13
codder is on a distinguished road
Now looking at:

http://wikki.gridcore.se/foam-extend/download

should we be running steps from:

http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04

... to use a system-installed paraview? Thank you
codder is offline   Reply With Quote

Old   December 25, 2013, 07:10
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Eric,

I see that you've managed to install foam-extend 3.0, as you've indicated here: http://www.cfd-online.com/Forums/ope...tallation.html

I'll try to have a look into this later this week, to out-date the old 1.6-ext instruction at openfoamwiki.net and to add the new instructions to it.

Best regards,
Bruno
codder likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 26, 2013, 13:12
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
@Felipe:
Quote:
Originally Posted by fportela View Post
I had tried adding the options in the patch for building Scotch, though from your last post it seems to me I should add the options to ParMGridGen and ParMetis, am I right?
If you are still trying to install the (now) old OpenFOAM 1.6-ext version and not the latest foam-extend-3.0, I have finished writing and testing the instructions for Ubuntu 13.10: http://openfoamwiki.net/index.php/In...u#Ubuntu_13.10

Best regards,
Bruno
fportela likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 26, 2013, 19:44
Default
  #11
Member
 
Felipe Alves Portela
Join Date: Dec 2012
Location: FR
Posts: 70
Rep Power: 13
fportela is on a distinguished road
Hey Bruno,

I'll try out your instructions but I'm sure I won't run into trouble thanks for the help!

Indeed I'm trying to compile 1.6-ext, I wasn't even aware of the existence of extend-3.0, can you tell me were to find more info on it? (maybe pm?)

Cheers and carry on the good work,
Felipe

Quote:
Originally Posted by wyldckat View Post
@Felipe:


If you are still trying to install the (now) old OpenFOAM 1.6-ext version and not the latest foam-extend-3.0, I have finished writing and testing the instructions for Ubuntu 13.10: http://openfoamwiki.net/index.php/In...u#Ubuntu_13.10

Best regards,
Bruno
fportela is offline   Reply With Quote

Old   December 26, 2013, 19:55
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Felipe,
Quote:
Originally Posted by fportela View Post
Indeed I'm trying to compile 1.6-ext, I wasn't even aware of the existence of extend-3.0, can you tell me were to find more info on it? (maybe pm?)
It's still rolling out. Several details are still in the works, which I'm guessing is why an officially news release hasn't been made yet.

And the current official repository is having some existential issues (thanks to Sourceforge.net's Allura dashboard system), but you can check the release notes in this unofficial mirror: https://github.com/Unofficial-Extend...oam-extend-3.0

Beyond this, have a look into the other thread by Eric: http://www.cfd-online.com/Forums/ope...tallation.html

Best regards,
Bruno
fportela likes this.
__________________
wyldckat is offline   Reply With Quote

Reply

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
Updating OpenFOAm 1.6 to 2.0 fs82 OpenFOAM 1 May 3, 2012 10:19
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 05:36
p_rgh in OpenFOAM 1.6 vkrastev OpenFOAM Running, Solving & CFD 2 March 30, 2011 10:29
openfoam 1.6 on debian etch romant OpenFOAM Installation 9 May 6, 2010 03:26
Openfoam 1.6 ar_mofidi OpenFOAM 1 November 4, 2009 06:26


All times are GMT -4. The time now is 10:59.