From: liuzhensong <liuzhensong@loongson.cn>
To: binutils@sourceware.org
Cc: jbglaw@lug-owl.de, liuzhensong <liuzhensong@loongson.cn>
Subject: [PATCH] LoongArch: Fix bug "PACKAGE" redefined.
Date: Tue, 30 Aug 2022 14:43:11 +0800 [thread overview]
Message-ID: <20220830064311.3650494-1-liuzhensong@loongson.cn> (raw)
Running configure and make in binutils-gdb.
$ ./configure
$ make
In file included from ./as.h:37,
from ./config/loongarch-lex.l:21,
from config/loongarch-lex-wrapper.c:20:
./config.h:206: error: “PACKAGE” redefined [-Werror]
#define PACKAGE "gas"
...
gas/config
* loongarch-lex-wrapper.c
---
gas/config/loongarch-lex-wrapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gas/config/loongarch-lex-wrapper.c b/gas/config/loongarch-lex-wrapper.c
index 3bb0b14c680..4ddeeb73c9b 100644
--- a/gas/config/loongarch-lex-wrapper.c
+++ b/gas/config/loongarch-lex-wrapper.c
@@ -16,5 +16,5 @@
along with this program; see the file COPYING3. If not,
see <http://www.gnu.org/licenses/>. */
-#include "sysdep.h"
+#include "config.h"
#include "config/loongarch-lex.c"
--
2.31.1
next reply other threads:[~2022-08-30 6:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 6:43 liuzhensong [this message]
2022-08-30 10:05 ` Jan-Benedict Glaw
2022-08-30 10:18 ` WANG Xuerui
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=20220830064311.3650494-1-liuzhensong@loongson.cn \
--to=liuzhensong@loongson.cn \
--cc=binutils@sourceware.org \
--cc=jbglaw@lug-owl.de \
/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).