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

[OpenFOAM.org] Error in compiling in debug mode

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2016, 17:34
Default Error in compiling in debug mode
  #1
New Member
 
Mehdi
Join Date: Jul 2014
Location: Iran
Posts: 10
Rep Power: 11
paradox is on a distinguished road
Dear foamers

I am trying to compile in debug mode but there is some error while compiling.
some of strange output lines are :
Quote:
Note: ignore spurious warnings about missing mpicxx.h headers

+ wmake libso finiteVolume
make: *** No rule to make target `fields/fvsPatchFields/basic/coupled/coupledFvsPatchFields.dep', needed by `Make/linux64GccDPDebug/dependencies'. Stop.

+ wmake libso genericPatchFields
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make: *** [/home/paradox/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/libgenericPatchFields.so] Error 1
can anybody help me?
Attached Files
File Type: txt log.txt (119.5 KB, 6 views)

Last edited by paradox; April 19, 2016 at 17:40. Reason: to add outputFile
paradox is offline   Reply With Quote

Old   April 19, 2016, 18:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note: Looks like you omitted vital information.
The error message is pointing out that there is an entry in "src/finiteVolume/Make/files" that doesn't exists, namely:
Code:
src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchFields.C
__________________
wyldckat is offline   Reply With Quote

Old   April 19, 2016, 19:19
Default
  #3
New Member
 
Mehdi
Join Date: Jul 2014
Location: Iran
Posts: 10
Rep Power: 11
paradox is on a distinguished road
Drear bruno,
Thanks for your quick reply.

This file already exist. but I remember one days I was reading and working on these BC files, before.
can I replace this directory "fields" by original and compile it again and get fix?
paradox is offline   Reply With Quote

Old   April 20, 2016, 17:29
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by paradox View Post
can I replace this directory "fields" by original and compile it again and get fix?
Yes, it should solve at least part of the problem.

You should also run the following command before you run Allwmake:
Code:
wclean libso src/finiteVolume
so that this will make this library "finiteVolume" rebuild properly.
wyldckat is offline   Reply With Quote

Old   April 21, 2016, 08:34
Default
  #5
New Member
 
Mehdi
Join Date: Jul 2014
Location: Iran
Posts: 10
Rep Power: 11
paradox is on a distinguished road
That's right.
By replacing original files and rebuilding "fininteVolume" just solve one part of problems.
Another problem is occurred.
Quote:
/home/paradox/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/libfiniteVolume.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make: *** [/home/paradox/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPDebug/lib/libgenericPatchFields.so] Error 1
I cleaned up the build of the libOpenFOAM library but this problem did not resolved.

regards.
mehdi
Attached Files
File Type: gz log.tar.gz (12.5 KB, 1 views)
paradox is offline   Reply With Quote

Old   April 21, 2016, 17:39
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Simply run:
Code:
rm $FOAM_LIBBIN/libfiniteVolume.so
wyldckat is offline   Reply With Quote

Old   April 22, 2016, 07:39
Thumbs up
  #7
New Member
 
Mehdi
Join Date: Jul 2014
Location: Iran
Posts: 10
Rep Power: 11
paradox is on a distinguished road
Thanks a lot.

By removing libfiniteVolume.so, another parts of the problems go away.

I had to run the following commands to wclean applications too:
Code:
wclean all $FOAM_APP/utilities *
wclean all $FOAM_APP/solvers *
Now compiling debug mode is done, although some errors that are not important to me are occurred,
but I am able to compile and debug solvers by eclipse IDE.

Regards,
mehdi.
paradox is offline   Reply With Quote

Reply

Tags
openfoam compile debug


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
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
[foam-extend.org] compiling foam-extend-4.0 after switching to debug mode failed Pfiffikus OpenFOAM Installation 2 February 9, 2018 09:00
Recursive output of Foam::word in gdb print command chengdi OpenFOAM Programming & Development 1 July 19, 2017 20:19
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 18:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18


All times are GMT -4. The time now is 18:34.