Re: Build fails due a warning in lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux