Re[2]: make fails to build libgcc

fedor_qd@mail.ru fedor_qd@mail.ru
Sun Sep 6 21:27:34 GMT 2020


It was on top my email.
I build gcc with that script with mingw(not mingw64) - https://github.com/fedor4ever/GCC-4-Symbian.
Script part related gcc:
export TARGET=arm-none-symbianelf
GCCC=gcc-10.2.0
# Installation folder
export PREFIX=/usr/local/$GCCC
export PATH=$PATH:$PREFIX/bin
export CONFIGURE=$GCCC/libstdc++-v3/configure
unset CFLAGS
export CFLAGS+="-pipe"
# I want have enviroment-free statically linked GCC
ICONV=--with-libiconv-prefix=/usr/local
echo "Copyng gcc dependency libs started"
MPC=mpc-1.0.3
ISL=isl-0.16.1
GMP=gmp-6.1.0
MPFR=mpfr-3.1.4
for arg in "$MPC" "$ISL" "$GMP" "$MPFR"
do
dir=`echo "$arg" | grep -Eo '^.{3}[[:alpha:]]?'`
if [ ! -d $GCCC/$dir ] ; then
if [ ! -f $arg.tar.* ] ; then
$WGET ftp://gcc.gnu.org/pub/gcc/infrastructure/$arg.tar.bz2 ftp://gcc.gnu.org/pub/gcc/infrastructure/$arg.tar.gz
fi
tar -xf $arg.tar.*
cp -Ru $arg $GCCC/$dir
fi
done
echo "Copyng gcc dependency libs finished"
# patch for the EOF, SEEK_CUR, and SEEK_END integer constants
# because autoconf can't set them
find='as_fn_error "computing EOF failed" "$LINENO" 5'
replace='$as_echo "computing EOF failed" "$LINENO" >\&5'
# echo $replace
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='as_fn_error "computing SEEK_CUR failed" "$LINENO" 5'
replace='$as_echo "computing SEEK_CUR failed" "$LINENO" >\&5'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='as_fn_error "computing SEEK_END failed" "$LINENO" 5'
replace='$as_echo "computing SEEK_END failed" "$LINENO" >\&5'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
# patch for the void, int, short and long
# because autoconf can't set them
find='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void \*))" "ac_cv_sizeof_void_p" "$ac_includes_default"'
replace='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void \*))" "ac_cv_sizeof_void_p"'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"'
replace='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"'
replace='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"'
replace='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
find='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"'
replace='if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"'
sed -i -e 's/'"$find"'/'"$replace"'/g' $CONFIGURE
touch build-gcc-started
cd build-gcc
../$GCCC/configure --target=$TARGET --prefix=$PREFIX --without-headers \
--enable-languages="c,c++,lto" --enable-poison-system-directories \
--enable-lto --with-newlib --enable-long-long $ICONV \
--with-dwarf2 --enable-interwork --enable-tls --enable-multilib \
--disable-hosted-libstdcxx --disable-libstdcxx-pch --disable-sjlj-exceptions \
--disable-option-checking --disable-threads --disable-nls \
--disable-win32-registry --disable-libssp --disable-shared \
--enable-wchar_t --enable-extra-sgxxlite-multilibs --enable-c99
# --with-sysroot
# Ugly hack for:
# D:\MinGW\msys\1.0\bin\make.exe: *** couldn't commit memory for cygwin heap, Win32 error 0
# I hope this enough :-)
# use -k because build libstdc++ expectable failes
# but libsupc and other stuff should be installed!
make $MAKEJOBS -k 2> make-gcc.log
touch first-make-call
make $MAKEJOBS -k 2>> make-gcc.log
make $MAKEJOBS -k 2>> make-gcc.log
# make $MAKEJOBS -k 2>> make-gcc.log
# make $MAKEJOBS -k 2>> make-gcc.log
make -k install-strip
cd ..
touch build-gcc-finished
echo "Bulding gcc finished"
--
Отправлено из myMail для Android воскресенье, 06 сентября 2020г., 19:10 +03:00 от Dennis Clarke via Gcc-help  gcc-help@gcc.gnu.org :

>On 9/6/20 5:06 AM,  fedor_qd@mail.ru wrote:
>
> Hi! I asked several days ago and nobody answers. Any idea?
>
>What did you use for "configure" and what were the results of that
>configure command?
>
>What operating system?
>
>What architecture?
>
>What were the env var setup at the time?  CFLAGS?  CPPFLAGS?  etc ?
>
>
>
>
>-- 
>Dennis Clarke
>RISC-V/SPARC/PPC/ARM/CISC
>UNIX and Linux spoken
>GreyBeard and suspenders optional


More information about the Gcc-help mailing list