Polygraph compilation error with gcc 4.8.2

Pavel Kazlenka pavel.kazlenka at measurement-factory.com
Tue Jul 8 12:25:31 UTC 2014


Hi Dale,

You're completely right. Old polygraph versions can not be built by 
modern gcc. IIRC, gcc of version 4.5 is definitely able to build 
polygraph-4.3.2 (and gcc 4.6 probably). This is a known issue. To work 
the one around, you can:

a) find or set up machine/virtual machine with some old gcc version 
(e.g. ubuntu 12.04 LTS or Centos6), build polygraph there and move 
binaries to your main machine;
b) wait until polygraph site will be updated and new polygraph version 
become available for download;


Best wishes,
Pavel

On 07/07/2014 11:04 PM, Dale Markowitz wrote:
> Hi All,
>    I'm trying to install Polygraph 4.3.2 on a Linux box running Fedora 
> 19 with gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC).  The 
> compilation fails with the error:
>
> g++ -DHAVE_CONFIG_H   -I../.. -I../../src -I../.. -I../../src 
> -fpermissive -I/usr/include  -g -O1 -Wall -Wwrite-strings 
> -Woverloaded-virtual -MT StatPhase.o -MD -MP -MF .deps/StatPhase.Tpo 
> -c -o StatPhase.o StatPhase.cc
> StatPhase.cc: In member function 'virtual void 
> StatPhase::noteXactEvent(BcastChannel*, const Xaction*)':
> StatPhase.cc:416:29: error: redeclaration of 'CompoundXactInfo& compound'
>     static CompoundXactInfo &compound = *CompoundXactInfo::Create();
>                              ^
> StatPhase.cc:390:37: error: 'const CompoundXactInfo* const compound' 
> previously declared here
>    if (const CompoundXactInfo* const compound = x->partOf()) {
>                                      ^
> make[3]: *** [StatPhase.o] Error 1
>
> This seems like it might have to do with my version of gcc, but I'm 
> not sure. Any thoughts?
>
> Thanks!
>    Dale
>
>
> _______________________________________________
> Users mailing list
> Users at web-polygraph.org
> http://www.web-polygraph.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.web-polygraph.org/pipermail/users/attachments/20140708/ef6ec185/attachment.html>


More information about the Users mailing list