check wmake in CentFOAM
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 |
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 |
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
Its a SUN with Opteron cpu's and should definetly have 64bit.:confused: @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. |
Hi Pit,
OK, then let's figure out what is going on. What do these commands output: Code:
which gcc
Best regards, Bruno |
Hi Bruno,
after startup and before 'sourcing the .bashrc' which gcc: Code:
/usr/bin/gcc Code:
Using built-in specs. which gcc: Code:
.../OpenFOAM/ThirdParty-1.7.0/platforms/linux64/gcc-4.4.4/bin/gcc Code:
Using built-in specs. 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 |
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 |
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.
|
Hi Pit,
OK, I forgot to ask this before, but which ld are you using? Code:
which ld 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 Bruno |
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" |
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 |
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. :) |
Hi Pit,
Quote:
Best regards and happy foaming ;) Bruno |
All times are GMT -4. The time now is 03:09. |