Build failure with --disable-tunables on x86-64

H.J. Lu hjl.tools@gmail.com
Thu Dec 24 22:53:40 GMT 2020


I got

In file included from ../sysdeps/x86/include/cpu-features.h:33,
                 from ../sysdeps/x86_64/dl-hwcaps-subdirs.c:20:
../sysdeps/x86_64/dl-hwcaps-subdirs.c: In function ‘_dl_hwcaps_subdirs_active’:
../sysdeps/x86/include/cpu-features.h:159:41: error: implicit
declaration of function ‘GLRO’ [-Werror=implicit-function-declaration]
  159 | #  define __x86_get_cpu_features(max) (&GLRO(dl_x86_cpu_features))
      |                                         ^~~~
../sysdeps/x86/sys/platform/x86.h:79:5: note: in definition of macro
‘CPU_FEATURE_CHECK_P’
   79 |   ((ptr->features[index_cpu_##name].check.reg_##name \
      |     ^~~
../sysdeps/x86/include/cpu-features.h:68:3: note: in expansion of
macro ‘CPU_FEATURE_USABLE_P’
   68 |   CPU_FEATURE_USABLE_P (__x86_get_cpu_features (0), name)
      |   ^~~~~~~~~~~~~~~~~~~~
../sysdeps/x86/include/cpu-features.h:68:25: note: in expansion of
macro ‘__x86_get_cpu_features’
   68 |   CPU_FEATURE_USABLE_P (__x86_get_cpu_features (0), name)
      |                         ^~~~~~~~~~~~~~~~~~~~~~
../sysdeps/x86_64/dl-hwcaps-subdirs.c:33:9: note: in expansion of
macro ‘CPU_FEATURE_USABLE’
   33 |   if (!(CPU_FEATURE_USABLE (CMPXCHG16B)
      |         ^~~~~~~~~~~~~~~~~~
../sysdeps/x86/include/cpu-features.h:159:46: error:
‘dl_x86_cpu_features’ undeclared (first use in this function); did you
mean ‘_dl_x86_init_cpu_features’?
  159 | #  define __x86_get_cpu_features(max) (&GLRO(dl_x86_cpu_features))
      |                                              ^~~~~~~~~~~~~~~~~~~


-- 
H.J.


More information about the Libc-alpha mailing list