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

svn rev 1263 does not compile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 24, 2009, 16:32
Default svn rev 1263 does not compile
  #1
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Hello devs!

After updating OpenFoam-1.5-dev to revision 1263 "wmake libso OpenFOAM" fails. The compiler complains that lnInclude/ggiGAMGInterfaceTemplates.C cannot be found. Manually creating a symbolic link fixes the problem, so I'm wondering if the link in lnInclude was not committed by accident.

-Anton
akidess is offline   Reply With Quote

Old   May 25, 2009, 03:22
Default
  #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
Quote:
Originally Posted by akidess View Post
The compiler complains that lnInclude/ggiGAMGInterfaceTemplates.C cannot be found. Manually creating a symbolic link fixes the problem, so I'm wondering if the link in lnInclude was not committed by accident.
I'm not a developer and I can't comment on what the svn guys are doing, but if you check the .gitignore file in the git repo, you'll see that the 'lnInclude' are explicitly ignored everywhere. Thus I'd expect that they should never be part of an svn commit either.

The files in lnInclude are normally linked in as part of the wmake process. Of course, if extra C/H files have been added since the last of wmake, they won't get linked in at all. If you examine src/Allwmake, you'll notice how they avoid a similar sort of problem by using "wmakeLnInclude -f OpenFOAM" first.

To avoid these sort of problems in general, you use the following snippet after any major code reorganization:

Code:
$ find -name lnInclude -exec wmakeLnInclude -f {} \;
You might still run into slight difficulty with "wmake all" if entire subdirectories have been removed and the Make/ directory wasn't, but this is also fairly quick to sort out.
olesen is offline   Reply With Quote

Old   May 25, 2009, 12:54
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
I did use the Allwmake script in src/. Looking at it I see it does not use the "-f" flag, so my lnInclude directory was not updated. Good to know though that i can manually run wmakeLnInclude instead of creating the links on my own.

Consider the matter resolved, thank you Mark.
akidess 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
CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 125 July 1, 2015 21:09
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
DUNS compile with VC++, VF or gcc/g77 in PC Ali Irvi Main CFD Forum 17 August 6, 2014 09:19
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
141dev svn repository egp OpenFOAM Installation 1 August 25, 2008 16:10


All times are GMT -4. The time now is 10:32.