[Networkit] ttmath fails to compile on Ubuntu

Jonas Krautter jonas.krautter at student.kit.edu
Mon Feb 16 16:08:12 CET 2015

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:
> Help,
> 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.
> Chris

More information about the NetworKit mailing list