gdb compile error on Leopard and patched gcc

Riccardo Mottola riccardo.mottola at libero.it
Sat Jan 19 22:04:42 UTC 2019


Hi all...


I suppose this is stuff for Ken.. I have a lot of issues with upgrading 
the latest turn of packges. Luckly nutls is in - important.


gdb has this failure:


   CXX    dwarf2-frame.o
dwarf-index-write.c: In member function 'void debug_names::build()':
dwarf-index-write.c:708:32: error: 'log2' is not a member of 'std'
        (std::pow (2, std::ceil (std::log2 (name_count * 4 / 3))));
                                 ^~~
dwarf-index-write.c:708:32: note: suggested alternative:
In file included from /usr/include/math.h:28:0,
                  from /opt/local/include/gcc6/c++/cmath:45,
                  from dwarf-index-write.c:37:
/usr/include/architecture/i386/math.h:316:15: note:   'log2'
  extern double log2 ( double );
                ^~~~
   CXX    dwarf2-frame-tailcall.o
make[2]: *** [dwarf-index-write.o] Error 1

This looked a lot like the issues I am having in TenFourFox.

So I tried using my "patched" version of gcc 4.8 and it compiled fine.


It would be thus important to merge my patches in :) :)


Riccardo



More information about the macports-users mailing list