Bug 396240

Summary: fails to build from source on 32-bit linux
Product: [Applications] Heaptrack Reporter: Erich Eckner <kde>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: log of failing build

Description Erich Eckner 2018-07-06 08:52:55 UTC
Created attachment 113793 [details]
log of failing build

compilation on archlinux32 fails with:

/build/heaptrack/src/heaptrack-1.1.0/src/util/linewriter.h:170:46: error: call of overloaded ‘clz(long long unsigned int&)’ is ambiguous
         const unsigned zeroBits = value ? clz(value) : numBits;
                                           ~~~^~~~~~~
/build/heaptrack/src/heaptrack-1.1.0/src/util/linewriter.h:151:28: note: candidate: ‘static unsigned int LineWriter::clz(unsigned int)’
     inline static unsigned clz(unsigned V)
                            ^~~
/build/heaptrack/src/heaptrack-1.1.0/src/util/linewriter.h:156:28: note: candidate: ‘static unsigned int LineWriter::clz(long unsigned int)’
     inline static unsigned clz(long unsigned V)
                            ^~~

version 1.0.0 was built successfully, though
Comment 1 Milian Wolff 2018-07-07 19:29:59 UTC
this was fixed already in the 1.1 and master branches