https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186

--- Comment #6 from AlexK <alexei1.84 at mail dot ru> ---
(In reply to Richard Biener from comment #1)
> can you try configuring with --without-build-config please?

/mnt/Git/apt-build/build/gcc-12.2.0/build $ 

../configure --prefix=/tools/gcc-12.2.0  --without-build-config LD=ld
--enable-gcov --enable-libssp --enable-bootstrap --enable-lto
--with-isl=/usr/local --with-mpc=/usr/local --with-mpfr=/usr/local
--with-gmp=/usr/local --with-system-zlib --enable-host-shared
--disable-multilib --enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++,fortran,objc,obj-c++,jit,go  >
my2.log
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

/mnt/Git/apt-build/build/gcc-12.2.0/build $  make

libtool: install: warning: remember to run `libtool --finish
/tools/gcc-12.2.0/libexec/gcc/x86_64-pc-linux-gnu/12.2.0'
configure: WARNING: fixed-point is not supported for this target, ignored

Links are now set up to build a native compiler for x86_64-pc-linux-gnu.
../../../libcpp/expr.cc: In function ‘unsigned int
cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)’:
../../../libcpp/expr.cc:808:18: warning: format not a string literal and no
format arguments [-Wformat-security]
  808 |        0, message);
      |                  ^
../../../libcpp/expr.cc:811:39: warning: format not a string literal and no
format arguments [-Wformat-security]
  811 |           virtual_location, 0, message);
      |                                       ^
../../../libcpp/expr.cc:821:34: warning: format not a string literal and no
format arguments [-Wformat-security]
  821 |      virtual_location, 0, message);
      |                                  ^
../../../libcpp/macro.cc: In member function ‘vaopt_state::update_type
vaopt_state::update(const cpp_token*)’:
../../../libcpp/macro.cc:186:23: warning: format not a string literal and no
format arguments [-Wformat-security]
  186 |      vaopt_paste_error);
      |                       ^
../../../libcpp/macro.cc:215:24: warning: format not a string literal and no
format arguments [-Wformat-security]
  215 |       vaopt_paste_error);
      |                        ^
../../../libcpp/macro.cc: In function ‘cpp_macro*
create_iso_definition(cpp_reader*)’:
../../../libcpp/macro.cc:3704:58: warning: format not a string literal and no
format arguments [-Wformat-security]
 3704 |        cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
      |                                                          ^
../../../libcpp/macro.cc:3719:58: warning: format not a string literal and no
format arguments [-Wformat-security]
 3719 |        cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
      |                                                          ^
file: Compiled magic version [538] does not match with shared library magic
version [543]

../../libcpp/expr.cc: In function ‘unsigned int
cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)’:
../../libcpp/expr.cc:808:18: warning: format not a string literal and no format
arguments [-Wformat-security]
  808 |        0, message);
      |                  ^
../../libcpp/expr.cc:811:39: warning: format not a string literal and no format
arguments [-Wformat-security]
  811 |           virtual_location, 0, message);
      |                                       ^
../../libcpp/expr.cc:821:34: warning: format not a string literal and no format
arguments [-Wformat-security]
  821 |      virtual_location, 0, message);
      |                                  ^
../../libcpp/macro.cc: In member function ‘vaopt_state::update_type
vaopt_state::update(const cpp_token*)’:
../../libcpp/macro.cc:186:23: warning: format not a string literal and no
format arguments [-Wformat-security]
  186 |      vaopt_paste_error);
      |                       ^
../../libcpp/macro.cc:215:24: warning: format not a string literal and no
format arguments [-Wformat-security]
  215 |       vaopt_paste_error);
      |                        ^
../../libcpp/macro.cc: In function ‘cpp_macro*
create_iso_definition(cpp_reader*)’:
../../libcpp/macro.cc:3704:58: warning: format not a string literal and no
format arguments [-Wformat-security]
 3704 |        cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
      |                                                          ^
../../libcpp/macro.cc:3719:58: warning: format not a string literal and no
format arguments [-Wformat-security]
 3719 |        cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
      |                                                          ^
/home/rguenther/src/releases/gcc-12.2.0/gcc-12.2.0/gcc/gengtype-lex.l: In
function ‘int yylex(const char**)’:
gengtype-lex.cc:356:15: warning: this statement may fall through
[-Wimplicit-fallthrough=]
/home/rguenther/src/releases/gcc-12.2.0/gcc-12.2.0/gcc/gengtype-lex.l:119:1:
note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
/home/rguenther/src/releases/gcc-12.2.0/gcc-12.2.0/gcc/gengtype-lex.l:114:1:
note: here
gengtype-lex.cc:356:15: warning: this statement may fall through
[-Wimplicit-fallthrough=]
/home/rguenther/src/releases/gcc-12.2.0/gcc-12.2.0/gcc/gengtype-lex.l:139:1:
note: in expansion of macro ‘YY_DO_BEFORE_ACTION’
/home/rguenther/src/releases/gcc-12.2.0/gcc-12.2.0/gcc/gengtype-lex.l:135:1:
note: here
GIMPLE decision tree has 4127 leafs, maximum depth 28 and a total number of
17761 nodes
removed 2724 duplicate tails
GENERIC decision tree has 3770 leafs, maximum depth 13 and a total number of
15889 nodes
removed 2560 duplicate tails
Statistics for recog:
  Number of decisions:  68532
  longest path:           337 (code:   6968)
  longest backtrack:       34 (code:   5866)
Statistics for split_insns:
  Number of decisions:  19767
  longest path:           169 (code:   1078)
  longest backtrack:       23 (code:    709)
Statistics for peephole2_insns:
  Number of decisions:   2960
  longest path:           880 (code:    197)
  longest backtrack:       55 (code:    303)
Shared 69645 out of 121921 states by creating 12116 new states, saving 57529
/usr/local/bin/ld: lto-compress.o: в функции «lto_normalized_zstd_level()»:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:120:
неопределённая ссылка на «ZSTD_maxCLevel»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:121:
неопределённая ссылка на «ZSTD_maxCLevel»
/usr/local/bin/ld: lto-compress.o: в функции
«lto_compression_zstd(lto_compression_stream*)»:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:135:
неопределённая ссылка на «ZSTD_compressBound»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:138:
неопределённая ссылка на «ZSTD_compress»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:141:
неопределённая ссылка на «ZSTD_isError»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:142:
неопределённая ссылка на «ZSTD_getErrorName»
/usr/local/bin/ld: lto-compress.o: в функции
«lto_uncompression_zstd(lto_compression_stream*)»:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:161:
неопределённая ссылка на «ZSTD_getFrameContentSize»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:168:
неопределённая ссылка на «ZSTD_decompress»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:170:
неопределённая ссылка на «ZSTD_isError»
/usr/local/bin/ld:
/mnt/Git/apt-build/build/gcc-12.2.0/build/gcc/../../gcc/lto-compress.cc:171:
неопределённая ссылка на «ZSTD_getErrorName»
collect2: error: ld returned 1 exit status
make[3]: *** [../../gcc/c/Make-lang.in:87: cc1] Ошибка 1
make[2]: *** [Makefile:4963: all-stage1-gcc] Ошибка 2
make[1]: *** [Makefile:27037: stage1-bubble] Ошибка 2
make: *** [Makefile:1072: all] Ошибка 2

Reply via email to