From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) by sourceware.org (Postfix) with ESMTPS id EFC6F385842B for ; Wed, 29 Dec 2021 11:05:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EFC6F385842B Received: by smtp47.i.mail.ru with esmtpa (envelope-from ) id 1n2Wlx-0004mI-UQ; Wed, 29 Dec 2021 14:05:34 +0300 Date: Wed, 29 Dec 2021 14:05:35 +0300 From: Fiodar Stryzhnoiu To: =?Windows-1251?Q?"=D4=B8=E4=E0=F0_=D1=F2=F0=FB=E6=ED=B8=A2_\(Fiodar_St?= =?Windows-1251?Q?ryzhniou\)"?= Cc: =?Windows-1251?Q?=D4=B8=E4=E0=F0_=D1=F2=F0=FB=E6=ED=B8=A2?= (Fiodar Stryzhniou) via Gcc-help , Jonathan Wakely Subject: Re: Symbian: Build warnings and errors Message-Id: <20211229140535.d40fa932496a3eea01e18379@mail.ru> In-Reply-To: <20211227133452.387e792b5530d31979a1f81a@mail.ru> References: <20211227020027.34846aed744a550bb0be6fbd@mail.ru> <20211227133452.387e792b5530d31979a1f81a@mail.ru> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD94D5EF110843E6A67488A001FE7488196A3A9897144145DE2182A05F538085040E2F12F5500934DACEACF48CDD0DA0617853A4656E13D2795325803A4BD575996 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE74B51810D54EC17F0C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE751BC6685BC61E6BCEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BEBC5CAB6D411FFA6A6BD488EA72B408A348744CCAE1F70A820879F7C8C5043D14489FFFB0AA5F4BF176DF2183F8FC7C05C65A4548AF84F858941B15DA834481FA18204E546F3947C1D471462564A2E19F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F79006372A3B24BF85B2E607389733CBF5DBD5E9B5C8C57E37DE458BD9DD9810294C998ED8FC6C240DEA76428AA50765F790063740A2D98034C219BAD81D268191BDAD3DBD4B6F7A4D31EC0BEA7A3FFF5B025636D81D268191BDAD3D78DA827A17800CE723D874C0A8C177C4EC76A7562686271EEC990983EF5C03292E808ACE2090B5E14AD6D5ED66289B5259CC434672EE63711DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C3F6A27782D052760535872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A593DE6598FA793771F9769045F744ED2F5C9DEF9C0ABB2F84D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75438CC92D4039F4E2410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D347341ACA13FB8BDD991DC570A5AEA1E7B73C3CEB155FD6D66CB54944FFABC5554506D244D2B8472F81D7E09C32AA3244CC67AD430C3B5C60A92E9EF250197CF173FD9C8CA1B0515E0FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojXY22XoowekCEQEvd+TSAdw== X-Mailru-Sender: B5420D632883B294CF6673AD81AF0FB68C36C43B59A46B1638B3460C9E77247DE2527C969975515C2B4E3A9B39D17ED8FB559BB5D741EB9638645ACA06CB6E346F53C80213D1719C67EA787935ED9F1B X-Mras: Ok X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2021 11:05:38 -0000 On Mon, 27 Dec 2021 13:34:52 +0300 Ô¸äàð Ñòðûæí¸¢ (Fiodar Stryzhniou) via Gcc-help wrote: > On Sun, 26 Dec 2021 23:31:09 +0000 > Jonathan Wakely 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) Any help, please? ----- Fiodar Stryzhnoiu