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

OF15 libccmio and thus ccm26ToFoam do not compile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2008, 10:37
Default Sorry about the missing files
  #1
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Sorry about the missing files in the release pack, I will tweak the pack scripts to sort this out. In the meantime here are the missing files
files
options

H
henry is offline   Reply With Quote

Old   August 23, 2008, 12:58
Default Thanks Henry!
  #2
Member
 
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17
mwild is on a distinguished road
Thanks Henry!
mwild is offline   Reply With Quote

Old   August 23, 2008, 13:57
Default As an aside: what bugs me abou
  #3
Member
 
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17
mwild is on a distinguished road
As an aside: what bugs me about the current build system is that it is quite verbose and thus makes spotting build errors very difficult, especially since the Allwmake scripts simply continue on error, such that detecting build errors becomes nearly impossible.

I propose prefixing all calls in Allwmake scripts which might fail (wmake, make, cmake, mkdir, tar, cp,...) with a function call, e.g. called tryRun which might look like this:

# defined in some common file which gets sourced by
# all Allwmake scripts
function tryRun() {
if [ -n "$WM_STOP_ON_ERROR" ]; then
$@ || exit 1
else
$@
fi
}

# in some Allwmake script
tryRun wmake libso something
tryRun tar xzf something_else.tgz

This way, if the user set WM_STOP_ON_ERROR to anything except the empty string, the Allwmake script will abort on error.

And another thing: the shell scripts that come with OpenFOAM all use the shebang #!/bin/sh, but do not use POSIX sh, but extended (bash) features, such as command substitution with the $(command) form, instead of `command`.
On most Linux systems this works fine, as they alias /bin/sh to /bin/bash, but e.g. Ubuntu as a very widespread distribution does not do so (and with good reason) and uses /bin/dash instead, which does not support these syntax extensions. So why not use #!/bin/bash (or even better: #!/usr/bin/env bash) instead?
mwild is offline   Reply With Quote

Old   August 23, 2008, 16:14
Default "especially since the Allwmake
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
"especially since the Allwmake scripts simply continue on error"

This was a request made by users which we put in. I would be happy to return to the previous settings where the build system stops on error.

Our intention is for our scripts to be POSIX compliant and as far as we are aware they are. We have tested them with bash in sh mode and with dash (which the developers claim is POSIX) and all the build scripts run fine. In fact the 32bit binary release of 1.5 was built on an Ubuntu machine. If you have found non-POSIX features in our scripts please let us know and we will remove them.

H
henry is offline   Reply With Quote

Old   August 23, 2008, 17:02
Default "This was a request made by us
  #5
Member
 
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17
mwild is on a distinguished road
"This was a request made by users which we put in. I would be happy to return to the previous settings where the build system stops on error."

Or let the user choose what to do. I do see the use of "letting it run as far as it possibly can get", especially if you want to do the compilation over night and not be frustrated next morning at it having stopped after just 5 minutes. But then, afterwards, you usually want to be REALLY sure things went smoothly and don't want to dig out possible error messages in tons of output.

About the POSIX thing: I probably have to apologize as I based my claim on my experience with the 1.4.x version where I encountered exactly these problems. While reading through some of the scripts I thought I spotted some of the constructs which caused me some headaches with 1.4.x, but haven't actually tried it on a vanilla Ubuntu machine and now stand corrected. Sorry for the noise...

BTW, I really think OF-1.5 is a big step forward. I especially like that you separated out the third-party stuff in a cleaner way.

Michael
mwild is offline   Reply With Quote

Old   August 24, 2008, 16:56
Default When running the following at
  #6
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
When running the following at the command prompt for OpenFoam 1.5,

tar -xzvf ThirdParty.linuxGcc.gtgz

I get the folliwng message after a while. Any suggestions?

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Musaddeque Hossein
musahossein is offline   Reply With Quote

Old   August 24, 2008, 17:01
Default I have a question about OpenFo
  #7
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
I have a question about OpenFoam 1.5. If I install it the OpenFoam 1.4 directory, will it remove files as necessary and replace OpenFoam 1.4 with 1.5 i.e, is OpenFoam 1.5 an upgrade? If not will the presence fof OpenFoam 1.5 in the same dir as 1.4 create problems? Or should I get rid of 1.4 alltogether? I am not too keen on doing that yet, since it took quite an effort to get 1.4 up and running since a number of files were missing.

Any suggestions?

Thanks
Musaddeque Hossein
musahossein is offline   Reply With Quote

Old   August 24, 2008, 17:29
Default "gzip: stdin: unexpected end o
  #8
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
"gzip: stdin: unexpected end of file"

It probably means that your file download ended before the entire file was downloaded. The solution is to try and download the file again.


Regarding your other query, I don't think OpenFOAM releases are upgrades like some GNU/Linux distributions. So you will need to install OpenFOAM 1.5 afresh. If you want to be *very* safe, you can always create another user in your GNU/Linux system and install OpenFOAM 1.5 for that user. That way, you can preserve 1.4 and also get the chance to fool around with 1.5 until you decide to switch to it permanently.

My experience with OpenFOAM since version 1.2 suggests that you can safely remove the old version and move to the new one; as more often than not, many bugs are fixed in newer versions.
msrinath80 is offline   Reply With Quote

Old   August 24, 2008, 21:52
Default Hi, musaddeque, I think bot
  #9
Member
 
Ivan Lau
Join Date: Mar 2009
Location: Hong Kong
Posts: 56
Rep Power: 17
ivanwhlau is on a distinguished road
Hi, musaddeque,

I think both OpenFOAM 1.4.1 and 1.5 can exist in the same machine.
Well, I used to have both versions. I believe you can change your ".bashrc" file to determine which version to use. (Remark: I use Suse 10.3, so your setting may be different, but I think it should be similar).

iL
ivanwhlau is offline   Reply With Quote

Old   August 25, 2008, 03:37
Default "gzip: stdin: unexpected end o
  #10
Member
 
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17
mwild is on a distinguished road
"gzip: stdin: unexpected end of file" means corrupt download. After re-downloading, compare the output of:

md5sum <path/to/downloaded/file.gtgz>

(where you replace the part in between <> with the actual path to the file) with the value give on the download page. If they match, you're sure that the download was successful.

And Ivan is right, they can coexist without any problems, as they use a distinct directory structure. Just do:

cd ~/OpenFOAM
tar xzf <path/do/downloaded/file.gtgz>

and OF-1.5 goes into ~/OpenFOAM/OpenFOAM-1.5. You'll have to do this for the source- and binary-pack and then again for the ThirdParty source- and binary packs (unless you intend to build OF yourself).

HTH

Michael
mwild is offline   Reply With Quote

Old   August 25, 2008, 07:44
Default Thanks, Srinath. You were righ
  #11
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Thanks, Srinath. You were right - for some reason the file did not download completely.
http://www.cfd-online.com/cgi-bin/OpenFOAM_Discus/show.cgi?tpc=126&post=25921#POST259 21

Musa
musahossein is offline   Reply With Quote

Old   December 10, 2008, 11:26
Default Hi, i'm trying to compile w
  #12
New Member
 
Bastien Holbek
Join Date: Mar 2009
Posts: 15
Rep Power: 17
bholbek is on a distinguished road
Hi,

i'm trying to compile with wmake the ccm26ToFoam utility. I have the following error:

Making dependency list for source file ccm26ToFoam.C
SOURCE=ccm26ToFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/ric_home/ep4/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/ric_home/ep4/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/ric_home/ep4/OpenFOAM/ThirdParty/libccmio-2.6.1 -I/ric_home/ep4/OpenFOAM/ThirdParty/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/ric_home/ep4/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/ric_home/ep4/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C:47:19: error: ccmio.h: Datei oder Verzeichnis nicht gefunden
ccm26ToFoam.C:164: error: variable or field 'CheckError' declared void
ccm26ToFoam.C:164: error: 'CCMIOError' was not declared in this scope
ccm26ToFoam.C:164: error: expected primary-expression before 'const'
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Fehler 1

I don't understand what i have to do with files "files" and "options" of Henry Weller. I have no Make directory in ThirdParty/libccmio-2.3.1. Replacing the two initial files of the Make directory in ccm26ToFoam directory, i have the following error:

make: *** Keine Regel vorhanden, um das Target »libadf/ADF_fortran_2_c.dep«,
benötigt von »Make/linux64GccDPOpt/dependencies«, zu erstellen. Schluss.

Could someone help me?

Thank you

Bastien
bholbek is offline   Reply With Quote

Old   December 19, 2008, 06:17
Default Did you run AllwmakeLibccmio i
  #13
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Did you run AllwmakeLibccmio in the ThirsParty directory? This should have installed the ccmio library (so including the file ccmio.h).

The compilation of then ccm26ToFoam includes that Thirdparty directory (/ric_home/ep4/OpenFOAM/ThirdParty/libccmio-2.6.1) to find the ccmio.h.
mattijs is offline   Reply With Quote

Old   February 16, 2009, 04:38
Default Hi, I get the following mess
  #14
New Member
 
srikara's Avatar
 
Srikara Mahishi
Join Date: Mar 2009
Location: Bangalore
Posts: 22
Rep Power: 17
srikara is on a distinguished road
Hi,
I get the following message when I run the AllwmakeLibccmio command in the ThirdParty directory :
smahishi@system001:~/OpenFOAM/ThirdParty> ./AllwmakeLibccmio
+ packageDir=libccmio-2.6.1
+ '[' '!' -d libccmio-2.6.1 ']'
+ '[' -d libccmio-2.6.1 -a '!' -d libccmio-2.6.1/Make ']'
+ cp -r wmakeFiles/libccmio libccmio-2.6.1/Make
cp: cannot stat `wmakeFiles/libccmio': No such file or directory
+ '[' -d libccmio-2.6.1/Make ']'
smahishi@system001:~/OpenFOAM/ThirdParty>

Could anybody please help me out with this? I do not know where is it trying to copy the libccmio file to.

Thank you in advance,
Srikara
srikara is offline   Reply With Quote

Old   February 16, 2009, 09:06
Default Hello, I solved the problem.
  #15
New Member
 
srikara's Avatar
 
Srikara Mahishi
Join Date: Mar 2009
Location: Bangalore
Posts: 22
Rep Power: 17
srikara is on a distinguished road
Hello,
I solved the problem. It was something to do with the folder Make in the thirdParty directory. I had to change the case of the letter from m to M. After that I was able to run the AllwmakeLibccmio command from the thirdparty folder and it ran without any errors. But when I run the command Allwmake from the "mesh/conversion/Optional/ccm26ToFoam" folder I get the message

"No rule to make target : libadf/ADF_fortran_2_c.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop

What could be the problem? Does anybody know what is missing here?

Thank you,
Srikara
srikara is offline   Reply With Quote

Old   February 16, 2009, 09:09
Default Hello, I solved the problem.
  #16
New Member
 
srikara's Avatar
 
Srikara Mahishi
Join Date: Mar 2009
Location: Bangalore
Posts: 22
Rep Power: 17
srikara is on a distinguished road
Hello,
I solved the problem. It was something to do with the folder Make in the thirdParty directory. I had to change the case of the letter from m to M. After that I was able to run the AllwmakeLibccmio command from the thirdparty folder and it ran without any errors. But when I run the command Allwmake from the "mesh/conversion/Optional/ccm26ToFoam" folder I get the message

"No rule to make target : libadf/ADF_fortran_2_c.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop

What could be the problem? Does anybody know what is missing here?

Thank you,
Srikara
srikara is offline   Reply With Quote

Old   February 24, 2009, 18:29
Default go to ThirdParty/libccmio-2.6.
  #17
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
go to ThirdParty/libccmio-2.6.1 and do a

wclean
wmake libso

to do a clean rebuild. This should rebuild the ADF_fortran_2_c.o it is complaining about.
mattijs is offline   Reply With Quote

Old   March 25, 2009, 07:11
Default No rule to make
  #18
New Member
 
Join Date: Mar 2009
Posts: 20
Rep Power: 17
Xabi is on a distinguished road
Hi Srikara,

Did you finally manage to solve the problem? I am new with OpenFoam and I have the same problem you had some months ago with the compiling.
I try to compile my one solver (in this case a variation of simpleFoam) and the following error shows up after typing wmake:

make: *** No rule to make target ´mysimpleFoam.dep´ needed by 'Make/linux64GccDPOpt/dependencies'. Stop

Thank you in advance,

Xabi

Quote:
Originally Posted by srikara View Post
Hello,
I solved the problem. It was something to do with the folder Make in the thirdParty directory. I had to change the case of the letter from m to M. After that I was able to run the AllwmakeLibccmio command from the thirdparty folder and it ran without any errors. But when I run the command Allwmake from the "mesh/conversion/Optional/ccm26ToFoam" folder I get the message

"No rule to make target : libadf/ADF_fortran_2_c.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop

What could be the problem? Does anybody know what is missing here?

Thank you,
Srikara
Xabi is offline   Reply With Quote

Old   March 31, 2009, 01:32
Default
  #19
New Member
 
srikara's Avatar
 
Srikara Mahishi
Join Date: Mar 2009
Location: Bangalore
Posts: 22
Rep Power: 17
srikara is on a distinguished road
Hi Xabi,
I could not find out what the problem was. But I solved the problem by reinstalling OpenFOAM completely by logging in as root and then installed the library libccmio also as root. It worked perfectly after that.

I am facing the same problem trying to modify the source code of an existing solver. If I find an answer this time I would let you know asap.
srikara is offline   Reply With Quote

Old   November 16, 2009, 07:09
Default
  #20
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
Hi

I aslo get this error when trying to build libccmio

"No rule to make target : libadf/ADF_fortran_2_c.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop

I tried this suggestion:

Quote:
go to ThirdParty/libccmio-2.6.1 and do a

wclean
wmake libso

to do a clean rebuild. This should rebuild the ADF_fortran_2_c.o it is complaining about.
but it just gave the same error. CAn anybody help? where is this file located: ADF_fortran_2_c.dep?
bernarde is offline   Reply With Quote

Reply


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
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 11:54
Fan type BC in OF15 hsieh OpenFOAM Running, Solving & CFD 31 July 30, 2015 13:22
[Commercial meshers] Ccm26tofoam problems knabhishek OpenFOAM Meshing & Mesh Conversion 8 April 15, 2014 09:37
Canbt compile libso autoMesh OF15 andersking OpenFOAM Bugs 9 May 1, 2013 08:29
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 kprzysowagmailcom OpenFOAM Installation 7 November 6, 2009 05:33


All times are GMT -4. The time now is 00:07.