[Networkit] ttmath fails to compile on Ubuntu
christian.staudt at kit.edu
Wed Feb 18 14:37:12 CET 2015
Thanks, that’s a temporary fix for my purposes.
I don’t understand the issue with -fPIC in general. According to this answer , -fPIC makes the code "suitable for inclusion in a library”, which is what we need, right? At the same time, it seems to lead to compiler failure on 32 bit platforms in combination with the inline assembly code of ttmath. And after removing -fPIC (= no position independent code then?) everything still works - why?
On 16 Feb 2015, at 16:08, Jonas Krautter <jonas.krautter at student.kit.edu> wrote:
> I get that one on my 32bit-Slackware installation too, but not on the
> 64bit installation. The error vanishes when compiling without "-fPIC"
> (by removing it in the SConstruct file) but I don't know what causes the
> On 02/16/2015 12:32 PM, Christian Staudt wrote:
>> I get the following compiler error for NetworKit 3.4 on Ubuntu 14.04 when trying
>> pip3 install —upgrade networkit
>> networkit/cpp/centrality/../graph/../ext/ttmath/ttmathuint_x86.h: In member function 'ttmath::uint ttmath::UInt<value_size>::Rcr(ttmath::uint, ttmath::uint) [with unsigned int value_size = 2u; ttmath::uint = unsigned int]': networkit/cpp/centrality/../graph/../ext/ttmath/ttmathuint_x86.h:1027:22: error: inconsistent operand constraints in an 'asm' : "cc", "memory" );
>> This is somehow related to the inline assembly in the headers of the external ttmath module.
>> Compiler is
>> g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
>> The complete output is in the attached file.
> NetworKit mailing list
> NetworKit at ira.uni-karlsruhe.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the NetworKit