[LLVMdev] building Polly on Ubuntu

Tobias Grosser tobias at grosser.es
Sat May 14 11:53:04 PDT 2011


On 05/14/2011 04:21 AM, MORIYAMA Tomohiro wrote:
> 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

Nice.

>> 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

This is the old git repository that is abonded. There is a git mirror of
the LLVM svn repository that should have the same code as SVN. It is
available at:  http://llvm.org/git/llvm.git

Cheers
Tobi



More information about the llvm-dev mailing list