[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-28 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #17 from AlexK  ---
to continue I should add line
cp -v prev-libcody/libcody.so libccody/

but why there are so many static libs in prev- directories ?
my patches didn't cancel all them ...

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-28 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #16 from AlexK  ---
I have copied already compileed shared libs into new directories:
cp -v prev-libcpp/libcpp.so libcpp/
cp -v prev-libbacktrace/libbacktrace.so libbacktrace/
cp -v prev-libdecnumber/libdecnumber.so libdecnumber/

and continue: make

Configuring stage 2 in ./gcc
configure: loading cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default dsymutil was specified... no
checking whether a default assembler was specified... no
checking for x86_64-pc-linux-gnu-gcc... 
/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/xgcc
-B/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/lib/ -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/include -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/sys-include   -fno-checking
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether  /home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/xgcc
-B/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/lib/ -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/include -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/sys-include   -fno-checking accepts -g...
yes
checking for  /home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/xgcc
-B/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/lib/ -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/include -isystem
/tools/gcc-12.2.0/x86_64-pc-linux-gnu/sys-include   -fno-checking option to
accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... no
checking whether  /home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/xg++
-B/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/alexei/build/gcc-12.2.0/libstdc++-v3/libsupc++
-L/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
accepts -g... no
checking for x86_64-pc-linux-gnu-gnatbind...
/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/gnatbind
checking for x86_64-pc-linux-gnu-gnatmake... gnatmake
checking whether compiler driver understands Ada... no
checking for x86_64-pc-linux-gnu-gdc...
/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/gdc
-B/home/alexei/build/gcc-12.2.0/mybuild/./prev-gcc/
-B/tools/gcc-12.2.0/x86_64-pc-linux-gnu/bin/ -O2 -g
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libphobos/libdruntime/gcc
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libphobos/src
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libphobos/src/.libs
-I/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libphobos/libdruntime
-I/home/alexei/build/gcc-12.2.0/libphobos/libdruntime
-L/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libphobos/src/.libs
-B/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/alexei/build/gcc-12.2.0/mybuild/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
checking whether the D compiler works... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/alexei/build/gcc-12.2.0/mybuild/gcc':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make[2]: *** [Makefile:4693: configure-stage2-gcc] Ошибка 1
make[2]: выход из каталога «/mnt/Git/apt-build/build/gcc-12.2.0/mybuild»
make[1]: *** [Makefile:27162: stage2-bubble] Ошибка 2
make[1]: выход из каталога «/mnt/Git/apt-build/build/gcc-12.2.0/mybuild»
make: *** [Makefile:1072: all] Error 2

I have GNAT in /opt/GNAT/2021
and

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #15 from AlexK  ---
I have attached all patches I have made to several Makefile.in in different
folders (I created them with `diff` tool)
after that I made building directory:

installdir=/tools/gcc-12.2.0
install -v -d mybuild
cd mybuild
../configure --prefix="$installdir"  --without-build-config LD=ld
--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-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-gcov
--enable-languages=c,c++,fortran,objc,obj-c++,jit,go --enable-host-shared
--disable-multilib --enable-shared

a few changes to Makefile:
sed -i 's/^\(@endif bfd\)$/#\1/' Makefile
sed -i 's/^\(@endif opcodes\)$/#\1/' Makefile


# !!!
https://stackru.com/questions/63879492/bez-sbrosa-kompilyatsiya-gcc-na-crostini-zavershaetsya-s-oshibkoj-s-neizvestnoj
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH
INCLUDE LD_LIBRARY_PATH

make



stage1 was successfully finished

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #14 from AlexK  ---
Created attachment 55608
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55608=edit
applyed patch for gcc/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #13 from AlexK  ---
Created attachment 55607
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55607=edit
applyed patch for libcpp/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #12 from AlexK  ---
Created attachment 55606
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55606=edit
applyed patch for libbacktrace/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #11 from AlexK  ---
Created attachment 55605
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55605=edit
applyed patch for libcody/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #10 from AlexK  ---
Created attachment 55604
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55604=edit
applyed patch for libdecnumber/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #9 from AlexK  ---
Created attachment 55603
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55603=edit
applyed patch for libiberty/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #8 from AlexK  ---
Created attachment 55602
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55602=edit
applyed patch for libgcc/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #7 from AlexK  ---
Created attachment 55601
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55601=edit
applyed patch for Makefile.in to configure with --enable-shared and without
--enable-static options

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-17 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684

--- Comment #6 from AlexK  ---
I don't know, I copied it from somewhere
I want to compile gcc on x86_64 Linux Mint