Carlo Alberto Ferraris
2011-Jun-24 14:49 UTC
[LLVMdev] Missing symbols in pass stack trace
> Try building with "make VERBOSE=1", which will show you the > command-lines passed to the compiler/linker. Post the output here.there you go:> cafxx at ubuntu:~/Projects/llvm2/lib/Transforms/cgf$ make VERBOSE=1 > llvm[0]: Compiling CGFPass.cpp for Debug+Asserts build (PIC) > if g++ -I/home/cafxx/Projects/llvm2/include > -I/home/cafxx/Projects/llvm2/lib/Transforms/cgf -D_DEBUG > -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g > -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual > -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter > -Wwrite-strings -c -MMD -MP -MF > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp" > -MT > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o" -MT > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d" CGFPass.cpp > -o > /home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o ; \ > then /bin/mv -f > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp" > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d"; > else /bin/rm > "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp"; > exit 1; fi > llvm[0]: Linking Debug+Asserts Loadable Module CGF.so > g++ -I/home/cafxx/Projects/llvm2/include > -I/home/cafxx/Projects/llvm2/lib/Transforms/cgf -D_DEBUG > -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g > -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -g > -Wl,-R -Wl,'$ORIGIN' -L/home/cafxx/Projects/llvm2/Debug+Asserts/lib > -L/home/cafxx/Projects/llvm2/Debug+Asserts/lib -pedantic > -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings > -shared -o /home/cafxx/Projects/llvm2/Debug+Asserts/lib/CGF.so > /home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o \ > > -Wl,--version-script,/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGF.exports.map > -lpthread -ldl -lm >-- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> website/blog <http://cafxx.strayorange.com> - +39 333 7643 235 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/521f314a/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 233 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/521f314a/attachment.vcf>
On Jun 24, 2011, at 10:49 AM, Carlo Alberto Ferraris wrote:> >> Try building with "make VERBOSE=1", which will show you the command-lines passed to the compiler/linker. Post the output here. > there you go: >> cafxx at ubuntu:~/Projects/llvm2/lib/Transforms/cgf$ make VERBOSE=1 >> llvm[0]: Compiling CGFPass.cpp for Debug+Asserts build (PIC) >> if g++ -I/home/cafxx/Projects/llvm2/include -I/home/cafxx/Projects/llvm2/lib/Transforms/cgf -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp" -MT "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o" -MT "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d" CGFPass.cpp -o /home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o ; \ >> then /bin/mv -f "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp" "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d"; else /bin/rm "/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.d.tmp"; exit 1; fi >> llvm[0]: Linking Debug+Asserts Loadable Module CGF.so >> g++ -I/home/cafxx/Projects/llvm2/include -I/home/cafxx/Projects/llvm2/lib/Transforms/cgf -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -g -Wl,-R -Wl,'$ORIGIN' -L/home/cafxx/Projects/llvm2/Debug+Asserts/lib -L/home/cafxx/Projects/llvm2/Debug+Asserts/lib -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -shared -o /home/cafxx/Projects/llvm2/Debug+Asserts/lib/CGF.so /home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGFPass.o \ >> -Wl,--version-script,/home/cafxx/Projects/llvm2/lib/Transforms/cgf/Debug+Asserts/CGF.exports.map -lpthread -ldl -lm >> >Are you loading the shared library directly from the build directory, or are you installing it first? If you run "file CGF.so" on the file you actually load, does it say it is stripped or non-stripped?> > > -- > Carlo Alberto Ferraris <cafxx at strayorange.com> > website/blog - +39 333 7643 235 > <cafxx.vcf>_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdevThanks, Justin Holewinski -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/71aead9d/attachment.html>
Carlo Alberto Ferraris
2011-Jun-24 15:03 UTC
[LLVMdev] Missing symbols in pass stack trace
> Are you loading the shared library directly from the build directory, > or are you installing it first?I'm invoking it directly, I guess:./opt -load=CGF.so -cgf -debug test.S should I install it? (I have no idea about how to do it, though...)> If you run "file CGF.so" on the file you actually load, does it say it > is stripped or non-stripped?cafxx at ubuntu:~/Projects/llvm2/Debug+Asserts/bin$ file ../lib/CGF.so ../lib/CGF.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> website/blog <http://cafxx.strayorange.com> - +39 333 7643 235 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/bda5ea27/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: cafxx.vcf Type: text/x-vcard Size: 233 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110624/bda5ea27/attachment.vcf>