In file included from ../sysdeps/unix/sysv/linux/loongarch/sysdep.h:24,
                 from ../sysdeps/unix/sysv/linux/startup.h:22,
                 from ../csu/libc-tls.c:19,
                 from ../sysdeps/loongarch/libc-tls.c:19:
../sysdeps/nptl/pthreadP.h: In function ‘__do_cancel’:
../sysdeps/loongarch/nptl/tls.h:60:29: error: ‘TLS_TCB_ALIGN’ undeclared (first 
use in this function); did you mean ‘LSX_CTX_ALIGN’?
   60 |    + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1)))
      |                             ^~~~~~~~~~~~~
../sysdeps/loongarch/nptl/tls.h:90:26: note: in expansion of macro 
‘TLS_PRE_TCB_SIZE’
   90 |                        - TLS_PRE_TCB_SIZE))
      |                          ^~~~~~~~~~~~~~~~
../sysdeps/nptl/pthreadP.h:266:26: note: in expansion of macro ‘THREAD_SELF’
  266 |   struct pthread *self = THREAD_SELF;
      |                          ^~~~~~~~~~~
../sysdeps/loongarch/nptl/tls.h:60:29: note: each undeclared identifier is 
reported only once for each function it appears in
   60 |    + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1)))
      |                             ^~~~~~~~~~~~~
../sysdeps/loongarch/nptl/tls.h:90:26: note: in expansion of macro 
‘TLS_PRE_TCB_SIZE’
   90 |                        - TLS_PRE_TCB_SIZE))
      |                          ^~~~~~~~~~~~~~~~
../sysdeps/nptl/pthreadP.h:266:26: note: in expansion of macro ‘THREAD_SELF’
  266 |   struct pthread *self = THREAD_SELF;
      |                          ^~~~~~~~~~~
../elf/dl-tls_block_align.h: In function ‘_dl_tls_block_size_with_pre’:
../sysdeps/loongarch/nptl/tls.h:60:29: error: ‘TLS_TCB_ALIGN’ undeclared (first 
use in this function); did you mean ‘LSX_CTX_ALIGN’?
   60 |    + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1)))
      |                             ^~~~~~~~~~~~~
../elf/dl-tls_block_align.h:29:11: note: in expansion of macro 
‘TLS_PRE_TCB_SIZE’
   29 |   size += TLS_PRE_TCB_SIZE;
      |           ^~~~~~~~~~~~~~~~
In file included from ../include/sys/param.h:1,
                 from ../sysdeps/generic/hp-timing-common.h:38,
                 from ../sysdeps/loongarch/hp-timing.h:40,
                 from ../nptl/descr.h:26,
                 from ../sysdeps/loongarch/nptl/tls.h:41:
../elf/dl-tls_block_align.h: In function ‘_dl_tls_block_align’:
../sysdeps/loongarch/nptl/tls.h:60:29: error: ‘TLS_TCB_ALIGN’ undeclared (first 
use in this function); did you mean ‘LSX_CTX_ALIGN’?
   60 |    + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1)))
      |                             ^~~~~~~~~~~~~
../misc/sys/param.h:94:31: note: in definition of macro ‘roundup’
   94 |                          ? (((x) + (y) - 1) & ~((y) - 1))               
      \
      |                               ^
../elf/dl-tls_block_align.h:60:24: note: in expansion of macro 
‘TLS_PRE_TCB_SIZE’
   60 |     (sizeof (void *) + TLS_PRE_TCB_SIZE + (uintptr_t) allocated,
      |                        ^~~~~~~~~~~~~~~~
make[2]: *** 
[/home/abuild/rpmbuild/BUILD/glibc-2.42.9000.498.gce61fcf70/cc-base/sysd-rules:639:
 
/home/abuild/rpmbuild/BUILD/glibc-2.42.9000.498.gce61fcf70/cc-base/csu/libc-tls.o]
 Error 1

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to