pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc13 compilation error on Void Linux



Any quick leads on this?

    ../../../gcc-13.2.0/libiberty/fibheap.c: In function 'fibheap_replace_key_data':
    ../../../gcc-13.2.0/libiberty/fibheap.c:38:25: error: 'LONG_MIN' undeclared (first use in this function)
       38 | #define FIBHEAPKEY_MIN  LONG_MIN
          |                         ^~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:220:30: note: in expansion of macro 'FIBHEAPKEY_MIN'
      220 |   if (okey == key && okey != FIBHEAPKEY_MIN)
          |                              ^~~~~~~~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:36:1: note: 'LONG_MIN' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
       35 | #include "fibheap.h"
      +++ |+#include <limits.h>
       36 | 
    ../../../gcc-13.2.0/libiberty/fibheap.c:38:25: note: each undeclared identifier is reported only once for each function it appears in
       38 | #define FIBHEAPKEY_MIN  LONG_MIN
          |                         ^~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:220:30: note: in expansion of macro 'FIBHEAPKEY_MIN'
      220 |   if (okey == key && okey != FIBHEAPKEY_MIN)
          |                              ^~~~~~~~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c: In function 'fibheap_delete_node':
    ../../../gcc-13.2.0/libiberty/fibheap.c:38:25: error: 'LONG_MIN' undeclared (first use in this function)
       38 | #define FIBHEAPKEY_MIN  LONG_MIN
          |                         ^~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:261:36: note: in expansion of macro 'FIBHEAPKEY_MIN'
      261 |   fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
          |                                    ^~~~~~~~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:38:25: note: 'LONG_MIN' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
       38 | #define FIBHEAPKEY_MIN  LONG_MIN
          |                         ^~~~~~~~
    ../../../gcc-13.2.0/libiberty/fibheap.c:261:36: note: in expansion of macro 'FIBHEAPKEY_MIN'
      261 |   fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
          |                                    ^~~~~~~~~~~~~~
    

Also, I bootstrapped with gcc in PREFER_NATIVE list and the native version
is also 13.2 - same as pkgsrc. Still it tries to build gcc. Wonder what's
the right way to tell it to use the native one.

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index