CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFoam 1.6-ext - RPM build errors (http://www.cfd-online.com/Forums/openfoam/85609-openfoam-1-6-ext-rpm-build-errors.html)

preibie March 2, 2011 10:53

OpenFoam 1.6-ext - RPM build errors
 
Hallo everybody

I want to install OpenFOAM 1.6-ext. First I tried to make the Thirdparty software: ./AllMake.stage0 ... 2 all is fine! But in stage 3 are some errors :confused::
Code:

This system rpm command: rpm

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

Updating the ThirdParty environment variables before building package metis-5.0pre2
Package metis-5.0pre2 is already installed
Done installing package metis-5.0pre2

Updating the ThirdParty environment variables before building package ParMGridGen-1.0
Making package ParMGridGen-1.0 using RPM.
Building package ParMGridGen-1.0
Executing(%prep): /bin/sh -e /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.kMTHO9
+ umask 022
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMGridGen-1.0
+ /usr/bin/gzip -dc /home/preibisch/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):
+ /bin/cat /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch
+ /usr/bin/patch -s -p1 --fuzz=2
/home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.kMTHO9: Zeile 32: /usr/bin/patch: Datei oder Verzeichnis nicht gefunden
error: Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.kMTHO9 (%prep)


RPM build errors:
    Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.kMTHO9 (%prep)
Installing package: ParMGridGen-1.0
  Uninstalling ParMGridGen-1.0 using RPM: ParMGridGen-1.0-linux64GccDPOpt.x86_64
  Installing ParMGridGen-1.0 using RPM file: /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMGridGen-1.0-linux64GccDPOpt.x86_64.rpm
error: open of /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMGridGen-1.0-linux64GccDPOpt.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
Done installing package ParMGridGen-1.0

Updating the ThirdParty environment variables before building package libccmio-2.6.1
Making package libccmio-2.6.1 using RPM.
Building package libccmio-2.6.1
Executing(%prep): /bin/sh -e /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.i2NKol
+ umask 022
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf libccmio-2.6.1
+ /usr/bin/gzip -dc /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libccmio-2.6.1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (libccmio-2.6.1.patch_0):'
Patch #0 (libccmio-2.6.1.patch_0):
+ /bin/cat /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0
+ /usr/bin/patch -s -p1 --fuzz=2
/home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.i2NKol: Zeile 32: /usr/bin/patch: Datei oder Verzeichnis nicht gefunden
error: Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.i2NKol (%prep)


RPM build errors:
    Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.i2NKol (%prep)
Installing package: libccmio-2.6.1
  Uninstalling libccmio-2.6.1 using RPM: libccmio-2.6.1-linux64GccDPOpt.x86_64
  Installing libccmio-2.6.1 using RPM file: /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/libccmio-2.6.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/libccmio-2.6.1-linux64GccDPOpt.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
Done installing package libccmio-2.6.1

Updating the ThirdParty environment variables before building package mesquite-2.1.2
Package mesquite-2.1.2 is already installed
Done installing package mesquite-2.1.2

Updating the ThirdParty environment variables before building package scotch-5.1.10b
Making package scotch-5.1.10b using RPM.
Building package scotch-5.1.10b
Executing(%prep): /bin/sh -e /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.SU5Ekt
+ umask 022
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf scotch_5.1.10b
+ /usr/bin/gzip -dc /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/scotch-5.1.10b.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd scotch_5.1.10b
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (scotch-5.1.10b_patch_0):'
Patch #0 (scotch-5.1.10b_patch_0):
+ /bin/cat /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/scotch-5.1.10b_patch_0
+ /usr/bin/patch -s -p1 --fuzz=2
/home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.SU5Ekt: Zeile 32: /usr/bin/patch: Datei oder Verzeichnis nicht gefunden
error: Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.SU5Ekt (%prep)


RPM build errors:
    Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.SU5Ekt (%prep)
Installing package: scotch-5.1.10b
  Uninstalling scotch-5.1.10b using RPM: scotch-5.1.10b-linux64GccDPOpt.x86_64
  Installing scotch-5.1.10b using RPM file: /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64GccDPOpt.x86_64.rpm
error: open of /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/scotch-5.1.10b-linux64GccDPOpt.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
Done installing package scotch-5.1.10b

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
Executing(%prep): /bin/sh -e /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.E3RYLP
+ umask 022
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMetis-3.1.1
+ /usr/bin/gzip -dc /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.tar.gz
+ /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/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch
+ /usr/bin/patch -s -p1 --fuzz=2
/home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.E3RYLP: Zeile 32: /usr/bin/patch: Datei oder Verzeichnis nicht gefunden
error: Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.E3RYLP (%prep)


RPM build errors:
    Bad exit status from /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.E3RYLP (%prep)
Installing package: ParMetis-3.1.1
  Uninstalling ParMetis-3.1.1 using RPM: ParMetis-3.1.1-linux64GccDPOpt.x86_64
  Installing ParMetis-3.1.1 using RPM file: /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMetis-3.1.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParMetis-3.1.1-linux64GccDPOpt.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
Done installing package ParMetis-3.1.1

========================================
Done ThirdParty AllMake: Stage3
========================================

Can somebody help me?!

Preibie

andras March 2, 2011 13:05

AllMake ThirdParty OpenFOAM1.6-ext
 
Your system seems to be missing 'patch' - try this:

On debian or U|K|X ubuntu:
# apt-get install patch

On (open)SUSE:
# zypper install patch

On RHEL / CentOS:
# yum install patch


... and rerun AllMake

kyle March 2, 2011 18:30

While we are on the topic... isn't the whole third party RPM mess that the Extend project uses completely ridiculous? It buys the user nothing, and it looks like more work went into it than if they were to just do make scripts that did "configure/make/make install". My cluster, as I would assume is the case for many other people, does not have internet access, so I have to download all of the libraries individually on another machine and transfer them over. Would it not be more strait forward to just provide a third party sources tarball? And why the hell would I need a different path and library path for each third party tool? If you are not going to install them to the system paths, at least use one common location for all of them!

I really wish the Freefoam project took hold.

preibie March 3, 2011 02:15

Thanks andras,

you are right :) on my system patch was missing! Now the thirdparty software is installed.

Preibie

preibie March 3, 2011 05:50

After installing all the rest of OpenFOAM 1.6-ext and running foamInstallTest the following message was shown:
Code:

Executing /home/preibisch/OpenFOAM/OpenFOAM-1.6-ext/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              Fluent64-2
OS:                Linux version 2.6.31.12-0.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/preibisch/OpenFOAM                yes      yes
$WM_PROJECT_USER_DIR ...preibisch/OpenFOAM/preibisch-1.6-ext  yes      no
$WM_THIRD_PARTY_DIR  ...OpenFOAM/OpenFOAM-1.6-ext/ThirdParty  yes      yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      .../preibisch/OpenFOAM/OpenFOAM-1.6-ext  yes  yes  yes

$FOAM_APPBIN        ...ext/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...OAM/site/1.6-ext/bin/linux64GccDPOpt  no        no
$FOAM_USER_APPBIN    ...ext/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              ...isch/OpenFOAM/OpenFOAM-1.6-ext/wmake  yes  yes  yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN        ...OpenFOAM-1.6-ext/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...OAM/site/1.6-ext/lib/linux64GccDPOpt  no        no
$FOAM_USER_LIBBIN    ...reibisch-1.6-ext/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH      ...nmpi-1.4.3/platforms/linux64GccDPOpt  yes  yes  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version  Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
        Supplied version: 4.3.3
        User version    : 4.4.1
        Minimum required: 4.3.1

gcc      4.4.1   
WARNING:  Conflicting installations:
          OpenFOAM settings        : /bin/gcc
          current path            : /usr/bin/gcc
          CRITICAL ERROR

gzip    1.3.12    /usr/bin/gzip                                           
tar      1.21      /bin/tar                                               
icoFoam  1.6-ext  ...nFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.

Something is curious, I tried blockMesh and icoFoam all is fine!:confused: What is the critical error?

Preibie

andras March 3, 2011 10:28

OF Installation
 
@ kyle:
I can not agree more. The OpenFOAM(-ext) compilation process is a complete and utter mess - unless you use the exact compiler and library versions of the system it was developed on. This information however is willingly undocumented (among many other things) by the project team. My experience is that the compilation of the main OpenFOAM release (1.7.1) is much easier in this respect.

IMHO not much time is spent by the developers to make it install in a clean and predictable way on linux - I'm not even talking about other UNIX like OSs. wmake for example does not check the dependencies (compiler, linker, libraries, etc.) of the build process and blindly runs into avoidable errors during the long build. Certainly there is a lot to improve. The project's emphasis is clearly not portability or case compatibility between different releases...



@ preibie:
I think everything is all right if you can run the tutorials.



Cheers,
Andras

cnsidero March 3, 2011 10:49

@kyle and andras

I work at a software company so I know how much time and effort it requires (hint: its non-negligible) to get software to compile and install uniformly on different Linux flavors.

Furthermore, I would imagine the main devs would welcome you volunteering time to test the build and installations on other distributions. Remember, it's an open community - if you don't like something fix it or ask how you can help make it better.

kyle March 3, 2011 11:00

@cnsidero

I am not knocking the effort they have put into the project, only the design of the third party tools install scripts. It appears that significant work was done in this area when just keeping OpenCFD's solution would have been preferable. I am actually suggesting that the Extend developers should have expended LESS time and effort.

I am well aware how difficult it would be to create a rubust build system that worked on every architecture and OS that OpenFOAM supports.

cnsidero March 3, 2011 11:20

Quote:

Originally Posted by kyle (Post 297806)
@cnsidero

I am not knocking the effort they have put into the project, only the design of the third party tools install scripts. It appears that significant work was done in this area when just keeping OpenCFD's solution would have been preferable.

I would tend to disagree with this. If you take a quick survey of the forums on how many threads discuss difficulties building and installing ThirdParty packages (dependencies on specific gcc and Qt versions were probably the most), I don't think OpenCFD's version is any better (e.g. paraFoam). FWIW, this is a just a observation - I don't have numbers so I could be wrong.

I believe the intent of moving to a different build structure for the extend version was to have it automatically resolve the dependencies of the ThirdPary packages (i.e. if it's not installed, download the source, build and install it). Of course a new build system introduces new tools which adds different dependencies and other possible issues. The extend devs could probably provide a more appropriate response.

Plus, realize it is new and hasn't been abused by the user community much. Once it has been exposed more, bugs and other problems will get sorted out. Hence, my suggestion to contribute.

linnemann March 3, 2011 16:36

Hello

@ kyle
I somewhat agree, but I would believe there is some "behind the scene" reason why they opted to switch to this approach.


@ Everybody
1.6-ext build process is better in some aspects, for example having ThirdParty in the same folder as OF makes a whole lota sense for me.

in general if you do not want to build OF all the time I suggest you pick a linux distro and stick with it. Then put your compiled OF into a tar.gz file and store it a safe place. Preferably you choose a LTS (long term support) like ubuntu lts or RHEL/CentOS/SL or SLES to avoid EOL (end of life) in only 6months. There are a lot of people hosting different pre-built packages for the most popular distros. Myself I host a build of OF 1.7 and 1.6-ext for RHEL/CentOS/SL 5.x-x86_64.

The clusters I maintain and workstations I use are all installed with CentOS and installing OF/netgen/paraview/gmsh/engrid is as simple as downloading my install script and running it.

The pain of getting used to a new linux OS, even though their appear to be similar, can be long and troublesome because the differences lie in the details. Like where is the library files located. Can be /usr/lib or /usr/lib64 or usr/local/lib, etc. depending on the os.

I've tried maybe 15 different linux OS's, but nowadays I just use CentOS. You don't get the fancy new desktop effects out of the box, but it just works and its stable and it is supported well into the future.

So to sum up if you do not want do deal with the hassle of compiling OF and just want to do CFD, skip the steep learning curve and install a pre-built version and go directly to the even steeper learning curve of doing proper CFD with OF.:)

cnsidero March 3, 2011 16:43

@ linnemann

Hear, hear!

lindstroem May 12, 2011 05:42

Hi everybody,

i just got a new OS running openSUSE 11.4. I tried to compile of 1.6-ext and got an error at stage 3 compiling mesquit. It says

Code:

checking for Fortran libraries of ifort...
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... configure: error: in `/worklocal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/mesquite-2.1.2':
configure: error: cannot compile a simple Fortran program
See `config.log' for more details.
error: Bad exit status from /worklocal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.yriVkQ (%build)


RPM build errors:
    Bad exit status from /worklocal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.yriVkQ (%build)
Installing package: mesquite-2.1.2
  Uninstalling mesquite-2.1.2 using RPM: mesquite-2.1.2-linux64GccDPOpt.x86_64
  Installing mesquite-2.1.2 using RPM file: /worklocal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/mesquite-2.1.2-linux64GccDPOpt.x86_64.rpm
error: open of /worklocal/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/mesquite-2.1.2-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package mesquite-2.1.2

What I found out, that it is maybe because of a (missing) 32bit fortran compiler but I never found any similar problems. Any ideas or suggestions?

Greetings

[edit]gcc-fortran solved the problem..[/edit]

JulytoNovember September 8, 2011 03:12

Parmetis is the only package that doesn't installed could someone tell me what the problems is
HTML Code:

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/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.TbaEuL
+ umask 022
+ cd /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMetis-3.1.1
+ /bin/gzip -dc /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd ParMetis-3.1.1
+ echo Patch #1 (ParMetis-3.1.1.patch):
Patch #1 (ParMetis-3.1.1.patch):
+ /bin/cat /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMetis-3.1.1.patch
+ /usr/bin/patch -s -p1 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.apr1cY
+ umask 022
+ cd /home/eason/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 2 ]
+ make -j 2
(cd METISLib ; make )
make[1]: Entering directory `/home/eason/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: warning: format not a string literal and no format arguments
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/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/METISLib'
(cd ParMETISLib ; make )
make[1]: Entering directory `/home/eason/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: warning: format not a string literal and no format arguments
util.c: In function ‘myprintf__’:
util.c:52: warning: format not a string literal and no format arguments
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/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/ParMETISLib'
(cd Programs ; make )
make[1]: Entering directory `/home/eason/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: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:132: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:208: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:220: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c: In function ‘ReadTestCoordinates’:
io.c:452: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
io.c: In function ‘ReadMetisGraph’:
io.c:489: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:498: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c: In function ‘Mc_SerialReadMetisGraph’:
io.c:697: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:726: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c: In function ‘ParallelReadMesh’:
io.c:897: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
io.c:943: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
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
ptest.o: In function `ComputeRealCut2':
ptest.c:(.text+0x27f): undefined reference to `ompi_mpi_int'
ptest.c:(.text+0x2b0): undefined reference to `ompi_mpi_int'
ptest.c:(.text+0x4b1): undefined reference to `ompi_mpi_int'
ptest.o: In function `ComputeRealCut':
ptest.c:(.text+0x576): undefined reference to `ompi_mpi_int'
ptest.c:(.text+0x66d): undefined reference to `ompi_mpi_int'
ptest.o: In function `main':
ptest.c:(.text+0x1c02): undefined reference to `ompi_mpi_comm_world'
io.o: In function `ParallelReadMesh':
io.c:(.text+0x7e): undefined reference to `ompi_mpi_int'
io.c:(.text+0x458): undefined reference to `ompi_mpi_op_min'
io.c:(.text+0x4dd): undefined reference to `ompi_mpi_op_max'
io.c:(.text+0x626): undefined reference to `ompi_mpi_int'
io.o: In function `WriteOVector':
io.c:(.text+0x89d): undefined reference to `ompi_mpi_int'
io.c:(.text+0x940): undefined reference to `ompi_mpi_int'
io.o: In function `WritePVector':
io.c:(.text+0xa9d): undefined reference to `ompi_mpi_int'
io.c:(.text+0xb40): undefined reference to `ompi_mpi_int'
io.o:io.c:(.text+0x1185): more undefined references to `ompi_mpi_int' follow
io.o: In function `ReadTestCoordinates':
io.c:(.text+0x1ee5): undefined reference to `ompi_mpi_float'
io.c:(.text+0x203c): undefined reference to `ompi_mpi_float'
io.o: In function `ParallelReadGraph':
io.c:(.text+0x2429): undefined reference to `ompi_mpi_int'
io.c:(.text+0x2b66): undefined reference to `ompi_mpi_int'
adaptgraph.o: In function `Mc_AdaptGraph':
adaptgraph.c:(.text+0x100): undefined reference to `ompi_mpi_int'
adaptgraph.o: In function `AdaptGraph2':
adaptgraph.c:(.text+0x350): undefined reference to `ompi_mpi_int'
adaptgraph.c:(.text+0x361): undefined reference to `ompi_mpi_op_max'
adaptgraph.c:(.text+0x381): undefined reference to `ompi_mpi_op_min'
adaptgraph.c:(.text+0x3a2): undefined reference to `ompi_mpi_op_sum'
adaptgraph.o: In function `AdaptGraph':
adaptgraph.c:(.text+0x62d): undefined reference to `ompi_mpi_int'
adaptgraph.c:(.text+0x634): undefined reference to `ompi_mpi_op_max'
adaptgraph.c:(.text+0x657): undefined reference to `ompi_mpi_op_min'
adaptgraph.c:(.text+0x676): undefined reference to `ompi_mpi_op_sum'
../ParMETISLib/libparmetis.so: undefined reference to `ompi_mpi_2int'
../ParMETISLib/libparmetis.so: undefined reference to `ompi_mpi_op_minloc'
../ParMETISLib/libparmetis.so: undefined reference to `ompi_mpi_float_int'
../ParMETISLib/libparmetis.so: undefined reference to `ompi_mpi_double'
collect2: ld returned 1 exit status
make[1]: *** [../Graphs/ptest] Error 1
make[1]: Leaving directory `/home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMetis-3.1.1/Programs'
make: *** [default] Error 2
error: Bad exit status from /home/eason/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.apr1cY (%build)


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

========================================
Done ThirdParty AllMake: Stage3
========================================

** I installed 32-bit version, thats how I solve this problem **


All times are GMT -4. The time now is 17:32.