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

svn rev 1263 does not compile

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

Reply
 
LinkBack Thread Tools Search this Thread 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: Germany
Posts: 1,377
Rep Power: 29
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: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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: Germany
Posts: 1,377
Rep Power: 29
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 04:20
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 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 21:51
141dev svn repository egp OpenFOAM Installation 1 August 25, 2008 16:10


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