lldb complains about incomplete definitions

637 views
Skip to first unread message

alexlin...@gmail.com

unread,
Jan 19, 2017, 1:02:39 PM1/19/17
to moose-users
In lldb, I'm getting page(s) of errors like this when printing variables:

(lldb) p neig->centroid()
error: libmoose-dbg.so.0 DWARF DIE at 0x04379340 (class Restartable) has a member variable 0x04379356 (_restartable_name) whose type is a forward declaration, not a complete definition.
Try compiling the source file with -fno-limit-debug-info
error: libmoose-dbg.so.0 DWARF DIE at 0x04cb5388 (class MooseEnumBase) has a member variable 0x04cb53ab (_raw_names) whose type is a forward declaration, not a complete definition.
Try compiling the source file with -fno-limit-debug-info
error: libmesh_dbg.so.0 DWARF DIE at 0x014d7e4c (class pair<const short, std::__cxx11::basic_string<char> >) has a member variable 0x014d7e60 (second) whose type is a forward declaration, not a complete definition.
Try compiling the source file with -fno-limit-debug-info

Eventually lldb prints the information I want, so the error messages appear mostly just to be annoying. Correct me if I'm wrong, but I think this is related to this issue: https://llvm.org/bugs/show_bug.cgi?id=18454. Looks like there's an option (either -fno-limit-debug-info or -fstandalone-debug) that gets turned on by default on Darwin systems but not on others. Anyone experienced this/have a work-around? Otherwise it would seem like a modification needs to be made to configure/make. I imagine there may not be a lot of other MOOSE users though using clang on non-Darwin systems.

Peterson, JW

unread,
Jan 19, 2017, 2:21:16 PM1/19/17
to moose-users
Looks like -fno-limit-debug-info is the flag we want as it has been around a bit longer...


Would you mind rebuilding libmesh with this flag on your system (export libmesh_CXXFLAGS=-fno-limit-debug-info" before running configure) and see if it actually fixes all the lldb errors?  If so, I'll put in a libmesh PR to add the flag.

--
John

Alexander Lindsay

unread,
Jan 19, 2017, 3:36:31 PM1/19/17
to moose...@googlegroups.com
Yea, I can do that. Will report back.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CANj%2BmwCYEN-m9baxFREvOCFKBb_zjTDHti2YXS3%3DwigUnLCNHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages