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

1.6-ext compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2011, 07:33
Default 1.6-ext compilation
  #1
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Hello,

I am trying to compile OpenFOAM-1.6-ext. Running ./Allwmake gave a lot of error so I started step by step: I run wmake libso in OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/basic/laplacianFoam.

At first I had some files missing, so I made copies from 1.5-dev for the following files:
- OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/pointHit.H
- OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/primitivePatch.H
- OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/primitiveFacePatch.H
- OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvcDdt.H
- OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvcDdt.C

Most errors disappeared. The output is now
Code:
SOURCE=laplacianFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/laplacianFoam.o
In file included from /usr/include/stdio.h:907,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/cstdio:50,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/char_traits.h:48,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/string:47,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/string.H:52,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/word.H:44,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/int.H:40,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:59,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/labelList.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/Pstream.H:44,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/OPstream.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/parRun.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from laplacianFoam.C:33:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope
In file included from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/localefwd.h:47,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/string:50,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/string.H:52,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/word.H:44,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/int.H:40,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/label.H:59,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/labelList.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/Pstream.H:44,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/OPstream.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/parRun.H:36,
                 from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvCFD.H:4,
                 from laplacianFoam.C:33:
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h: At global scope:
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h:57: error: ‘uselocale’ was not declared in this scope
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h:57: error: invalid type in declaration before ‘;’ token
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)’:
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h:77: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/gcc-4.3.3/platforms/linux64/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-unknown-linux-gnu/bits/c++locale.h:102: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H: In function ‘int main(int, char**)’:
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:6: warning: unused variable ‘momentumPredictor’
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:9: warning: unused variable ‘fluxGradp’
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readSIMPLEControls.H:12: warning: unused variable ‘transonic’
make: *** [Make/linux64GccDPOpt/laplacianFoam.o] Error 1
How do i solve this problem?
flowris is offline   Reply With Quote

Old   January 28, 2011, 08:38
Default
  #2
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Well first, you should not have had to copy those files from 1.5-dev and it would be better if you didn't. Take pointHit.H as an example. You should already have it in OpenFOAM-1.6-ext/src/OpenFOAM/meshes/primitiveShapes/objectHit/pointHit.H. If you do not, then something went wrong in the download process. But if you have it there and just not in lnInclude, then I think the problem is that you are compiling the code out of order. Allwmake does things in a certain order, so to run it "step-by-step" means you need to run it line-by-line, in the same order it wants to do things. Eventually, it Allwmake would have caused pointHit.H to be symbolically linked into the directory where you say you copied it. I would suggest undoing what you've done (don't copy files from 1.5-dev), try Allwmake again, and deal with (or post) the first error you come across.

As far as your gnu error, others have run across it here and here, but the essence of it seems to be that some component of your compiler may be out of date.

Hope that helps-
__________________
David A. Boger
boger is offline   Reply With Quote

Old   January 28, 2011, 11:09
Default
  #3
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Thank you, Mr Boger,

I deleted the files I stole from 1.5-dev, and took al ook at Allwmake. The line that build the ThirdParty sources was commented. So I did:

cd $WM_THIRD_PARTY_DIR
./AllMake

and CMake could not find my C++ compiler:

Code:
This system rpm command: rpm --force-debian

========================================
Starting ThirdParty AllMake: Stage1
========================================

Updating the ThirdParty environment variables before building package cmake-2.8.3
Making package cmake-2.8.3 using RPM.
Building package cmake-2.8.3
Executing(%prep): /bin/sh -e /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.OjvhzC
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf cmake-2.8.3
+ /bin/gzip -dc /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/cmake-2.8.3.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd cmake-2.8.3
+ exit 0
Executing(%build): /bin/sh -e /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.4HMGPX
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd cmake-2.8.3
+ [ -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
+ ./configure --prefix=/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/cmake-2.8.3-linux64GccDPOpt.i386//home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.3/platforms/linux64GccDPOpt
---------------------------------------------
CMake 2.8.3, Copyright 2000-2009 Kitware, Inc.
C compiler on this system is: gcc -m64 -fPIC
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/cmake-2.8.3/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
error: Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.4HMGPX (%build)


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

========================================
Done ThirdParty AllMake: Stage1
========================================
I do not understand this, because if I check my environment variables, using

env | grep CXX

I get:

Code:
WM_CXXFLAGS=-m64 -fPIC
WM_CXX=g++
flowris is offline   Reply With Quote

Old   February 2, 2011, 10:03
Default
  #4
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
OK I resolved this by setting
compilerInstall=System
in etc/settings.sh

I can do AllMake.stage1 and AllMake.stage2

But when I run AllMake.stage3, I get:

Code:
This system rpm command: rpm --force-debian

========================================
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/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.o9FazI
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf ParMGridGen-1.0
+ /bin/gzip -dc /home/jmatthei/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
+ echo Patch #1 (ParMGridGen-1.0.patch):
Patch #1 (ParMGridGen-1.0.patch):
+ /bin/cat /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/ParMGridGen-1.0.patch
+ /usr/bin/patch -s -p1 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.EU2zZf
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd ParMGridGen-1.0
+ [ -z 2 ]
+ make -j 2
(cd MGridGen ; make)
make[1]: Entering directory `/home/jmatthei/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 )
/bin/sh: gmake: not found
make[1]: *** [default] Error 127
make[1]: Leaving directory `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParMGridGen-1.0/MGridGen'
make: *** [default] Error 2
error: Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.EU2zZf (%build)
flowris is offline   Reply With Quote

Old   February 2, 2011, 10:17
Default
  #5
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
You might try

Code:
ln -s /usr/bin/make /usr/bin/gmake
or maybe you can alias one to the other if you don't have root privileges.
__________________
David A. Boger
boger is offline   Reply With Quote

Old   February 3, 2011, 06:41
Default
  #6
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
Hi flowris

the instruction that Mr. Boger gave you is correct

plus, for the following steps, I would advise you to follow this cookbook I prepared myself while I was painfully installing OF-1.6-ext last week

1 - modify the $WM_PROJECT_DIR/etc/bashrc file for installation in /opt/OpenFOAM

2 - before running the Allwmake script, install the Thirdparty packages separately
There are scripts in the Thirdparty directory, ThirdParty/Allwmake.stage[0-4]
run them always before resourcing the $WM_PROJECT_DIR/etc/bashrc file

3 - before executing point 2, the installation of some packages is advised, see http://www.cfd-online.com/Forums/ope...okbook-12.html
These are:
rpm alien build-essential cmake flex bison binutils-dev byacc texinfo m4 gcc-multilib libglib2.0-dev libglu1-mesa-dev libiodbc2-dev libjpeg62-dev libmng-dev libmpfr1 libmpfr1ldbl libmysqlclient15-dev libpng12-dev libpq-dev libsqlite0-dev libtiff4-dev mesa-common-dev xorg-dev

4 - before running the Allwmake.stage3 script it is necessary to install the zlib1g-dev package

5 - add a QT_THIRD_PARTY=1 to the Allwmake.stage4 script

6 - for installing qt under debian (for compiling paraview 3.8.1), some packages must be installed, see http://doc.qt.nokia.com/4.7.old/requirements-x11.html
These are:

* libfontconfig1-dev
* libfreetype6-dev
* libx11-dev
* libxcursor-dev
* libxext-dev
* libxfixes-dev
* libxft-dev
* libxi-dev
* libxrandr-dev
* libxrender-dev

cheers, and let me know!
regards,

diego
diego_angeli is offline   Reply With Quote

Old   February 3, 2011, 10:07
Default
  #7
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Hello Mr Boger and Mr Angeli,

I made the link, which allowed me to run AllMake.stage3.

I followed the steps in the cookbook, except for step 1. I also added
Code:
QT_BIN_DIR=/usr/bin
to the file AllMake.stage4, as I read elsewhere on the forum (http://www.cfd-online.com/Forums/ope...1-6-ext-2.html).

My ThirdParty is now completely ready. Thanks a lot!
flowris is offline   Reply With Quote

Old   February 3, 2011, 13:21
Default
  #8
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
OK, I was too happy too soon. When I tried to do the same thing on my home computer, I gt this output after ./AllMake.stage3

Code:
========================================
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
Package ParMGridGen-1.0 is already installed
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/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.TGs39V
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ rm -rf libccmio-2.6.1
+ /bin/gzip -dc /home/jmatthei/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
+ echo Patch #0 (libccmio-2.6.1.patch_0):
Patch #0 (libccmio-2.6.1.patch_0):
+ /bin/cat /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0
+ /usr/bin/patch -s -p1 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.hwoZBf
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ [ -n gcc ]
+ export CC=gcc
+ [ -n g++ ]
+ export CXX=g++
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ [ -z 2 ]
+ unset RELEASE
+ unset DEBUG
+ unset STATIC
+ unset SHARED
+ [ -d libadf ]
+ cd libadf
+ RELEASE=1 SHARED=1 make -f Makefile.qmake all
..//config/runqmake ../ \
      -o Makefile.adf adf.pro 2>&1 | tee qmake.vars
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf/..//config/linux_2.4-x86-glibc_2.3.2/qmake: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
make[1]: Entering directory `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.adf'.  Stop.
make[1]: Leaving directory `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libadf'
make: *** [all] Error 2
+ [ -d libccmio ]
+ cd libccmio
+ RELEASE=1 SHARED=1 make -f Makefile.qmake all
..//config/runqmake ../ \
      -o Makefile.ccmio ccmio.pro 2>&1 | tee qmake.vars
/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libccmio/..//config/linux_2.4-x86-glibc_2.3.2/qmake: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
make[1]: Entering directory `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libccmio'
make[1]: *** No rule to make target `/u/xeona04/people/prewett/src/libccmio/config/linux64_2.4-x86-glibc_2.2.5/qmake.conf', needed by `Makefile.ccmio'.  Stop.
make[1]: Leaving directory `/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/libccmio-2.6.1/libccmio'
make: *** [all] Error 2
+ exit 0
Executing(%install): /bin/sh -e /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.krxKyz
+ umask 022
+ cd /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd libccmio-2.6.1
+ mkdir -p /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/libccmio-2.6.1-linuxGccDPOpt.i386//home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linuxGccDPOpt/include/libccmio
+ mkdir -p /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/libccmio-2.6.1-linuxGccDPOpt.i386//home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linuxGccDPOpt/lib
+ find ./lib -name release-shared
find: `./lib': No such file or directory
+ libsdir=
error: Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.krxKyz (%install)


RPM build errors:
    Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.krxKyz (%install)
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/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGccDPOpt.i386.rpm
error: open of /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/libccmio-2.6.1-linuxGccDPOpt.i386.rpm failed: No such file or directory
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
Package scotch-5.1.10b is already installed
Done installing package scotch-5.1.10b

Updating the ThirdParty environment variables before building package ParMetis-3.1.1
Package ParMetis-3.1.1 is already installed
Done installing package ParMetis-3.1.1

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

Old   February 4, 2011, 04:06
Default
  #9
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
try to install package libstdc++5
it complains it cannot find the library

regards
d.a.
diego_angeli is offline   Reply With Quote

Old   February 4, 2011, 07:08
Default
  #10
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
I installed libstdc++5 (not standard in Ubuntu 10.04-LTS, but it worked out).

My bash cannot download files form https servers. I have the following error, several times,until it gives up:

Code:
--2011-02-04 13:01:06--  (try: 2)  https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz
Connecting to wci.llnl.gov|198.128.246.10|:443... failed: Connection timed out.
Retrying.
I cannot ping this host either:
Code:
ping: unknown host https://wci.llnl.gov/
How can I come around this problem?
flowris is offline   Reply With Quote

Old   February 4, 2011, 09:51
Default
  #11
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
The server problem is now also resolved and my ThirdParty is compiled.

I went into the src folder and started running Allwmake line by line. On line 22 "wmake libso OpenFOAM" there were several dependency problems. The first one is:

Code:
make: *** No rule to make target `meshes/primitiveMesh/primitivePatch/patchZones.dep', needed by `Make/linux64GccDPOpt/dependencies'.  Stop.
I am reading the make manual now, but this will take a lot of time, so any help is much appreciated.
flowris is offline   Reply With Quote

Old   February 4, 2011, 10:22
Default
  #12
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
you should run the ./Allwmake script in the root directory and not that in the src directory.
the mess is almost all about the third party stuff, compilation of the solvers, libs and apps should be straightforward now for you.
diego_angeli is offline   Reply With Quote

Old   February 4, 2011, 11:03
Default
  #13
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Hi, I am running now from the directory ~/OpenFOAM/OpenFOAM-1.6-ext, but the same type of errors occur:
Code:
+ wmakePrintBuild -check
same version as previous build
+ wmakeLnInclude OpenFOAM
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
'/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/dummy/libPstream.so' is up to date.
+ set +x

Note: ignore spurious warnings about missing mpicxx.h headers
+ WM_OPTIONS=linux64GccDPOptOPENMPI
+ wmake libso mpi
'/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/openmpi-1.4.3/libPstream.so' is up to date.
+ wmake libo OSspecific/POSIX
'/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libOSspecific.o' is up to date.
+ wmake libso OpenFOAM
make: *** No rule to make target `meshes/primitiveMesh/primitivePatch/patchZones.dep', needed by `Make/linux64GccDPOpt/dependencies'.  Stop.
And somewhat further:
Code:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope
flowris is offline   Reply With Quote

Old   February 14, 2011, 02:50
Default
  #14
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Anyone? this has still not been resolved...
flowris is offline   Reply With Quote

Old   February 14, 2011, 08:06
Default
  #15
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Didn't you previously resolve the same problem yourself? There's something wrong with your gcc. What are you using for it?
__________________
David A. Boger
boger is offline   Reply With Quote

Old   February 14, 2011, 10:14
Default
  #16
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
No, the original problem was never solved, only the problems with the compilation of ThirdParty.

I tried with my system compiler, namely gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3, which was installed with Ubuntu Software Centre and should thus work correctly. I also tried with the OpenFOAM compiler, namely gcc (OpenFOAM) 4.3.3.

I just fail to see the problem.
flowris is offline   Reply With Quote

Old   March 21, 2011, 11:01
Default
  #17
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
flowris is on a distinguished road
Can somebody help me, please? I still have the error from February 14.
flowris is offline   Reply With Quote

Old   March 21, 2011, 11:32
Default
  #18
Member
 
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17
diego_angeli is on a distinguished road
sorry, but I have no clue about a solution to your error!
I have already posted you the packages I needed to install, and that was all.
Maybe if you re-post a bigger chunk of stdout we could figure it out better.
diego_angeli is offline   Reply With Quote

Old   March 21, 2011, 12:01
Default
  #19
Member
 
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 18
mchurchf is on a distinguished road
I have encountered the missing file problem, you posted at the beginning of this thread. One of those files is pointHit.H. I tracked the problem back to downloading the source code tarball to a Windows or Mac computer, not directly to a linux computer. There are a few files that have the same names, just different capitalization, and downloading to Windows or Mac wipes out one capitalization of the files.
mchurchf is offline   Reply With Quote

Reply

Tags
1.6-ext, compilation, laplaciafoam


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
k-omega-SST model (OF 1.6) - turbulent flat plate cboss OpenFOAM Running, Solving & CFD 25 August 9, 2016 09:53
Compilation error for openfoam - 1.6 misakagan OpenFOAM 19 February 21, 2012 10:36
problems in Two Phase flow using twoPhaseEulerFoam with OpenFoam 1.6 raagh77 OpenFOAM Running, Solving & CFD 0 March 6, 2010 05:11
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 17:55
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54


All times are GMT -4. The time now is 03:53.