public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org, kai.wang@sifive.com,
	palmer@rivosinc.com, vincent.chen@sifive.com
Subject: error: macro DT/STO_RISCV_VARIANT_CC redefined
Date: Mon, 1 May 2023 10:40:30 +0200	[thread overview]
Message-ID: <20230501084030.aaimzvrmgiotzlvo@begin> (raw)

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

             reply	other threads:[~2023-05-01  8:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-01  8:40 Samuel Thibault [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230501084030.aaimzvrmgiotzlvo@begin \
    --to=samuel.thibault@ens-lyon.org \
    --cc=kai.wang@sifive.com \
    --cc=libc-alpha@sourceware.org \
    --cc=palmer@rivosinc.com \
    --cc=vincent.chen@sifive.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).