|
[Sponsors] |
[swak4Foam] Cannot build swak4Foam with OpenFOAM-dev |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 8, 2016, 00:10 |
Cannot build swak4Foam with OpenFOAM-dev
|
#1 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I was able to build for OpenFOAM-3.0.x a while back, but now it's failing with commit 23bcea0299 of dev. I have tried the master and port_of-dev branches of the swak repo to no avail. Are swak and dev incompatible?
Here's the error message I'm getting: Code:
In file included from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/typeInfo.H:57:0, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/token.H:46, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UListIO.C:28, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UList.C:225, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UList.H:462, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/List.H:43, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/labelList.H:48, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/UPstream.H:42, from /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/Pstream.H:42, from lnInclude/DebugOStream.H:55, from lnInclude/swak.H:333, from makeSwakDataEntry.C:34: /home/pete/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/DataEntry.H:192:59: error: expected initializer before ‘<’ token defineNamedTemplateTypeNameAndDebug(DataEntryTypes::SS<Type>, 0); |
|
February 15, 2016, 18:38 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: OpenFOAM-dev is the bleeding-edge of the OpenFOAM development line.
If I remember correctly, about a week ago, "DataEntry" was renamed to "Function1something" in OpenFOAM-dev, so that it could contemplate other generic data types that are 1 argument input data types and give way for future 2 or more input data types. Since it was done around a week ago, it's only natural that the swak4Foam development line isn't updated yet May I suggest that since (if I remember correctly) you already have some experience with Travis-CI and if you want to contribute to swak4Foam, an automated reporting mechanism would come in handy for swak4Foam and other similar projects for keeping on-par to when they break building whenever OpenFOAM-dev gets such a similar upgrade!
__________________
Last edited by wyldckat; February 21, 2016 at 16:51. Reason: DataType -> DataEntry |
|
February 15, 2016, 18:47 |
|
#3 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I figured it was something like that. I have a little experience with Travis CI. I believe it requires the project be on GitHub. Would it be advisable to submit a PR to the mirror at https://github.com/Unofficial-Extend...swak4Foam-dev?
|
|
February 15, 2016, 19:40 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
February 16, 2016, 08:35 |
|
#5 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Oh, I meant to setup Travis. I guess there would be no harm in having a .travis.yml file back in the Mercurial repo on Sourceforge (?). If the mirror on GitHub is pushed to just as often, it can be cloned from there.
|
|
February 21, 2016, 13:49 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Oh, now I get it!
Well... the mirror system currently in place is a bit wonky, because the Mercurial-to-Git extension that is currently being used isn't 100% full-proof, since Mercurial sometimes lets some neat features to occur, which are not translated directly to Git by the extension. And the mirror is using tiny VMs on OpenShift, which have to be manually woken up once in a while... therefore, if it's not awake, it won't mirror . However, SourceForge.net does support webhooks: https://forge-allura.apache.org/p/allura/wiki/Webhooks/ |
|
February 21, 2016, 14:24 |
|
#7 |
Member
Ruggero Poletto
Join Date: Nov 2013
Posts: 34
Rep Power: 12 |
I am interested into the same thing as well ... Did you manage to install swak4foam on the dev version? What did you change and have you commit it to some repo?
|
|
February 21, 2016, 20:52 |
|
#8 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
So... I think setting up Travis for swak would be a lot easier if there were nightly deb pack builds of OF-dev. I am working on getting Travis to build OF-dev right now. Is there a recipe for building a deb pack?
|
|
February 22, 2016, 12:56 |
|
#9 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I started playing a bit with Travis for checking swak can build with OF-dev, but for some reason, it can't find the Pstream.H file. Any idea why this is happening?
Full log: https://travis-ci.org/petebachant/op...ilds/110993952 |
|
February 27, 2016, 11:11 |
|
#10 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Quote:
It's easier if you do a local build, tarball it, upload to your own fork on a tag-release as a binary package and then download and unpack it from the Travis bot. Quote:
OK, Travis-CI has Ubuntu 12.04 as production default and Ubuntu 14.04 as beta. I'll try to build OpenFOAM-dev on a VM (or maybe in Docker) with 14.04 and then I'll upload the build snapshot, so you can use it as well.
__________________
|
||||
February 27, 2016, 11:13 |
|
#11 | |
Member
Ruggero Poletto
Join Date: Nov 2013
Posts: 34
Rep Power: 12 |
Quote:
Ok. Please keep me up to date please. All the best |
||
February 27, 2016, 16:34 |
|
#12 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I was able to at least setup Travis to try building OpenFOAM-dev, but it just takes too long. Do you know off-hand which parts I could build for a barebones check of swak compatibility, or a smart way to split OpenFOAM's Allwmake script into smaller jobs?
|
|
February 27, 2016, 18:29 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
(cd wmake/src && make) src/Allwmake -j 2 > log.make.src 2>&1 But worry not, I've got the first (complete) build up, although it's only 64-bit + Double Precision + 32-bit labels (integers) (and no ParaView ):
Code:
git clone https://github.com/OpenFOAM/OpenFOAM-dev.git git clone https://github.com/OpenFOAM/ThirdParty-dev.git Code:
wget https://....../OpenFOAM-dev.linux64GccDPInt32Opt_2016-02-27.tbz wget https://....../ThirdParty-dev.linux64GccDPInt32Opt_2016-02-27.tbz tar -xf OpenFOAM-dev.linux64GccDPInt32Opt_2016-02-27.tbz tar -xf ThirdParty-dev.linux64GccDPInt32Opt_2016-02-27.tbz Then use the source command: Code:
source $HOME/OpenFOAM/OpenFOAM-dev/etc/bashrc But keep in mind that this is built with Ubuntu 14.04.4... which I certainly hope this will work with Travis-CI's "Ubuntu 14.04.3 LTS" that the log states in your builds that it's using. By the way, the steps I used in Docker are here: https://github.com/wyldckat/wyldckat...cker-on-Ubuntu If we can get prove this concept, then we can later streamline the build system. By the way, the build with 64-bit labels will be up possibly only tomorrow morning... with any luck. |
||
February 27, 2016, 19:11 |
|
#14 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I am getting the same error now actually, and I have even tested with `icoFoam -help` that OpenFOAM is installed correctly. It still can't find "Pstream.H":
https://travis-ci.org/petebachant/op...12319371#L3016 |
|
February 27, 2016, 19:32 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Sorry about that .
There is one very important command missing for rebuilding all of the "lnInclude" folders, which are not packaged into the binary packages: Code:
wmakeLnIncludeAll Code:
cd OpenFOAM-dev wmakeLnIncludeAll Hopefully I didn't miss anything else. |
|
February 27, 2016, 20:42 |
|
#16 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Alright! The requirements can build now. Is there a plan for automatically building OpenFOAM-dev/ThirdParty-dev so those binaries can stay up to date?
|
|
February 27, 2016, 22:18 |
|
#17 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Pete,
Quote:
Quote:
The latest issue for swak4Foam to build is related to the revamp recently made by Henry Weller to the "tmp" class, which has now been made a lot more consistent on object accesses by reference. The downside is that it's going to be a bit annoying to provide yet another compatibility layer to swak4Foam The most likely scenario is to use a template wrapper class that reproduces the OpenFOAM-dev format into the older OpenFOAM versions/forks. I still believe that something akin to Python Six will have to be created to make it easier to compensate for all of these changes throughout all versions and forks... given that more projects are coming forward that have compatibility issues between versions/forks Anyway, after the issues are resolved, there are a few details that need to be taken care of:
Bruno
__________________
|
|||
February 28, 2016, 00:24 |
|
#18 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
If swak is to be compatible with every version/fork of OpenFOAM, including old versions, that will be quite the build matrix. Building against older versions with deb packs should be pretty straightforward though.
|
|
February 28, 2016, 01:19 |
|
#19 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
A little more progress... I setup the build matrix to compile against OpenFOAM 3.0 as well, which passes: https://travis-ci.org/petebachant/op...ilds/112353517
|
|
March 6, 2016, 11:16 |
|
#20 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Quote:
My advice: Document what you've done so far, at least on your wiki and we can get back to this once other higher/critical priority tasks are out of the way In the meantime, OpenFOAM-dev is going through a lot of internal changes and syncing swak4Foam-dev right now to it as well can be a bit... distressing |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
[OpenFOAM.org] OpenFOAM build on Intel Xeon Phi | asaijo | OpenFOAM Installation | 31 | July 26, 2017 11:35 |
OpenFoam 1.6-ext - RPM build errors | preibie | OpenFOAM | 12 | September 8, 2011 04:12 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |