public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* error: macro DT/STO_RISCV_VARIANT_CC redefined
@ 2023-05-01  8:40 Samuel Thibault
  2023-05-01  8:42 ` Samuel Thibault
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Thibault @ 2023-05-01  8:40 UTC (permalink / raw)
  To: libc-alpha, kai.wang, palmer, vincent.chen

Hello,

I'm getting these errors:

FAIL: elf/tst-relro-ldso
FAIL: elf/tst-relro-libc
FAIL: elf/tst-glibcelf

/mnt/scratch/sthibault/build-glibc/src/glibc/scripts/../elf/elf.h:4013: error: macro STO_RISCV_VARIANT_CC redefined
/mnt/scratch/sthibault/build-glibc/src/glibc/scripts/../elf/elf.h:3941: note: location of previous definition
/mnt/scratch/sthibault/build-glibc/src/glibc/scripts/../elf/elf.h:4023: error: macro DT_RISCV_VARIANT_CC redefined
/mnt/scratch/sthibault/build-glibc/src/glibc/scripts/../elf/elf.h:3937: note: location of previous definition
Traceback (most recent call last):
  File "/mnt/scratch/sthibault/build-glibc/src/glibc/elf/tst-relro-symbols.py", line 33, in <module>
    import glibcelf
  File "/mnt/scratch/sthibault/build-glibc/src/glibc/elf/../scripts/glibcelf.py", line 226, in <module>
    _elf_h = _parse_elf_h()
  File "/mnt/scratch/sthibault/build-glibc/src/glibc/elf/../scripts/glibcelf.py", line 223, in _parse_elf_h
    raise IOError('parse error in elf.h')
OSError: parse error in elf.h

and indeed, elf/elf.h defines STO_RISCV_VARIANT_CC and
DT_RISCV_VARIANT_CC twice.

This seems to have been introduced by 117e8b341c5c ("riscv: Resolve
symbols directly for symbols with STO_RISCV_VARIANT_CC.")?

Samuel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-07  3:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-01  8:40 error: macro DT/STO_RISCV_VARIANT_CC redefined Samuel Thibault
2023-05-01  8:42 ` Samuel Thibault
2023-05-01 12:42   ` Palmer Dabbelt
2023-05-02  3:46     ` Fangrui Song
2023-05-07  3:11       ` Paul Pluzhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).