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

Problem compiling OF15x from git sources

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 27, 2008, 09:03
Default I have used the command gi
  #1
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 48
Rep Power: 8
lhcamilo is on a distinguished road
I have used the command

git clone http://repo.or.cz/r/OpenFOAM-1.5.x.git

to get the patched new patched version of OF, so to try out the fixes done on snappyHexMesh. The clone git://... command times out for me.

In any case, the file download into a newly made ~/OpenFOAM/ directory

I then have to uncomment $/etc/bashrc line 36 in order to make ./Allwmake work. The line reads

export WM_PROJECT_VERSION=1.5.x

Once I do that I do all that I go to the OpenFOAM-1.5.x directory and run ./Allwmake, it runs for a while but returns with an error

I am uploading the a log file of my second compile attempt.


I am posting a rapidshare link with with THE LOG FILE. It is 200KB big and the native uploader won't have it.

also, a quick question, does the git pull command need to have anything added to it? Sorry for this, I am rather new to GIT.

anyway thanks for your time, hope to hear a reply soon.


regards

leo
lhcamilo is offline   Reply With Quote

Old   November 27, 2008, 09:41
Default I generally find the following
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
I generally find the following easiest:

1) Create an empty git repository
git init

2) add in a remote
git remote add <name> <url>
eg,

git remote add repo http://repo.or.cz/r/OpenFOAM-1.5.x.git

3) list all the available branches:
git branch -a -l

4) fetch from remote:
git fetch repo


5) merge in the upstream updates into your own branch (as desired):

git merge repo/master


If you don't want to merge in the updates from the repo, you can just see what has changed first:

git log --stat --no-merges repo/master ^HEAD

And then either merge all of the changes, merge up to a particular commit, or cherry pick your way through as suits you.


There are a few git tutorials about ... take a read.
olesen is offline   Reply With Quote

Old   November 28, 2008, 03:36
Default thanks for the tip Mark, I did
  #3
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 48
Rep Power: 8
lhcamilo is on a distinguished road
thanks for the tip Mark, I did look at a tutorials, but since I am new to git I thought I was doing something wrong. So I followed the method that you proposed above (again thanks) and left the computer compiling everything over night

unfortunately this morning the compiling returned the same error as before.Which leads me to believe that the problem is not with the git but it may in the source packages downloaded or with my computer but I find that unlikely since I have compiled openfoam before on the same box without any errors.
So long story short,I am still vary much in the dark about why ti won't compile. If anyone could take a look at the log file I posted above I would really appreciate it.

thanks for the help

regards
lhcamilo is offline   Reply With Quote

Old   November 28, 2008, 04:37
Default I took a look at the log file
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
I took a look at the log file now and didn't see anything that looked like an error message. Or did you forget to bundle in stderr output as well? (eg, Allwmake > make.log 2>&1 )

Which error are you getting?
olesen is offline   Reply With Quote

Old   November 28, 2008, 06:15
Default I apologize for the inconvenie
  #5
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 48
Rep Power: 8
lhcamilo is on a distinguished road
I apologize for the inconvenience, I tried to compile again and noticed that my log file was a few (hundred) lines short, this new log file should be more complete

make.log

thanks for taking your time to help me out
lhcamilo is offline   Reply With Quote

Old   November 28, 2008, 07:12
Default After paring down your log fil
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
After paring down your log file, there were only two places that showed errors. I don't know what the first linker error/warning means:
> no .eh_frame_hdr table will be created.
so you're on your own there.

The second group of error messages are CMake related. It looks like you might have an older cmake version or something else.

You'll need to isolate where the problem arises (ie, only recompile the affected sections, not all of the sources).

Attached is your log file reduced to the essential bits. It is now small enough to post here: make.log
olesen is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OF15x with MPICH2 elisabet OpenFOAM Installation 6 August 25, 2009 23:19
OF15x sample utility does not accept component elisabet OpenFOAM Bugs 2 February 18, 2009 12:58
Problem compiling OF15x from git sources lhcamilo OpenFOAM Bugs 1 November 27, 2008 09:36
Compiling problem zhoubinwx OpenFOAM Running, Solving & CFD 3 September 3, 2008 09:00
Udf compiling problem ranjit FLUENT 6 February 15, 2007 14:19


All times are GMT -4. The time now is 17:52.