|
[Sponsors] |
January 5, 2011, 12:10 |
Errors by OpenFOAM-1.5-dev compilation
|
#1 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 |
Dear OpenFOAMers,
when trying to compile the version of OpenFOAM-1.5-dev (which I have got from http://openfoam-extend.svn.sourcefor...nFOAM-1.5-dev/) Although many libraries were compiled successfully, I have got several errors the discussion of which I have not noticed in other threads. I work with gcc 4.5.0 under SUSE Linux 11.3. I hope, I have installed all the required packages: at least, OpenFOAM-1.6-ext and OpenFOAM-1.7.x I have successfully compiled. (I need OpenFOAM-1.5-dev because I am going to use the OSIG TurboMachinery libraries and still fail to make them work with OpenFOAM-1.6-ext) Here are the error messages: 1. Code:
/home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::hBoundaryCorrection(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&)' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::constructfvMeshConstructorTables()' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::~basicThermo()' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `typeinfo for Foam::basicThermo' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::fvMeshConstructorTablePtr_' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::basicThermo(Foam::fvMesh const&)' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::read()' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::destroyfvMeshConstructorTables()' /home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libcombustionThermophysicalModels.so: undefined reference to `Foam::basicThermo::hBoundaryTypes()' collect2: ld gab 1 als Ende-Status zurück make[2]: *** [/home/oko/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linuxGccDPOpt/XiFoam] Error 1 Code:
/home/oko/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libliquidMixture.so: undefined reference to `Foam::liquid::New(Foam::Istream&)' collect2: ld gab 1 als Ende-Status zurück make[2]: *** [/home/oko/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linuxGccDPOpt/dieselFoam] Error 1 Code:
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libreadline.so when searching for -lreadline /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libreadline.a when searching for -lreadline /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline collect2: ld gab 1 als Ende-Status zurück make[3]: *** [/home/oko/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linuxGccDPOpt/setSet] Error 1 make[2]: *** [setSet] Error 2 Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: winnb35 OS: Linux version 2.6.34.7-0.5-desktop ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/oko/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/oko/OpenFOAM/oko-1.5-dev yes no $WM_THIRD_PARTY_DIR /home/oko/OpenFOAM/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 /home/oko/OpenFOAM/OpenFOAM-1.5-dev yes yes yes $FOAM_APPBIN ...5-dev/applications/bin/linuxGccDPOpt yes yes yes $FOAM_USER_APPBIN ...5-dev/applications/bin/linuxGccDPOpt yes yes no $WM_DIR .../oko/OpenFOAM/OpenFOAM-1.5-dev/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 ...M/OpenFOAM-1.5-dev/lib/linuxGccDPOpt yes yes yes $FOAM_USER_LIBBIN ...enFOAM/oko-1.5-dev/lib/linuxGccDPOpt yes yes no $MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt 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.1 User version : ../configure Minimum required: 4.2.0 gcc ...figure WARNING: Conflicting installations: OpenFOAM settings : /bin/gcc current path : /usr/bin/gcc CRITICAL ERROR gzip 1.3.13 /usr/bin/gzip tar 1.23 /bin/tar icoFoam 1.5-dev ...penFOAM-1.5-dev/applications/bin/linuxGccDPOpt/icoFoam ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_winnb35 Networking_cannot_reach_winnb35 yes WARNING: CRITICAL ERROR Pinging_localHost Successful yes Test_rsh: Not_active* yes Test_ssh: Not_active* yes FATAL ERROR: No remote shell available. OpenFOAM 1.5-dev enviroment requires either ssh and/or rsh. Contact your system administrator. ------------------------------------------------------------------------------- The system test has evoked 1 fatal error(s). The foam installation contains 2 critical error(s). Review the output for warning messages and consult the installation guide for trouble shooting. done. And what is the problem with ssh connection? For the other OpenFOAM versions installed on the computer, the foamInstallationTest delivers no errors. Sincerely, Alexey Kochevsky |
|
January 5, 2011, 13:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Alexey,
OK, a few of the errors you are getting have already been addressed here: http://www.cfd-online.com/Forums/ope...c-4-5-1-a.html I'm sorry, but you'll have to read the whole thread, since there are details that I might forget if I sum them up here. As for the "-lreadline", you're missing the libreadline packages, both library and development folders. Search in YaST - Software installation, for occurrences of "libreadline". If you still are unable to build 1.5-dev, then don't forget to run Allwmake like this: Code:
cd $WM_PROJECT_DIR ./Allwmake > make.log 2>&1 tar -czf make.log.tar.gz make.log Best regards and good luck! Bruno
__________________
|
|
January 10, 2011, 08:44 |
|
#3 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 |
Greetings Bruno,
thank you very much for the prompt help. Nevertheless, I have not made further progress. I have read the thread you had mentioned, I have taken the wmake rules from OpenFOAM-1.7.x, updated the links with "wmakeLnIncludeAll src applications", added the line "#include <stdio.h>" to the "chemkinLexer.L" file, however, it had no effect on the compilation results. Concerning the "libreadline" library: I have checked, this library is installed by me, namely the version 5.2-117.1 and 6.1-8.1. However, the installed libraries are of 64 bit, whereas my system is of 32 bit. Maybe, here is the reason? When I try to install 32-bit version, the YaST answers that a number of other libraries should be replaced with 32 bit versions. I am hesitating whether this major replacement will not disturb operation of other OpenFOAM versions that are already installed. By the way, how can one be sure whether the used OpenSuSE version is of 32 or 64 bit? I assume, for 64 bit versions, it is stated in system information explicitly. Otherwise, the OS is of 32 bit? Attached is the make.log file, compressed with tar (sorry, some messages over there are in German, it is the language of my operation system). Regards, Alexey |
|
January 13, 2011, 18:32 |
|
#4 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Alexey,
I'm sorry for taking so long to reply, but these last days have been a hand full. Quote:
Quote:
Code:
uname -m Quote:
Code:
cd $WM_PROJECT_DIR wcleanAll wcleanLnIncludeAll Code:
find / -name "libreadline.so*" 2>/dev/null But if you can find it, run: Code:
mkdir -p $FOAM_LIBBIN ln -s full_path_to_the_libreadline $FOAM_LIBBIN/libreadline.so Then run Allwmake like you did before. Best regards and good luck! Bruno
__________________
|
||||
January 14, 2011, 12:48 |
|
#5 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 |
Dear Bruno,
thank you very much for your explanation. The code "uname -m" outputs by me "x86_64". So, I was mistaking, my Linux SuSE is of 64 bit. Meanwhile, I have succeeded to build this OpenFOAM version on my laptop and copy the results to this PC. It seems it works. To spare time, I will try to proceed with this separately compiled version. Kind regards, Alexey |
|
Tags |
1.5-dev, cannot find -lreadline, undefined reference |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
OpenFOAM 1.5 dev | LVDH | OpenFOAM | 98 | May 5, 2010 18:01 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |