Thanks John. I verified that and poolalloc builds with LLVM 3.0. I used
clang for compiling wxWidgets, LLVM 3.0 and poolalloc.
But llvm-tv build still gives build error. I take it that llvm-tv is still
incompatible with these versions of poolalloc and LLVM 3.0. I think the
code is manageable - couple of files in lib,include and some 30 odd small
files in tools directory. I'll have a look at the code to sort out the
build errors.
Have you tried compiling/using llvm-tv with these versions of poolalloc and
LLVM-3.0?
Here is the llvm-tv build error -
/home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5: error:
use of undeclared identifier 'perror'
perror("scandir");
^
/home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5: error:
use of undeclared identifier 'perror'
perror("scandir");
^
On Tue, Jun 5, 2012 at 8:23 AM, John Criswell <criswell at illinois.edu>
wrote:
> On 6/1/12 7:33 PM, AbhishekR wrote:
>
> I am trying to compile llvm-tv as per the instructions from the link -
> http://llvm.org/svn/llvm-project/television/trunk/README.txt
>
> The poolalloc doesn't seem to be in synch with the llvm svn version
> mentioned (78786). It is giving lot of errors during compilation. I fixed
> a few of them by bringing in functions/header files etc. wherever required
> from the mainline llvm. But this exercise seems to be overwhelming.
>
>
> I'm not sure if you care about poolalloc, but mainline poolalloc
currently
> compiles with LLVM 3.0 (which can be found in the release_30 branch of the
> LLVM sources).
>
> -- John T.
>
>
> Is there a working version of llvm-tv that I can use with LLVM 3.1?
>
> --
> Regards,
> Abhishek
>
>
> _______________________________________________
> LLVM Developers mailing listLLVMdev at cs.uiuc.edu
http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
--
Regards,
Abhishek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120605/163050ba/attachment.html>
llvm-tv is no longer being maintained, so it is not expected to work with LLVM 3.0 or really anything recent. Its been dead for years now. -Tanya On Jun 5, 2012, at 5:45 PM, AbhishekR wrote:> Thanks John. I verified that and poolalloc builds with LLVM 3.0. I used clang for compiling wxWidgets, LLVM 3.0 and poolalloc. > > But llvm-tv build still gives build error. I take it that llvm-tv is still incompatible with these versions of poolalloc and LLVM 3.0. I think the code is manageable - couple of files in lib,include and some 30 odd small files in tools directory. I'll have a look at the code to sort out the build errors. > > Have you tried compiling/using llvm-tv with these versions of poolalloc and LLVM-3.0? > > Here is the llvm-tv build error - > > /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5: error: use of undeclared identifier 'perror' > perror("scandir"); > ^ > /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5: error: use of undeclared identifier 'perror' > perror("scandir"); > ^ > > > On Tue, Jun 5, 2012 at 8:23 AM, John Criswell <criswell at illinois.edu> wrote: > On 6/1/12 7:33 PM, AbhishekR wrote: >> >> I am trying to compile llvm-tv as per the instructions from the link - http://llvm.org/svn/llvm-project/television/trunk/README.txt >> >> The poolalloc doesn't seem to be in synch with the llvm svn version mentioned (78786). It is giving lot of errors during compilation. I fixed a few of them by bringing in functions/header files etc. wherever required from the mainline llvm. But this exercise seems to be overwhelming. > > I'm not sure if you care about poolalloc, but mainline poolalloc currently compiles with LLVM 3.0 (which can be found in the release_30 branch of the LLVM sources). > > -- John T. >> >> Is there a working version of llvm-tv that I can use with LLVM 3.1? >> >> -- >> Regards, >> Abhishek >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > > -- > Regards, > Abhishek > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120605/07ad54e5/attachment.html>
On 6/5/12 7:45 PM, AbhishekR wrote:> Thanks John. I verified that and poolalloc builds with LLVM 3.0. I > used clang for compiling wxWidgets, LLVM 3.0 and poolalloc. > > But llvm-tv build still gives build error. I take it that llvm-tv is > still incompatible with these versions of poolalloc and LLVM 3.0. I > think the code is manageable - couple of files in lib,include and some > 30 odd small files in tools directory. I'll have a look at the code to > sort out the build errors.The llvm-tv project hasn't been used in a long, long time. In fact, I don't think anyone has used it or worked on it since LLVM 2.0 was released back in 2007. If you want to update llvm-tv to LLVM 3.0 (or, better yet, LLVM 3.1), that would be cool, but just be aware that it's a significant project that you'll have to do on your own (the LLVM internal API has changed *a lot* since llvm-tv was written). I also don't know how much demand there is for a tool like llvm-tv. That said, people on llvm-dev are usually happy to answer questions on the LLVM 3.1/LLVM mainline API.> > Have you tried compiling/using llvm-tv with these versions of > poolalloc and LLVM-3.0? > > Here is the llvm-tv build error - > > /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5: > error: use of undeclared identifier 'perror' > perror("scandir"); > ^ > /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5: > error: use of undeclared identifier 'perror' > perror("scandir");The perror() function is a Unix/Posix function. The llvm-tv code is probably assuming that some LLVM header files #includes the definition of it. This was true in LLVM 1.x; it's not true now. You'll have to search out and fix all these issues if you work on llvm-tv. As an FYI, I never worked on llvm-tv. I just made the comment about poolalloc in the case that your primary interest was in understanding the poolalloc transform. -- John T. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120605/ea51df39/attachment.html>
I fixed most of the errors.
There is a weird error I am seeing and seems to be some incompatibility in
expanding macros between FileSystem.h in LLVM and intl.h in wxWidgets. Any
idea how to fix this?
In file included from
/home/arhishee/work/llvm-tv/llvm-tv/tools/llvm-tv/GraphDrawer.cpp:4:
In file included from
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileUtilities.h:18:
In file included from
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileSystem.h:34:
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/system_error.h:895:38:
error: use of undeclared identifier 'Lv'
explicit windows_error(int v) : v_(_(v)) {}
^
/usr/local/include/wx-2.8/wx/intl.h:48:55: note: expanded from:
#define _(s) wxGetTranslation(wxT(s))
^
/usr/local/include/wx-2.8/wx/wxchar.h:235:36: note: expanded from:
#define wxT(x) wxCONCAT_HELPER(L, x)
^
/usr/local/include/wx-2.8/wx/cpp.h:17:37: note: expanded from:
#define wxCONCAT_HELPER(text, line) text ## line
^
<scratch space>:61:1: note: expanded from:
Lv
^
In file included from
/home/arhishee/work/llvm-tv/llvm-tv/tools/llvm-tv/GraphDrawer.cpp:4:
In file included from
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileUtilities.h:18:
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileSystem.h:60:34:
error: use of undeclared identifier 'Lv'
explicit file_type(int v) : v_(_(v)) {}
^
/usr/local/include/wx-2.8/wx/intl.h:48:55: note: expanded from:
#define _(s) wxGetTranslation(wxT(s))
^
/usr/local/include/wx-2.8/wx/wxchar.h:235:36: note: expanded from:
#define wxT(x) wxCONCAT_HELPER(L, x)
^
/usr/local/include/wx-2.8/wx/cpp.h:17:37: note: expanded from:
#define wxCONCAT_HELPER(text, line) text ## line
^
<scratch space>:61:1: note: expanded from:
Lv
^
In file included from
/home/arhishee/work/llvm-tv/llvm-tv/tools/llvm-tv/GraphDrawer.cpp:4:
In file included from
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileUtilities.h:18:
/home/arhishee/work/llvm-tv/llvm30/include/llvm/Support/FileSystem.h:76:36:
error: use of undeclared identifier 'Lv'
explicit copy_option(int v) : v_(_(v)) {}
^
/usr/local/include/wx-2.8/wx/intl.h:48:55: note: expanded from:
#define _(s) wxGetTranslation(wxT(s))
^
/usr/local/include/wx-2.8/wx/wxchar.h:235:36: note: expanded from:
#define wxT(x) wxCONCAT_HELPER(L, x)
^
/usr/local/include/wx-2.8/wx/cpp.h:17:37: note: expanded from:
#define wxCONCAT_HELPER(text, line) text ## line
^
<scratch space>:61:1: note: expanded from:
Lv
^
On Tue, Jun 5, 2012 at 6:00 PM, John Criswell <criswell at illinois.edu>
wrote:
> On 6/5/12 7:45 PM, AbhishekR wrote:
>
> Thanks John. I verified that and poolalloc builds with LLVM 3.0. I used
> clang for compiling wxWidgets, LLVM 3.0 and poolalloc.
>
> But llvm-tv build still gives build error. I take it that llvm-tv is
> still incompatible with these versions of poolalloc and LLVM 3.0. I think
> the code is manageable - couple of files in lib,include and some 30 odd
> small files in tools directory. I'll have a look at the code to sort
out
> the build errors.
>
>
> The llvm-tv project hasn't been used in a long, long time. In fact, I
> don't think anyone has used it or worked on it since LLVM 2.0 was
released
> back in 2007.
>
> If you want to update llvm-tv to LLVM 3.0 (or, better yet, LLVM 3.1), that
> would be cool, but just be aware that it's a significant project that
> you'll have to do on your own (the LLVM internal API has changed *a
lot*
> since llvm-tv was written). I also don't know how much demand there is
for
> a tool like llvm-tv.
>
> That said, people on llvm-dev are usually happy to answer questions on the
> LLVM 3.1/LLVM mainline API.
>
>
>
> Have you tried compiling/using llvm-tv with these versions of poolalloc
> and LLVM-3.0?
>
> Here is the llvm-tv build error -
>
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
> ^
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
>
>
> The perror() function is a Unix/Posix function. The llvm-tv code is
> probably assuming that some LLVM header files #includes the definition of
> it. This was true in LLVM 1.x; it's not true now. You'll have to
search
> out and fix all these issues if you work on llvm-tv.
>
> As an FYI, I never worked on llvm-tv. I just made the comment about
> poolalloc in the case that your primary interest was in understanding the
> poolalloc transform.
>
> -- John T.
>
>
--
Regards,
Abhishek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120605/88d9afc3/attachment.html>