public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Symbian: Build warnings and errors
@ 2021-12-26 23:00 Fiodar Stryzhnoiu
  2021-12-26 23:31 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Fiodar Stryzhnoiu @ 2021-12-26 23:00 UTC (permalink / raw)
  To: gcc-help

I build baremetal crosscompiler for Symbian. That means no libc used in any way. For Symbian libc is usual library. It has two libc ports for now.

Here build config:
export TARGET=arm-none-symbianelf
# Installation folder
export GCCC=gcc-11.2.0

# needed enviroment-free statically linked GCC
ICONV=--with-libiconv-prefix=/usr/local

export PREFIX=/usr/local/$GCCC
export PATH=$PATH:$PREFIX/bin
unset CFLAGS
export CFLAGS+="-pipe -Wl,-Bstatic"
MAKEJOBS=-j"${NUMBER_OF_PROCESSORS}"
#set SHELL=cmd.exe allow parallel build on windows
set SHELL=cmd.exe

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-option-checking --disable-threads --disable-nls \
	--disable-win32-registry --disable-libssp --disable-shared \
	--enable-wchar_t --enable-extra-sgxxlite-multilibs --enable-c99 \
	--with-static-standard-libraries
make $MAKEJOBS -k 2> make-gcc.log
make -k install-strip 2> install-gcc.log

Here full list warnings and error while build GCC for Symbian:

1. configure: WARNING: using in-tree isl, disabling version check(long ago, maybe even 5.4.0)

2. After several minutes build hang if "make -jX" used(long ago, maybe even 5.4.0). One make.exe uses cpu other don't. Build continues immediatly if right make killed. Windows itself response ok. Log before hang:
checking for fprintf_unlocked... make[2]: Leaving directory `/d/mbuild/src/build-gcc/libiberty'
no
checking for fputc_unlocked... gcc -c -pipe -Wl,-Bstatic -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-form
at-attribute -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc-11.2.0/./fixincludes -I../include -I../../../gcc-11.2.0/./fixincludes/../include ../../../gcc-11.2.0/./fixincludes/fixlib.c
gcc -c -pipe -Wl,-Bstatic -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc-11.2.0/./fixincludes -I../include -I../../../gcc-11.2.0/./fixincludes/../include ../../../gcc-11.2.0/./fixincludes/fixtests.c
no
gcc -c -pipe -Wl,-Bstatic -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc-11.2.0/./fixincludes -I../include -I../../../gcc-11.2.0/./fixincludes/../include ../../../gcc-11.2.0/./fixincludes/fixopts.c
checking for fputs_unlocked... gcc -c -pipe -Wl,-Bstatic -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../gcc-11.2.0/./fixincludes -I../include -I../../../gcc-11.2.0/./fixincludes/../include ../../../gcc-11.2.0/./fixincludes/fixfixes.c
make[2]: Entering directory `/d/mbuild/src/build-gcc/build-i686-pc-mingw32/libcpp'
g++  -I../../../gcc-11.2.0/./libcpp -I. -I../../../gcc-11.2.0/./libcpp/../include -I../../../gcc-11.2.0/./libcpp/include  -g -O2 -D__USE_MINGW_ACCESS -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long  -fno-exceptions -fno-rtti -I../../../gcc-11.2.0/./libcpp -I. -I../../../gcc-11.2.0/./libcpp/../include -I../../../gcc-11.2.0/./libcpp/include    -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../../gcc-11.2.0/./libcpp/charset.c
no
gcc `test -f 'gen-fib.c' || echo '../../gcc-11.2.0/./gmp/'`gen-fib.c -o gen-fib.exe
checking for fread_unlocked... srcdir="../../../gcc-11.2.0/./fixincludes" /bin/sh ../../../gcc-11.2.0/./fixincludes/mkfixinc.sh arm-none-symbianelf
no
checking for fwrite_unlocked... sed -e 's/@gcc_version@/11.2.0/' < mkheaders.almost > mkheadersT
mv -f mkheadersT mkheaders
gcc -pipe -Wl,-Bstatic  -o fixincl.exe fixincl.o fixlib.o fixtests.o fixopts.o ../libiberty/libiberty.a
no
echo timestamp > test-stamp
checking for getchar_unlocked... gcc -pipe -Wl,-Bstatic  -o applyfix.exe fixfixes.o fixlib.o fixopts.o ../libiberty/libiberty.a
make[2]: Leaving directory `/d/mbuild/src/build-gcc/build-i686-pc-mingw32/fixincludes'
no
gcc `test -f 'gen-bases.c' || echo '../../gcc-11.2.0/./gmp/'`gen-bases.c -o gen-bases.exe -lm
checking for getc_unlocked... no
checking for putchar_unlocked... no
checking for putc_unlocked... no
checking whether abort is declared... yes
checking whether asprintf is declared... no
checking whether basename is declared... no
checking whether errno is declared... yes
checking whether getopt is declared... yes
checking whether vasprintf is declared... no
checking whether clearerr_unlocked is declared... no
checking whether feof_unlocked is declared... no
checking whether ferror_unlocked is declared... no
checking whether fflush_unlocked is declared... no
checking whether fgetc_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... no
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getchar_unlocked is declared... no
checking whether getc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking for working alloca.h... no
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking for nl_langinfo and CODESET... no
checking whether NLS is requested... no
checking for uchar...
checking for ld used by GCC... d:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe
checking if the linker (d:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.a
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for CET support... no
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps

3. Many warnings for every file:
../../gcc-11.2.0/./gcc/mem-stats.h:215:72: warning: ISO C++11 does not support the 'I64' ms_printf length modifier [-Wformat=]
       get_percent (m_times, total.m_times), loc->m_ggc ? "ggc" : "heap");

../../gcc-11.2.0/./gcc/pretty-print.h: In function 'void pp_wide_integer(pretty_printer*, long long int)':
../../gcc-11.2.0/./gcc/pretty-print.h:329:60: warning: ISO C++11 does not support the 'I64' ms_printf length modifier [-Wformat=]
       sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \

../../gcc-11.2.0/./gcc/alloc-pool.h:76:31: warning: ISO C++11 does not support the 'I64' ms_printf length modifier [-Wformat=]

../../gcc-11.2.0/./gcc/bitmap.h:252:34: warning: ISO C++11 does not support the 'I64' ms_printf length modifier [-Wformat=]

../../gcc-11.2.0/./gcc/lto-streamer.c:179:42: warning: ISO C++11 does not support the 'I64' ms_printf length modifier [-Wformat=]

4. got build-gcc\mpfr\src\.libs\mpfr.a but has in logs:
configure:14288: error: possibly undefined macro: AX_PTHREAD
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
make[2]: *** [../../gcc-11.2.0/./mpfr/configure] Error 1
make[2]: Failed to remake makefile `Makefile'.
libtool: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries; building static only
make[1]: *** [all-mpfr] Error 2
make[1]: Target `all-host' not remade because of errors.
make[1]: Target `all-target' not remade because of errors.
make: *** [all] Error 2

5. Another hang in libgcc if "make -jX":
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIHA.o -MT _fractunsUDIHA.o -MD -MP -MF _fractunsUDIHA.dep -DL_fractuns -DFROM_UDI -DTO_HA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/-isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDISA.o -MT _fractunsUDISA.o -MD -MP -MF _fractunsUDISA.dep -DL_fractuns -DFROM_UDI -DTO_SA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIDA.o -MT _fractunsUDIDA.o -MD -MP -MF _fractunsUDIDA.dep -DL_fractuns -DFROM_UDI -DTO_DA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -march=armv5te+fp -O2 -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../../.././gcc -I../../../../gcc-11.2.0/./libgcc -I../../../../gcc-11.2.0/./libgcc/. -I../../../../gcc-11.2.0/./libgcc/../gcc -I../../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUQIUDA.o -MT _fractunsUQIUDA.o -MD -MP -MF _fractunsUQIUDA.dep -DL_fractuns -DFROM_UQI -DTO_UDA -c ../../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDITA.o -MT _fractunsUDITA.o -MD -MP -MF _fractunsUDITA.dep -DL_fractuns -DFROM_UDI -DTO_TA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUQQ.o -MT _fractunsUDIUQQ.o -MD -MP -MF _fractunsUDIUQQ.dep -DL_fractuns -DFROM_UDI -DTO_UQQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUHQ.o -MT _fractunsUDIUHQ.o -MD -MP -MF _fractunsUDIUHQ.dep -DL_fractuns -DFROM_UDI -DTO_UHQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -march=armv5te+fp -O2 -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../../.././gcc -I../../../../gcc-11.2.0/./libgcc -I../../../../gcc-11.2.0/./libgcc/. -I../../../../gcc-11.2.0/./libgcc/../gcc -I../../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUQIUTA.o -MT _fractunsUQIUTA.o -MD -MP -MF _fractunsUQIUTA.dep -DL_fractuns -DFROM_UQI -DTO_UTA -c ../../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUSQ.o -MT _fractunsUDIUSQ.o -MD -MP -MF _fractunsUDIUSQ.dep -DL_fractuns -DFROM_UDI -DTO_USQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUDQ.o -MT _fractunsUDIUDQ.o -MD -MP -MF _fractunsUDIUDQ.dep -DL_fractuns -DFROM_UDI -DTO_UDQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUTQ.o -MT _fractunsUDIUTQ.o -MD -MP -MF _fractunsUDIUTQ.dep -DL_fractuns -DFROM_UDI -DTO_UTQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -march=armv5te+fp -O2 -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../../.././gcc -I../../../../gcc-11.2.0/./libgcc -I../../../../gcc-11.2.0/./libgcc/. -I../../../../gcc-11.2.0/./libgcc/../gcc -I../../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUHIQQ.o -MT _fractunsUHIQQ.o -MD -MP -MF _fractunsUHIQQ.dep -DL_fractuns -DFROM_UHI -DTO_QQ -c ../../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUHA.o -MT _fractunsUDIUHA.o -MD -MP -MF _fractunsUDIUHA.dep -DL_fractuns -DFROM_UDI -DTO_UHA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUSA.o -MT _fractunsUDIUSA.o -MD -MP -MF _fractunsUDIUSA.dep -DL_fractuns -DFROM_UDI -DTO_USA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUDA.o -MT _fractunsUDIUDA.o -MD -MP -MF _fractunsUDIUDA.dep -DL_fractuns -DFROM_UDI -DTO_UDA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -march=armv5te+fp -O2 -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../../.././gcc -I../../../../gcc-11.2.0/./libgcc -I../../../../gcc-11.2.0/./libgcc/. -I../../../../gcc-11.2.0/./libgcc/../gcc -I../../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o_fractunsUHIHQ.o -MT _fractunsUHIHQ.o -MD -MP -MF _fractunsUHIHQ.dep -DL_fractuns -DFROM_UHI -DTO_HQ -c ../../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUDIUTA.o -MT _fractunsUDIUTA.o -MD -MP -MF _fractunsUDIUTA.dep -DL_fractuns -DFROM_UDI -DTO_UTA -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUTIQQ.o -MT _fractunsUTIQQ.o -MD -MP -MF _fractunsUTIQQ.dep -DL_fractuns -DFROM_UTI -DTO_QQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/d/mbuild/src/build-gcc/./gcc/xgcc -B/d/mbuild/src/build-gcc/./gcc/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/bin/ -B/usr/local/gcc-11.2.0/arm-none-symbianelf/lib/ -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/include -isystem /usr/local/gcc-11.2.0/arm-none-symbianelf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fno-inline -I. -I. -I../.././gcc -I../../../gcc-11.2.0/./libgcc -I../../../gcc-11.2.0/./libgcc/. -I../../../gcc-11.2.0/./libgcc/../gcc -I../../../gcc-11.2.0/./libgcc/../include  -DHAVE_CC_TLS  -o _fractunsUTIHQ.o -MT _fractunsUTIHQ.o -MD -MP -MF _fractunsUTIHQ.dep -DL_fractuns -DFROM_UTI -DTO_HQ -c ../../../gcc-11.2.0/./libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS

6. Bunch warnings and errors:
/bin/install: cannot stat `crtfastmath.o': No such file or directory
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
configure: WARNING: stdbool.h: present but cannot be compiled
configure: WARNING: stdbool.h:     check for missing prerequisite headers?
configure: WARNING: stdbool.h: see the Autoconf documentation
configure: WARNING: stdbool.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdbool.h: proceeding with the compiler's result
configure: WARNING: stdalign.h: present but cannot be compiled
configure: WARNING: stdalign.h:     check for missing prerequisite headers?
configure: WARNING: stdalign.h: see the Autoconf documentation
configure: WARNING: stdalign.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdalign.h: proceeding with the compiler's result
configure: error: computing EOF failed
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Target `all-target' not remade because of errors.
make: *** [all] Error 2

7. Errors for computing EOF, SEEK_CUR, and SEEK_END:
checking for the value of EOF... configure: error: computing EOF failed
make: *** [configure-target-libstdc++-v3] Error 1
Why they needed in bare metal compiler?

8. Errors in main configure due unguarded "#include <stdio.h>":
checking size of void *... 0
checking size of long... 0
checking size of int... 0
checking size of short... 0
checking size of char... 0
checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug
make: *** [configure-target-libstdc++-v3] Error 1

Proposed solution: guard against unaviable "#include <stdio.h>".

9. Errors when build libsupc++:
make install-strip-target-libstdc++-v3
../../../../gcc-11.2.0/./libstdc++-v3/libsupc++/new_opa.cc:28:10: fatal error: stdint.h: No such file or directory
   28 | #include <stdint.h>
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [new_opa.lo] Error 1

My solution: copy gstdint.h to installed gcc-11.2.0\arm-none-symbianelf\sys-include
-- 
Fiodar Stryzhnoiu <fedor_qd@mail.ru>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbian: Build warnings and errors
  2021-12-26 23:00 Symbian: Build warnings and errors Fiodar Stryzhnoiu
@ 2021-12-26 23:31 ` Jonathan Wakely
  2021-12-27 10:34   ` Фёдар Стрыжнёў
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2021-12-26 23:31 UTC (permalink / raw)
  To: Fiodar Stryzhnoiu; +Cc: gcc-help

On Sun, 26 Dec 2021, 23:01 Fiodar Stryzhnoiu via Gcc-help, <
gcc-help@gcc.gnu.org> wrote:

> I build baremetal crosscompiler for Symbian. That means no libc used in
> any way. For Symbian libc is usual library. It has two libc ports for now.
>
> Here build config:
> export TARGET=arm-none-symbianelf
> # Installation folder
> export GCCC=gcc-11.2.0
>
> # needed enviroment-free statically linked GCC
> ICONV=--with-libiconv-prefix=/usr/local
>
> export PREFIX=/usr/local/$GCCC
> export PATH=$PATH:$PREFIX/bin
> unset CFLAGS
> export CFLAGS+="-pipe -Wl,-Bstatic"
> MAKEJOBS=-j"${NUMBER_OF_PROCESSORS}"
> #set SHELL=cmd.exe allow parallel build on windows
> set SHELL=cmd.exe
>
> 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-option-checking --disable-threads --disable-nls \
>         --disable-win32-registry --disable-libssp --disable-shared \
>         --enable-wchar_t --enable-extra-sgxxlite-multilibs --enable-c99 \
>         --with-static-standard-libraries
> make $MAKEJOBS -k 2> make-gcc.log
> make -k install-strip 2> install-gcc.log
>
> Here full list warnings and error while build GCC for Symbian:
>
> 1. configure: WARNING: using in-tree isl, disabling version check(long
> ago, maybe even 5.4.0)
>

This is not a problem. It's just telling you that it isn't doing a version
check. If you're using a suitable version of isl, there is no problem.
Using isl is completely optional anyway, you can build GCC without it.



> 2. After several minutes build hang if "make -jX" used(long ago, maybe
> even 5.4.0). One make.exe uses cpu other don't. Build continues immediatly
> if right make killed. Windows itself response ok. Log before hang:
>

This is unlikely to be a problem with GCC, it's more likely to be a bug in
Make on your OS. If it's a GCC process (or one of it's scripts like
fixincludes) which hangs then that would be a GCC problem.


3. Many warnings for every file:
> ../../gcc-11.2.0/./gcc/mem-stats.h:215:72: warning: ISO C++11 does not
> support the 'I64' ms_printf length modifier [-Wformat=]
>        get_percent (m_times, total.m_times), loc->m_ggc ? "ggc" : "heap");
>
> ../../gcc-11.2.0/./gcc/pretty-print.h: In function 'void
> pp_wide_integer(pretty_printer*, long long int)':
> ../../gcc-11.2.0/./gcc/pretty-print.h:329:60: warning: ISO C++11 does not
> support the 'I64' ms_printf length modifier [-Wformat=]
>        sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \
>
> ../../gcc-11.2.0/./gcc/alloc-pool.h:76:31: warning: ISO C++11 does not
> support the 'I64' ms_printf length modifier [-Wformat=]
>
> ../../gcc-11.2.0/./gcc/bitmap.h:252:34: warning: ISO C++11 does not
> support the 'I64' ms_printf length modifier [-Wformat=]
>
> ../../gcc-11.2.0/./gcc/lto-streamer.c:179:42: warning: ISO C++11 does not
> support the 'I64' ms_printf length modifier [-Wformat=]
>

You can ignore those.

4. got build-gcc\mpfr\src\.libs\mpfr.a but has in logs:
> configure:14288: error: possibly undefined macro: AX_PTHREAD
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> make[2]: *** [../../gcc-11.2.0/./mpfr/configure] Error 1
> make[2]: Failed to remake makefile `Makefile'.
> libtool: warning: undefined symbols not allowed in i686-pc-mingw32 shared
> libraries; building static only
> make[1]: *** [all-mpfr] Error 2
> make[1]: Target `all-host' not remade because of errors.
> make[1]: Target `all-target' not remade because of errors.
> make: *** [all] Error 2
>
> 5. Another hang in libgcc if "make -jX":
>

[...]

6. Bunch warnings and errors:
> /bin/install: cannot stat `crtfastmath.o': No such file or directory
> configure: WARNING: No native atomic operations are provided for this
> platform.
> configure: WARNING: They cannot be faked when thread support is disabled.
> configure: WARNING: Thread-safety of certain classes is not guaranteed.
> configure: WARNING: stdbool.h: present but cannot be compiled
> configure: WARNING: stdbool.h:     check for missing prerequisite headers?
> configure: WARNING: stdbool.h: see the Autoconf documentation
> configure: WARNING: stdbool.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: stdbool.h: proceeding with the compiler's result
> configure: WARNING: stdalign.h: present but cannot be compiled
> configure: WARNING: stdalign.h:     check for missing prerequisite headers?
> configure: WARNING: stdalign.h: see the Autoconf documentation
> configure: WARNING: stdalign.h:     section "Present But Cannot Be
> Compiled"
> configure: WARNING: stdalign.h: proceeding with the compiler's result
> configure: error: computing EOF failed
> make[1]: *** [configure-target-libstdc++-v3] Error 1
> make[1]: Target `all-target' not remade because of errors.
> make: *** [all] Error 2
>
> 7. Errors for computing EOF, SEEK_CUR, and SEEK_END:
> checking for the value of EOF... configure: error: computing EOF failed
> make: *** [configure-target-libstdc++-v3] Error 1
> Why they needed in bare metal compiler?
>

You're doing a 3-stage bootstrap, so GCC needs a hosted libstdc++ to build
itself. I think only the final stage will be freestanding. Try
--disable-bootstrap to avoid that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbian: Build warnings and errors
  2021-12-26 23:31 ` Jonathan Wakely
@ 2021-12-27 10:34   ` Фёдар Стрыжнёў
  2021-12-29 11:05     ` Fiodar Stryzhnoiu
  0 siblings, 1 reply; 4+ messages in thread
From: Фёдар Стрыжнёў @ 2021-12-27 10:34 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

On Sun, 26 Dec 2021 23:31:09 +0000
Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> On Sun, 26 Dec 2021, 23:01 Fiodar Stryzhnoiu via Gcc-help, <
> gcc-help@gcc.gnu.org> wrote:
> 
> > I build baremetal crosscompiler for Symbian. That means no libc used in
> > any way. For Symbian libc is usual library. It has two libc ports for now.
> >
> > Here build config:
> > export TARGET=arm-none-symbianelf
> > # Installation folder
> > export GCCC=gcc-11.2.0
> >
> > # needed enviroment-free statically linked GCC
> > ICONV=--with-libiconv-prefix=/usr/local
> >
> > export PREFIX=/usr/local/$GCCC
> > export PATH=$PATH:$PREFIX/bin
> > unset CFLAGS
> > export CFLAGS+="-pipe -Wl,-Bstatic"
> > MAKEJOBS=-j"${NUMBER_OF_PROCESSORS}"
> > #set SHELL=cmd.exe allow parallel build on windows
> > set SHELL=cmd.exe
> >
> > 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-option-checking --disable-threads --disable-nls \
> >         --disable-win32-registry --disable-libssp --disable-shared \
> >         --enable-wchar_t --enable-extra-sgxxlite-multilibs --enable-c99 \
> >         --with-static-standard-libraries
> > make $MAKEJOBS -k 2> make-gcc.log
> > make -k install-strip 2> install-gcc.log
> >
> > Here full list warnings and error while build GCC for Symbian:
> >
> > 1. configure: WARNING: using in-tree isl, disabling version check(long
> > ago, maybe even 5.4.0)
> >
> 
> This is not a problem. It's just telling you that it isn't doing a version
> check. If you're using a suitable version of isl, there is no problem.
> Using isl is completely optional anyway, you can build GCC without it.
> 
> 
> 
> > 2. After several minutes build hang if "make -jX" used(long ago, maybe
> > even 5.4.0). One make.exe uses cpu other don't. Build continues immediatly
> > if right make killed. Windows itself response ok. Log before hang:
> >
> 
> This is unlikely to be a problem with GCC, it's more likely to be a bug in
> Make on your OS. If it's a GCC process (or one of it's scripts like
> fixincludes) which hangs then that would be a GCC problem.
> 
> 
> 3. Many warnings for every file:
> > ../../gcc-11.2.0/./gcc/mem-stats.h:215:72: warning: ISO C++11 does not
> > support the 'I64' ms_printf length modifier [-Wformat=]
> >        get_percent (m_times, total.m_times), loc->m_ggc ? "ggc" : "heap");
> >
> > ../../gcc-11.2.0/./gcc/pretty-print.h: In function 'void
> > pp_wide_integer(pretty_printer*, long long int)':
> > ../../gcc-11.2.0/./gcc/pretty-print.h:329:60: warning: ISO C++11 does not
> > support the 'I64' ms_printf length modifier [-Wformat=]
> >        sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \
> >
> > ../../gcc-11.2.0/./gcc/alloc-pool.h:76:31: warning: ISO C++11 does not
> > support the 'I64' ms_printf length modifier [-Wformat=]
> >
> > ../../gcc-11.2.0/./gcc/bitmap.h:252:34: warning: ISO C++11 does not
> > support the 'I64' ms_printf length modifier [-Wformat=]
> >
> > ../../gcc-11.2.0/./gcc/lto-streamer.c:179:42: warning: ISO C++11 does not
> > support the 'I64' ms_printf length modifier [-Wformat=]
> >
> 
> You can ignore those.
> 
> 4. got build-gcc\mpfr\src\.libs\mpfr.a but has in logs:
> > configure:14288: error: possibly undefined macro: AX_PTHREAD
> >       If this token and others are legitimate, please use m4_pattern_allow.
> >       See the Autoconf documentation.
> > make[2]: *** [../../gcc-11.2.0/./mpfr/configure] Error 1
> > make[2]: Failed to remake makefile `Makefile'.
> > libtool: warning: undefined symbols not allowed in i686-pc-mingw32 shared
> > libraries; building static only
> > make[1]: *** [all-mpfr] Error 2
> > make[1]: Target `all-host' not remade because of errors.
> > make[1]: Target `all-target' not remade because of errors.
> > make: *** [all] Error 2
> >
> > 5. Another hang in libgcc if "make -jX":
> >
> 
> [...]
> 
> 6. Bunch warnings and errors:
> > /bin/install: cannot stat `crtfastmath.o': No such file or directory
> > configure: WARNING: No native atomic operations are provided for this
> > platform.
> > configure: WARNING: They cannot be faked when thread support is disabled.
> > configure: WARNING: Thread-safety of certain classes is not guaranteed.
> > configure: WARNING: stdbool.h: present but cannot be compiled
> > configure: WARNING: stdbool.h:     check for missing prerequisite headers?
> > configure: WARNING: stdbool.h: see the Autoconf documentation
> > configure: WARNING: stdbool.h:     section "Present But Cannot Be Compiled"
> > configure: WARNING: stdbool.h: proceeding with the compiler's result
> > configure: WARNING: stdalign.h: present but cannot be compiled
> > configure: WARNING: stdalign.h:     check for missing prerequisite headers?
> > configure: WARNING: stdalign.h: see the Autoconf documentation
> > configure: WARNING: stdalign.h:     section "Present But Cannot Be
> > Compiled"
> > configure: WARNING: stdalign.h: proceeding with the compiler's result
> > configure: error: computing EOF failed
> > make[1]: *** [configure-target-libstdc++-v3] Error 1
> > make[1]: Target `all-target' not remade because of errors.
> > make: *** [all] Error 2
> >
> > 7. Errors for computing EOF, SEEK_CUR, and SEEK_END:
> > checking for the value of EOF... configure: error: computing EOF failed
> > make: *** [configure-target-libstdc++-v3] Error 1
> > Why they needed in bare metal compiler?
> >
> 
> You're doing a 3-stage bootstrap, so GCC needs a hosted libstdc++ to build
> itself. I think only the final stage will be freestanding. Try
> --disable-bootstrap to avoid that.
 That helps.

Can't build libsupc++ at all. "make install-strip-target-libstdc++-v3" output:
make[3]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/v5te/softfp/libgcc'
make[2]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libgcc'
make[1]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libgcc'
make[1]: Entering directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libstdc++-v3'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libstdc++-v3'
make: *** [install-target-libstdc++-v3] Error 2 

----- 
Фёдар Стрыжнёў(Fiodar Stryzhniou) <fedor_qd@mail.ru>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbian: Build warnings and errors
  2021-12-27 10:34   ` Фёдар Стрыжнёў
@ 2021-12-29 11:05     ` Fiodar Stryzhnoiu
  0 siblings, 0 replies; 4+ messages in thread
From: Fiodar Stryzhnoiu @ 2021-12-29 11:05 UTC (permalink / raw)
  To:  Фёдар
	Стрыжнёў (Fiodar
	Stryzhniou)
  Cc: Фёдар
	Стрыжнёў via
	Gcc-help, Jonathan Wakely

On Mon, 27 Dec 2021 13:34:52 +0300
Фёдар Стрыжнёў (Fiodar Stryzhniou) via Gcc-help <gcc-help@gcc.gnu.org> wrote:

> On Sun, 26 Dec 2021 23:31:09 +0000
> Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 
> > On Sun, 26 Dec 2021, 23:01 Fiodar Stryzhnoiu via Gcc-help, <
> > gcc-help@gcc.gnu.org> wrote:
> > 
> > > I build baremetal crosscompiler for Symbian. That means no libc used in
> > > any way. For Symbian libc is usual library. It has two libc ports for now.
> > >
> > > Here build config:
> > > export TARGET=arm-none-symbianelf
> > > # Installation folder
> > > export GCCC=gcc-11.2.0
> > >
> > > # needed enviroment-free statically linked GCC
> > > ICONV=--with-libiconv-prefix=/usr/local
> > >
> > > export PREFIX=/usr/local/$GCCC
> > > export PATH=$PATH:$PREFIX/bin
> > > unset CFLAGS
> > > export CFLAGS+="-pipe -Wl,-Bstatic"
> > > MAKEJOBS=-j"${NUMBER_OF_PROCESSORS}"
> > > #set SHELL=cmd.exe allow parallel build on windows
> > > set SHELL=cmd.exe
> > >
> > > 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-option-checking --disable-threads --disable-nls \
> > >         --disable-win32-registry --disable-libssp --disable-shared \
> > >         --enable-wchar_t --enable-extra-sgxxlite-multilibs --enable-c99 \
> > >         --with-static-standard-libraries
> > > make $MAKEJOBS -k 2> make-gcc.log
> > > make -k install-strip 2> install-gcc.log
> > >
> > > Here full list warnings and error while build GCC for Symbian:
> > >
> > > 1. configure: WARNING: using in-tree isl, disabling version check(long
> > > ago, maybe even 5.4.0)
> > >
> > 
> > This is not a problem. It's just telling you that it isn't doing a version
> > check. If you're using a suitable version of isl, there is no problem.
> > Using isl is completely optional anyway, you can build GCC without it.
> > 
> > 
> > 
> > > 2. After several minutes build hang if "make -jX" used(long ago, maybe
> > > even 5.4.0). One make.exe uses cpu other don't. Build continues immediatly
> > > if right make killed. Windows itself response ok. Log before hang:
> > >
> > 
> > This is unlikely to be a problem with GCC, it's more likely to be a bug in
> > Make on your OS. If it's a GCC process (or one of it's scripts like
> > fixincludes) which hangs then that would be a GCC problem.
> > 
> > 
> > 3. Many warnings for every file:
> > > ../../gcc-11.2.0/./gcc/mem-stats.h:215:72: warning: ISO C++11 does not
> > > support the 'I64' ms_printf length modifier [-Wformat=]
> > >        get_percent (m_times, total.m_times), loc->m_ggc ? "ggc" : "heap");
> > >
> > > ../../gcc-11.2.0/./gcc/pretty-print.h: In function 'void
> > > pp_wide_integer(pretty_printer*, long long int)':
> > > ../../gcc-11.2.0/./gcc/pretty-print.h:329:60: warning: ISO C++11 does not
> > > support the 'I64' ms_printf length modifier [-Wformat=]
> > >        sprintf (pp_buffer (PP)->digit_buffer, FORMAT, SCALAR); \
> > >
> > > ../../gcc-11.2.0/./gcc/alloc-pool.h:76:31: warning: ISO C++11 does not
> > > support the 'I64' ms_printf length modifier [-Wformat=]
> > >
> > > ../../gcc-11.2.0/./gcc/bitmap.h:252:34: warning: ISO C++11 does not
> > > support the 'I64' ms_printf length modifier [-Wformat=]
> > >
> > > ../../gcc-11.2.0/./gcc/lto-streamer.c:179:42: warning: ISO C++11 does not
> > > support the 'I64' ms_printf length modifier [-Wformat=]
> > >
> > 
> > You can ignore those.
> > 
> > 4. got build-gcc\mpfr\src\.libs\mpfr.a but has in logs:
> > > configure:14288: error: possibly undefined macro: AX_PTHREAD
> > >       If this token and others are legitimate, please use m4_pattern_allow.
> > >       See the Autoconf documentation.
> > > make[2]: *** [../../gcc-11.2.0/./mpfr/configure] Error 1
> > > make[2]: Failed to remake makefile `Makefile'.
> > > libtool: warning: undefined symbols not allowed in i686-pc-mingw32 shared
> > > libraries; building static only
> > > make[1]: *** [all-mpfr] Error 2
> > > make[1]: Target `all-host' not remade because of errors.
> > > make[1]: Target `all-target' not remade because of errors.
> > > make: *** [all] Error 2
> > >
> > > 5. Another hang in libgcc if "make -jX":
> > >
> > 
> > [...]
> > 
> > 6. Bunch warnings and errors:
> > > /bin/install: cannot stat `crtfastmath.o': No such file or directory
> > > configure: WARNING: No native atomic operations are provided for this
> > > platform.
> > > configure: WARNING: They cannot be faked when thread support is disabled.
> > > configure: WARNING: Thread-safety of certain classes is not guaranteed.
> > > configure: WARNING: stdbool.h: present but cannot be compiled
> > > configure: WARNING: stdbool.h:     check for missing prerequisite headers?
> > > configure: WARNING: stdbool.h: see the Autoconf documentation
> > > configure: WARNING: stdbool.h:     section "Present But Cannot Be Compiled"
> > > configure: WARNING: stdbool.h: proceeding with the compiler's result
> > > configure: WARNING: stdalign.h: present but cannot be compiled
> > > configure: WARNING: stdalign.h:     check for missing prerequisite headers?
> > > configure: WARNING: stdalign.h: see the Autoconf documentation
> > > configure: WARNING: stdalign.h:     section "Present But Cannot Be
> > > Compiled"
> > > configure: WARNING: stdalign.h: proceeding with the compiler's result
> > > configure: error: computing EOF failed
> > > make[1]: *** [configure-target-libstdc++-v3] Error 1
> > > make[1]: Target `all-target' not remade because of errors.
> > > make: *** [all] Error 2
> > >
> > > 7. Errors for computing EOF, SEEK_CUR, and SEEK_END:
> > > checking for the value of EOF... configure: error: computing EOF failed
> > > make: *** [configure-target-libstdc++-v3] Error 1
> > > Why they needed in bare metal compiler?
> > >
> > 
> > You're doing a 3-stage bootstrap, so GCC needs a hosted libstdc++ to build
> > itself. I think only the final stage will be freestanding. Try
> > --disable-bootstrap to avoid that.
>  That helps.
> 
> Can't build libsupc++ at all. "make install-strip-target-libstdc++-v3" output:
> make[3]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/v5te/softfp/libgcc'
> make[2]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libgcc'
> make[1]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libgcc'
> make[1]: Entering directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libstdc++-v3'
> make[1]: *** No rule to make target `install'.  Stop.
> make[1]: Leaving directory `/d/mbuild/src/build-gcc/arm-none-symbianelf/libstdc++-v3'
> make: *** [install-target-libstdc++-v3] Error 2 
> 
> ----- 
> Фёдар Стрыжнёў(Fiodar Stryzhniou) <fedor_qd@mail.ru>

Any help, please?
----- 
Fiodar Stryzhnoiu <fedor_qd@mail.ru>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-29 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-26 23:00 Symbian: Build warnings and errors Fiodar Stryzhnoiu
2021-12-26 23:31 ` Jonathan Wakely
2021-12-27 10:34   ` Фёдар Стрыжнёў
2021-12-29 11:05     ` Fiodar Stryzhnoiu

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).