public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kai Ruottu <kai.ruottu@wippies.com>
To: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>, gcc-help@gcc.gnu.org
Subject: Re: Build fails due a warning in lib
Date: Fri, 6 Oct 2023 13:24:52 +0300	[thread overview]
Message-ID: <ccc6caa2-437c-9c68-efef-1706953cc080@wippies.com> (raw)
In-Reply-To: <CAKy8djT3rGi=2YRCmvK5iE1-4OoDC__sCXmMdOG76DcoOqGWSw@mail.gmail.com>

Vincenzo Palazzo via Gcc-help kirjoitti 5.10.2023 klo 22.27:
> Hi list,
>
> I am trying to build gcc with the following command
> ../../gittea/gcc/configure -v
> --prefix=/home/vincenzopalazzo/build-dir/gcc
> --enable-languages=c,c++,rust --disable-multilib
>
> and when I ran `make` I got the error reported below. I have the feeling
> that I am missing something, because this code is not touched since
> 2012 (thank git blame)
> so I am pretty sure that I am missing something, but not sure what.
>
> P.S: the gcc version that I use to compile gcc is 12.3.0
>
> tti -I../../../../gittea/gcc/libcpp -I.
> -I../../../../gittea/gcc/libcpp/../include
> -I../../../../gittea/gcc/libcpp/include    -c -o expr.o -MT expr.o
> -MMD -MP -MF .deps/expr.Tpo ../../../../gittea/gcc/libcpp/expr.cc
> ../../../../gittea/gcc/libcpp/expr.cc: In function ‘unsigned int
> cpp_classify_number(cpp_reader*, const cpp_token*, const char**,
> location_t)’:
> ../../../../gittea/gcc/libcpp/expr.cc:842:35: error: format not a
> string literal and no format arguments [-Werror=format-security]
>    842 |             cpp_warning_with_line (pfile, CPP_W_LONG_LONG,
> virtual_location,
>        |
> ~~~~~
> cc1plus: some warnings being treated as errors
You are missing to tell what is the C++ compiler you are using to 
compile the
'libcpp' stuff. Please don't expect a C++ compiler from 2012 or earlier to
"grok" some uptodate C++ code.  For the gcc-12.3.0 sources I myself would
try gcc-7.5.0 or newer as the stage-1 compiler in the native-GCC case.

  reply	other threads:[~2023-10-06 10:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05 19:27 Vincenzo Palazzo
2023-10-06 10:24 ` Kai Ruottu [this message]
2023-10-06 10:36   ` Kai Ruottu
2023-10-07 14:43   ` Vincenzo Palazzo

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=ccc6caa2-437c-9c68-efef-1706953cc080@wippies.com \
    --to=kai.ruottu@wippies.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=vincenzopalazzodev@gmail.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).