|
[Sponsors] |
September 24, 2010, 09:28 |
check wmake in CentFOAM
|
#1 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
HI,
is there any possibility to check the right function of 'wmake'? I have installed 'CentFOAM' on a Red Hat Enterprise Linux 5 and at the first sight it works correctly. But now I tried to upgrade the installation with the 'simpleFunctionObjects' strictly to rule in the wiki. But I only get a segfault when I want to use it. At first I thought its a problem with the 'simpleFunctionObjects'-pack, but now I tried to compile a modified solver without success. Because of my beginner-status I search the fault by my own modifications. Thats why I copied the solver 'buoyantBoussinesqSimpleFoam' und renamed it. Furthermore I renamed the .C file and modify the make/files. After running the wclean/wmake command the new 'buoyantTest'-solver was available but also leads to a segfault at the very beginning. Now I'm not sure if I have a correct Foam installation at all. Code:
user@pool buoyantTest]$ wmake Making dependency list for source file buoyantTest.C SOURCE=buoyantTest.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/OpenFOAM-1.7.0/src/turbulenceModels -I/OpenFOAM-1.7.0/src/turbulenceModels/incompressible/RAS/lnInclude -I/OpenFOAM-1.7.0/src/transportModels -I/OpenFOAM-1.7.0/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantTest.o /OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readSIMPLEControls.H: In function ‘int main(int, char**)’: /OpenFOAM-1.7.0/src/finiteVolume/lnInclude/readSIMPLEControls.H:9: warning: unused variable ‘transonic’ g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -I/OpenFOAM-1.7.0/src/turbulenceModels -I/OpenFOAM-1.7.0/src/turbulenceModels/incompressible/RAS/lnInclude -I/OpenFOAM-1.7.0/src/transportModels -I/OpenFOAM-1.7.0/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/buoyantTest.o -L/OpenFOAM-1.7.0/lib/linux64GccDPOpt \ -lfiniteVolume -lmeshTools -lincompressibleRASModels -lincompressibleTransportModels -lOpenFOAM -liberty -ldl -lm -o /OpenFOAM-1.7.0/applications/bin/linux64GccDPOpt/buoyantTest /usr/bin/ld: warning: i386 architecture of input file `/usr/lib/crt1.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386 architecture of input file `/usr/lib/crti.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386 architecture of input file `/usr/lib/crtn.o' is incompatible with i386:x86-64 output |
|
September 24, 2010, 17:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Pit,
Can you detail a bit how you installed CentFOAM? Did you follow the manual installation guide or did you use the automatic scripted installation? Best regards, Bruno
__________________
|
|
September 24, 2010, 22:54 |
|
#3 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
This is your problem Code:
/usr/bin/ld: warning: i386 architecture of input file `/usr/lib/crt1.o' is incompatible with i386:x86-64 output Also stated on the centFOAM project page is that onli 64bit is supported.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
September 25, 2010, 08:30 |
|
#4 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
@linnemann
Its a SUN with Opteron cpu's and should definetly have 64bit. @wyldckat To be honest, I've forgotten because it's weeks ago and I thought it works fine. I know that I started with downloading the packages and install dependies by hand wich need root permissions. After that I think I run the script several times to install the single applications like Engrid ... Thats all. |
|
September 25, 2010, 10:14 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pit,
OK, then let's figure out what is going on. What do these commands output: Code:
which gcc gcc -v uname -a
Best regards, Bruno
__________________
|
|
September 27, 2010, 03:58 |
|
#6 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
Hi Bruno,
after startup and before 'sourcing the .bashrc' which gcc: Code:
/usr/bin/gcc Code:
Using built-in specs. Target: x86_64-redhat-linux Konfiguriert mit: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread-Modell: posix gcc-Version 4.1.2 20080704 (Red Hat 4.1.2-48) which gcc: Code:
.../OpenFOAM/ThirdParty-1.7.0/platforms/linux64/gcc-4.4.4/bin/gcc Code:
Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/home/nini/OpenFOAM/ThirdParty-1.7.0/platforms/linux64/gcc-4.4.4 --with-gmp=/home/nini/OpenFOAM/ThirdParty-1.7.0/platforms/linux64/gmp-5.0.1 --with-mpfr=/home/nini/OpenFOAM/ThirdParty-1.7.0/platforms/linux64/mpfr-2.4.2 Thread model: posix gcc version 4.4.4 (GCC) uname -a: Code:
Linux local_machine 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux |
|
September 27, 2010, 04:25 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pit,
The "/home/nini" path is probably from Linnemann's build system But this is very odd... Before you ran wmake to build simpleFunctionObjects, you did source the bashrc file, right? Because right now there are only two possibilities that come to mind for this not to work:
Best regards, Bruno
__________________
|
|
September 27, 2010, 05:04 |
|
#8 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
The OF bashrc is sourced because without sourcing the 'wmake' command is not available. I tried it one more time few minutes ago with the same result.
|
|
September 27, 2010, 07:13 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pit,
OK, I forgot to ask this before, but which ld are you using? Code:
which ld ld -v The other possibility is that it could be a problem with the search process of the gcc related object files. Try this: Code:
cd $WM_THIRD_PARTY/platforms find . -name "ctr*.o" Bruno
__________________
|
|
September 27, 2010, 08:22 |
|
#10 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
I think we get closer to the problem
which ld: Code:
/usr/bin/ld ld -v: Code:
GNU ld version 2.17.50.0.6-14.el5 20061020 Code:
9 alias OF17=". ...OpenFoam/OpenFOAM-1.7.0/etc/bashrc" 10 export LD_LIBRARY_PATH=.../OpenFoam/paraview-3.8.0/lib/paraview-3.8:$LD_LIBRARY_PATH 11 export PATH=.../OpenFoam/paraview-3.8.0/bin:$PATH 12 export NETGENDIR=.../OpenFoam/netgen-4.9.13/bin 13 export PATH=.../OpenFoam/netgen-4.9.13/bin:$PATH 14 export LD_LIBRARY_PATH=../OpenFoam/netgen-4.9.13/lib:$LD_LIBRARY_PATH 15 export PATH=.../OpenFoam/engrid-1.2.0:$PATH 16 export PATH=.../OpenFoam/gmsh-2.4.2/bin:$PATH 17 export QTDIR=.../OpenFoam/Qt-4.5.2 18 export PATH=.../OpenFoam/Qt-4.5.2/bin:$PATH 19 export LD_LIBRARY_PATH=.../OpenFoam/Qt-4.5.2/lib:$LD_LIBRARY_PATH 20 export PATH=.../OpenFoam/vtk-5.4.2/bin:$PATH 21 export LD_LIBRARY_PATH=.../OpenFoam/vtk-5.4.2/lib/vtk-5.4:$LD_LIBRARY_PATH |
|
September 27, 2010, 09:27 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pit,
This is odd... doesn't CentFOAM come with its own ld? Try looking for it somewhere at "$WM_THIRD_PARTY/platforms/linux64/gcc-4.4.4". If there isn't an ld, then it's because it wasn't built with binutils. If there is one, but named something like "x86_64-unknown-linux-gnu-ld", then edit the rule files at "$WM_PROJECT_DIR/wmake/rules/linux64Gcc". Since I'm not familiar with the innards of CentFOAM, I'll have to suggest trying to rebuilding gcc 4.4.4 using the script I made available some time ago and updated yesterday: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series It will download the necessary packages and build both binutils and gcc. You can update the used versions of packages defined in the script if you want to, since for example, CentFOAM is using gmp-5.0.1 and my scripts are using the latest 4...something version... Best regards, Bruno
__________________
|
|
November 24, 2010, 09:49 |
|
#12 |
New Member
Join Date: Mar 2010
Posts: 25
Rep Power: 16 |
Hi Bruno,
sry for the long time of no response. I tried your solution but I get new errors. To make a long story short, I get a 'new & clean' RHEL5 installation from the admin. That finally woks fine with the CentFOAM-1.7.0. I only want to 'end' the thread for internal search and say thanks for your assistance. |
|
November 24, 2010, 17:59 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Pit,
Quote:
Best regards and happy foaming Bruno
__________________
|
||
Tags |
wmake centfoam segfault |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Problems Installing OF 1.6 32 bit | bucksfan | OpenFOAM Installation | 19 | August 4, 2009 02:36 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 05:41 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 22:45 |
[OpenFOAM] ParaFoam error message | joey | ParaView | 1 | October 2, 2006 14:28 |