[LLVMdev] building Polly on Ubuntu

MORIYAMA Tomohiro moriyama at isit.or.jp
Sat May 14 00:21:56 PDT 2011


Hello, Tobias and Wei-Ren.
Thanks to your advice.

I could build Polly by checking out from SVN.

svn checkout http://llvm.org/svn/llvm-project/polly/trunk polly


>On 05/13/2011 01:29 AM, MORIYAMA Tomohiro wrote:
>> Hello,
>> 
>> I am trying to build Polly on Ubuntu11.04 on Windows XP via VMWare,
>> according to the Polly wiki(now moved).
>> 
>> I succeeded last month, but now it fails at "make".
>> Please tell me what is wrong.
>
>Hi Tomohiro,
>
>cool that you are looking into Polly. Lets see if we can get it working. ;)
>
>> Here is the corresponding log.
>> 
>> [ 67%] Built target count
>> Scanning dependencies of target not
>> [ 67%] Building CXX object utils/not/CMakeFiles/not.dir/not.cpp.o
>> Linking CXX executable ../../bin/not
>> [ 67%] Built target not
>> Scanning dependencies of target PollyJSON
>> [ 67%] Building CXX object
>> tools/polly/lib/JSON/CMakeFiles/PollyJSON.dir/json_reader.cpp.o
>> /home/tomohiro/llvm/tools/polly/lib/JSON/json_reader.cpp: In function
>> ‘std::istream&  Json::operator>>(std::istream&, Json::Value&)’:
>> /home/tomohiro/llvm/tools/polly/lib/JSON/json_reader.cpp:880:72: error:
>> exception handling disabled, use -fexceptions to enable
>> make[2]: ***
>> [tools/polly/lib/JSON/CMakeFiles/PollyJSON.dir/json_reader.cpp.o] Error 1
>> make[1]: *** [tools/polly/lib/JSON/CMakeFiles/PollyJSON.dir/all] Error 2
>> make: *** [all] Error 2
>
>The problem here is that LLVM is compiled by default without exceptions,
>however the version of Polly that you have includes a JSON library were
>that uses exceptions.
>
>This conflict was introduced by a recent update of our JSON library and
>should have been solved by the following two commits:
>
>-------------------------------------------------------------------------
>Author: Hongbin Zheng <etherzhhb at gmail.com>
>Date:   Sat Apr 30 02:47:34 2011 +0000
>
>    JSON: Do not use throw when exception is disabled.
>
>    svn-id: https://llvm.org/svn/llvm-project/polly/trunk@130575
>
>Author: Hongbin Zheng <etherzhhb at gmail.com>
>Date:   Sat Apr 30 02:30:58 2011 +0000
>
>    JSON: Disable exception in JSON library, because exception is
>          disable by by default.
>
>    svn-id: https://llvm.org/svn/llvm-project/polly/trunk@130574
>-------------------------------------------------------------------------
>
>When did you check out Polly? What does 'git log' or 'svn status' show?

My failed trial was Polly from Git.

git clone git://repo.or.cz/polly.git

Its "git log" is
------------------
commit ba26ebece8f5be84e9bd6315611d412af797147e
Author: Tobias Grosser <tobias at grosser.es>
Date:   Fri Apr 29 08:23:34 2011 +0200

    Add forgotten Makefile

commit 141ea11265b81479d290e97779fce0a90a51d8f8
Author: Tobias Grosser <tobias at grosser.es>
Date:   Thu Apr 28 13:16:48 2011 +0200

    Add new JSON library that is licensed under public domain.
    
    Also remove the old GPL licensed JSON library.
    
------------------

With respect to Git, new page looks same as old one.



>I suspect you are still using the old Polly git repository. We recently
>moved Polly into the LLVM svn repository and only there the recent
>changes are available. To check out Polly from LLVM svn have a look at
>this page:
>
>http://polly.grosser.es/get_started.html#source
>
>If you need further help, let me know.
>
>Cheers
>
>Tobi


Thanks!
Tomohiro



More information about the llvm-dev mailing list