[LLVMdev] Missing symbols in pass stack trace

Justin Holewinski justin.holewinski at gmail.com
Fri Jun 24 07:44:57 PDT 2011


On Jun 24, 2011, at 10:34 AM, Carlo Alberto Ferraris wrote:

> 
>> Looks like your shared library is not being compiled with symbols.  Did you verify that your sources are compiled with -g?
> I think so, this is the makefile (based on the one in the Hello pass):
>> LEVEL = ../../..
>> LIBRARYNAME = CGF
>> LOADABLE_MODULE = 1
>> USEDLIBS =
>> 
>> ifneq ($(REQUIRES_RTTI), 1)
>> ifneq ($(REQUIRES_EH), 1)
>> EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/CGF.exports
>> endif
>> endif
>> 
>> include $(LEVEL)/Makefile.common
> and this is the invocation:
>> cafxx at ubuntu:~/Projects/llvm2/lib/Transforms/cgf$ make
>> llvm[0]: Compiling CGFPass.cpp for Debug+Asserts build (PIC)
>> llvm[0]: Linking Debug+Asserts Loadable Module CGF.so
> 

Try building with "make VERBOSE=1", which will show you the command-lines passed to the compiler/linker.  Post the output here.

> 
> -- 
> Carlo Alberto Ferraris <cafxx at strayorange.com>
> website/blog - +39 333 7643 235

Thanks,

Justin Holewinski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/bb13123c/attachment.html>


More information about the llvm-dev mailing list