From: fedor_qd@mail.ru
To: "Dennis Clarke" <dclarke@blastwave.org>, gcc-help <gcc-help@gcc.gnu.org>
Subject: Re[2]: make fails to build libgcc
Date: Mon, 07 Sep 2020 00:27:34 +0300 [thread overview]
Message-ID: <1599427654.544586073@f2.my.com> (raw)
In-Reply-To: <9075b0c4-7a9e-c753-2e8a-b2cdcd1d05f0@blastwave.org>
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
prev parent reply other threads:[~2020-09-06 21:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-01 10:15 Fiodar
2020-09-06 9:06 ` fedor_qd
2020-09-06 16:10 ` Dennis Clarke
2020-09-06 21:27 ` fedor_qd [this message]
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=1599427654.544586073@f2.my.com \
--to=fedor_qd@mail.ru \
--cc=dclarke@blastwave.org \
--cc=gcc-help@gcc.gnu.org \
/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).