public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Damian Tometzki <damian@riscv-rocks.de>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: gcc 13 Build error
Date: Sun, 2 Apr 2023 22:48:22 +0100	[thread overview]
Message-ID: <CAH6eHdS1LOfgdg9E=EL5-NU3uxodPm=Bah7Eh4tOVTf6PHw3kA@mail.gmail.com> (raw)
In-Reply-To: <CAL=B37kAY_g9P0dEBZ7u25=5WifWuRz_TiA1e22zVatUBbdh6w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2947 bytes --]

On Sun, 2 Apr 2023, 18:31 Damian Tometzki, <damian@riscv-rocks.de> wrote:

> Hello together,
>
> i found a possible fix
>
> diff --git a/gcc/common/config/riscv/riscv-common.cc
> b/gcc/common/config/riscv/riscv-common.cc
> index b3c6ec97e7a..32ba1d52556 100644
> --- a/gcc/common/config/riscv/riscv-common.cc
> +++ b/gcc/common/config/riscv/riscv-common.cc
> @@ -1155,7 +1155,7 @@ riscv_subset_list::parse (const char *arch,
> location_t loc)
>
>    if (subset_list->lookup("zfinx") && subset_list->lookup("f"))
>         error_at (loc,
> -       "%<-march=%s%>: z*inx is conflict with float extensions",
> +       "%<-march=%s%>: z*inx is conflict with \float extensions",
>         arch);
>
>    return subset_list;
>


You can also use --disable-werror but please report this to bugzilla,
because it should build without errors.



> On Sun, Apr 2, 2023 at 7:13 PM Damian Tometzki <damian@riscv-rocks.de>
> wrote:
> >
> > Hello together,
> >
> > i have the following build error gcc 13 current git:
> >
> > /home/damian/data/gcc13built/./prev-gcc/xg++
> > -B/home/damian/data/gcc13built/./prev-gcc/
> > -B/usr/riscv64-linux-gnu/bin/ -nostdinc++
> >
> -B/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/src/.libs
> >
> -B/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/libsupc++/.libs
> >
> -I/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/include/riscv64-linux-gnu
> >
> -I/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/include
> >  -I/home/damian/data/gcc/libstdc++-v3/libsupc++
> >
> -L/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/src/.libs
> >
> -L/home/damian/data/gcc13built/prev-riscv64-linux-gnu/libstdc++-v3/libsupc++/.libs
> >  -fno-PIE -c   -g -O2 -fno-checking -gtoggle -DIN_GCC
> > -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
> > -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
> > -Wconditionally-supported -Woverloaded-virtual -pedantic
> > -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
> > -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/.
> > -I../../gcc/gcc/../include  -I../../gcc/gcc/../libcpp/include
> > -I../../gcc/gcc/../libcody  -I../../gcc/gcc/../libdecnumber
> > -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
> > -I../../gcc/gcc/../libbacktrace   -o riscv-common.o -MT riscv-common.o
> > -MMD -MP -MF ./.deps/riscv-common.TPo
> > ../../gcc/gcc/common/config/riscv/riscv-common.cc
> > ../../gcc/gcc/common/config/riscv/riscv-common.cc: In static member
> > function 'static riscv_subset_list* riscv_subset_list::parse(const
> > char*, location_t)':
> > ../../gcc/gcc/common/config/riscv/riscv-common.cc:1158:48: error:
> > unquoted keyword 'float' in format [-Werror=format-diag]
> >  1158 |         "%<-march=%s%>: z*inx is conflict with float extensions",
> >
> > Damian
>

      reply	other threads:[~2023-04-02 21:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02 17:13 Damian Tometzki
2023-04-02 17:31 ` Damian Tometzki
2023-04-02 21:48   ` Jonathan Wakely [this message]

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='CAH6eHdS1LOfgdg9E=EL5-NU3uxodPm=Bah7Eh4tOVTf6PHw3kA@mail.gmail.com' \
    --to=jwakely.gcc@gmail.com \
    --cc=damian@riscv-rocks.de \
    --cc=gcc@gcc.gnu.org \
    /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).