Looking for more LLBrowse testers / users

LLBrowse - a GUI tool which allows you to inspect the contents of LLVM modules - now runs on Linux and OS X, and it works with both LLVM 2.8 and current LLVM head. I’ve updated the docs to include instructions on checking out and building the code under several different environments, which you can read here: http://llvm.org/svn/llvm-project/llbrowse/trunk/doc/LLBrowse.html (the doc also includes screenshots.)

I’m interested in any bug reports or problems folks might have. You can either reply to this thread or email me privately.

Hi Talin,

I still get the same error…
/home/john/src/llbrowse/lib/Formatting.cpp: In function ‘void printTypeExpansion(wxTextOutputStream&, const llvm::Module*, const llvm::Type*, uint32_t)’:
/home/john/src/llbrowse/lib/Formatting.cpp:33: error: ‘X86_MMXTyID’ is not a member of ‘llvm::Type’
make[2]: *** [CMakeFiles/llbrowse.dir/lib/Formatting.cpp.o] Error 1
make[1]: *** [CMakeFiles/llbrowse.dir/all] Error 2
make: *** [all] Error 2
john@ubuntu:~/src/build-llbrowse$ uname -a
Linux ubuntu 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linu

If I comment out that line then I get the errors below:
john@ubuntu:~/src/build-llbrowse$ make
[ 5%] Building CXX object CMakeFiles/llbrowse.dir/lib/Formatting.cpp.o
[ 11%] Building CXX object CMakeFiles/llbrowse.dir/lib/DetailsView.cpp.o
[ 16%] Building CXX object CMakeFiles/llbrowse.dir/lib/TreeView.cpp.o
/home/john/src/llbrowse/lib/TreeView.cpp: In member function ‘virtual void DIEItem::ShowDetails(DetailsView*)’:
/home/john/src/llbrowse/lib/TreeView.cpp:913: error: ‘class llvm::DISubprogram’ has no member named ‘isPrivate’
/home/john/src/llbrowse/lib/TreeView.cpp:914: error: ‘class llvm::DISubprogram’ has no member named ‘isProtected’
/home/john/src/llbrowse/lib/TreeView.cpp:915: error: ‘class llvm::DISubprogram’ has no member named ‘isExplicit’
/home/john/src/llbrowse/lib/TreeView.cpp:916: error: ‘class llvm::DISubprogram’ has no member named ‘isPrototyped’
make[2]: *** [CMakeFiles/llbrowse.dir/lib/TreeView.cpp.o] Error 1
make[1]: *** [CMakeFiles/llbrowse.dir/all] Error 2
make: *** [all] Error 2
john@ubuntu:~/src/build-llbrowse$
john@ubuntu:~/src/build-llbrowse$ llvm-config --version
2.9svn
john@ubuntu:~/src/build-llbrowse$ clang --version
clang version 2.9 (trunk 126095)
Target: x86_64-unknown-linux-gnu
Thread model: posix
john@ubuntu:~/src/build-llbrowse$ llc --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.9svn
Optimized build with assertions.
Built Feb 19 2011 (13:43:27).
Host: x86_64-unknown-linux-gnu
Host CPU: corei7

Thanks,
John

Huh, interesting. I must have made an error when I downloaded the 2.8 version of LLVM, because I see that ‘isPrivate’ isn’t there (it was checked in a couple weeks before that, but didn’t make the branch cut apparently.)

I still can't build LLBrowse on my Debian5-i386 machine today,
The following is a full build console output.
I am using LLVM-2.8 release build, with needed wxWidgets and CMake.

Thank you

Chuck

sideshow.eecg>time cmake ../llbrowse
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /steffan/a/a0/czhao/bin/bin32/gcc
-- Check for working C compiler: /steffan/a/a0/czhao/bin/bin32/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found wxWidgets: TRUE
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for auto_ptr.h
-- Looking for auto_ptr.h - not found
-- Looking for C++ include memory
-- Looking for C++ include memory - found
-- LLVM llvm-config found at: /steffan/a/a0/czhao/opt/opt32/llvm-2.8r/bin/llvm-config
-- Configuring done
-- Generating done
-- Build files have been written to: /steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/obj
1.976u 2.100s 0:14.37 28.3% 0+0k 48680+2392io 174pf+0w
sideshow.eecg>time make
[ 5%] Converting PNG image file resources/icons/folder.png
[ 11%] Converting PNG image file resources/icons/collapse.png
[ 16%] Converting PNG image file resources/icons/typeref.png
[ 22%] Converting PNG image file resources/icons/expand.png
[ 27%] Converting PNG image file resources/icons/type.png
[ 33%] Converting PNG image file resources/icons/function.png
[ 38%] Converting PNG image file resources/icons/module.png
[ 44%] Converting PNG image file resources/icons/variable.png
[ 50%] Converting PNG image file resources/icons/debug.png
[ 55%] Converting PNG image file resources/icons/meta.png
[ 61%] Converting PNG image file resources/icons/alias.png
[ 66%] Converting PNG image file resources/icons/constant.png
Scanning dependencies of target llbrowse
[ 72%] Building CXX object CMakeFiles/llbrowse.dir/lib/BrowserFrame.cpp.o
[ 77%] Building CXX object CMakeFiles/llbrowse.dir/lib/DetailsView.cpp.o
[ 83%] Building CXX object CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o
/steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp: In member function 'virtual bool BrowserApp::OnInit()':
/steffan/a/a0/czhao/ResearchTools/LLVM/LLBrowse/llbrowse/lib/BrowserApp.cpp:29: error: 'PrintStackTraceOnErrorSignal' is not a member of 'llvm::sys'
make[2]: *** [CMakeFiles/llbrowse.dir/lib/BrowserApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/llbrowse.dir/all] Error 2
make: *** [all] Error 2
7.228u 1.228s 0:12.34 68.3% 0+0k 13512+1784io 3pf+0w

sideshow.eecg>

OK try it now - I checked in a few more fixes.

Nice,
It builds and runs fine now.

Thank you, Talin

Chuck

Thanks, It compiles and runs now.

–John