CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Wmake error OpenSUSE 103 64 bit arch (http://www.cfd-online.com/Forums/openfoam-installation/57439-wmake-error-opensuse-103-64-bit-arch.html)

tom February 7, 2008 07:53

when I try to run wmake, this
 
when I try to run wmake, this is what I get:

SOURCE=setGammaSplashWet.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/setGammaSplashWet.o

In file included from /usr/include/features.h:345,
from /usr/include/limits.h:27,
from /usr/lib64/gcc/x86_64-suse-linux/4.2.1/include/limits.h:122,
from /usr/lib64/gcc/x86_64-suse-linux/4.2.1/include/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.2.1/include/limits.h:11,
from /usr/include/c++/4.2.1/climits:50,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/label.H:38,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/labelList.H:36,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/Pstream.H:45,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/OPstream.H:37,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/parRun.H:4,
from /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvCFD.H:4,
from setGammaSplashWet.C:36:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make: *** [Make/linuxGccDPOpt/setGammaSplashWet.o] Error 1

Where can I find the .rpm that holds stubs-32.h? I have been searching for it for a long time, but with no success. I have OpenFOAM installed and running perfectly on my home 32-bit PC.

My 64bit machine is Hp Compaq 6820s laptop.

Thank You!

tom February 7, 2008 11:11

Hello, I solved the missing
 
Hello,

I solved the missing stubs-32.h (it was in glibc-devel-32bit-2.6.1-18.x86_54.rpm), but now I have another problem:

Calling wmake on my setGammaSplashWet.C results in:

g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/setGammaSplashWet.o -L/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/setGammaSpl ashWet
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/setGammaSp lashWet] Error 1

For this one, I don't know where to start. I'm barely a beginning Linux user, as well as OpenFOAM, so any advice is deeply appreciated. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

gschaider February 7, 2008 16:03

The linker did not find libfin
 
The linker did not find libfiniteVolue.so

Check whether there is such a file in /usr/OpenFOAM/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt and it is readable for your account

unoder February 7, 2008 23:12

The error reason must be befor
 
The error reason must be before. Search the forum. Some people solve the/a libfinitevolume-problem by downgrading flex to 2.5.4a. I don't know if this is the cause of an error here, but I had that flex-problem myself - and that was also opensuse 10.3, so you might consider to try it out.

tom February 8, 2008 06:07

Thank You for the advice: I
 
Thank You for the advice:

I've tried to look for the file, but found nothing. I also ran foamInstallationTest and got two new suprises(critical errors with gcc and Java).

I'll search the forum and try to find the answer somewhere.

tom February 8, 2008 13:57

An old post solved the problem
 
An old post solved the problem for me:

There was a conflict between the system gcc and the one defined by bashrc in .OpenFOAM-1.4 (and with Java too).... The conflict stated a search via a path using terms for 32-bit architecture(that's how I recognised the problem: I have x86_64 arch), so I had to export WM_64='on' before sourcing OpenFOAM's bashrc.

Thank You for the advice Martin: search the forum first, ask questions later. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif


All times are GMT -4. The time now is 11:09.