From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) by sourceware.org (Postfix) with ESMTPS id A4E783830088 for ; Sun, 12 Jun 2022 11:31:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A4E783830088 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=mail.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mail.ru DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=tkzPybLhMQhVUvAnmtTUJzR/sXXDOu6FQ+XSSmM/t2o=; t=1655033506;x=1655638906; b=tl8Tellb8C03pt1WBVGhtWKrT93/N8y6CEV3JXBcIHaSroPyz4821iDi5qmBZs7ULYz8D28FfxqCKehu1Ttr16MxDhaYNdEwaKj8I6F0NYkdF9+hdbkp41/gyDuaMNex7BGNyHNsmNr8iex7ixBrAc98PVXqYjdqIbbcJvY7zeSyk0oGOK5FwpKpXdC8RTBJBTFVV0kVCd038TC73rTHUk6Qb2r5XdPVzwchiU8VAHHrPUgQNTlkXYBFaLS/CXJP++UwqxRkFnlNGvV+gSNKN4W9eMC2lR2dB5O6wiVW9xGBgOK6xcf5yLGU5TxToXV0kkkfjgDDQNgD7oxJsixZtQ==; Received: by smtp51.i.mail.ru with esmtpa (envelope-from ) id 1o0Lom-0006Hr-Hr for gcc-help@gcc.gnu.org; Sun, 12 Jun 2022 14:31:44 +0300 Subject: Re: Errors : '__INTPTR_TYPE__' undeclared while building GCC 12.1.0 for symbian To: gcc-help@gcc.gnu.org References: <7a460d8f-51ba-e5c2-8b3d-5670ec6a218f@mail.ru> From: Fiodar Stryzhniou Message-ID: <85e17ce4-8552-8622-4155-f75d3309b0b5@mail.ru> Date: Sun, 12 Jun 2022 14:31:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <7a460d8f-51ba-e5c2-8b3d-5670ec6a218f@mail.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Authentication-Results: smtp51.i.mail.ru; auth=pass smtp.auth=fedor_qd@mail.ru smtp.mailfrom=fedor_qd@mail.ru X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD97D44297578DBEB86B62F79C7FEB21477876C1A6C9E05F4E9182A05F538085040B75867F027D5A7D1C0CC2D9568F7A2058C5E3EF1906B20FE41FF9AAF3268FD0E X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7E99F7FC786761FD8C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE7C579B1C3ABE6C7098F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB55337566EF07A66689555667C74B6F4A3FD275ED7B9CE1EE6A36758A1DF9E95F17B0083B26EA987F6312C9EC33AC447995A7AD18F04B652EEC242312D2E47CDBA5A96583C09775C1D3CA48CF4964A708C60C975A117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE70F3DDF2BBF19B93A9FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE7900C90A4A33440F2D32BA5DBAC0009BE395957E7521B51C20BC6067A898B09E4090A508E0FED6299176DF2183F8FC7C03BEAAC1DA471BA75CD04E86FAF290E2D7E9C4E3C761E06A71DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6BF3059D42242344A089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-8FC586DF: 6EFBBC1D9D64D975 X-C1DE0DAB: 0D63561A33F958A5B349765A31BF039D4D636E9D23FCC219CED131F608E411A0D59269BC5F550898D99A6476B3ADF6B4886A5961035A09600383DAD389E261318FB05168BE4CE3AF X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D340297C696F996E38405E55A4B85FB5C015A5C5212CB8742CE7FBB587B3C3DE40651D69D20EF8FB4661D7E09C32AA3244CA8119CEA6E500FF3F9D8F2AF43E022E83A76366E8A9DE7CA3EB3F6AD6EA9203E X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojhak3GzqNdXZqliGW3plBsA== X-Mailru-Sender: B5420D632883B294CF6673AD81AF0FB63DE1D833DFEE85D3FEBD96600097C5EEE2527C969975515C2B4E3A9B39D17ED8FB559BB5D741EB9638645ACA06CB6E346F53C80213D1719C67EA787935ED9F1B X-Mras: Ok X-Spam-Status: No, score=-1.7 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Sun, 12 Jun 2022 11:31:48 -0000 6/10/22 у 3:44 PM Fiodar Stryzhniou напісаў: > OS - Devuan Chimaera 4.0 stable release > > Config: > configure  --target=$TARGET --prefix=$PREFIX  --without-headers \ >     --enable-languages="c,c++,lto" --enable-lto --enable-interwork \ >     --enable-long-long --enable-tls --enable-multilib --enable-wchar_t \ >     --enable-c99 --with-newlib --with-dwarf2 > --with-static-standard-libraries \ >     --disable-hosted-libstdcxx --disable-libstdcxx-pch --disable-shared \ >     --disable-option-checking --disable-threads --disable-nls \ >     --disable-win32-registry --disable-libssp --disable-libquadmath > > I redirected build errors to file(make -j6 -k 2> make-gcc.log): > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c: In function > 'write_topn_counters': > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:457:56: error: > '__INTPTR_TYPE__' undeclared (first use in this function); did you mean > 'INTPTR_TYPE'? >   457 |       for (struct gcov_kvp *node = (struct gcov_kvp > *)(__INTPTR_TYPE__)start; >       | ^~~~~~~~~~~~~~~ >       |                                                        INTPTR_TYPE > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:457:56: note: each > undeclared identifier is reported only once for each function it appears in > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:457:72: error: expected > ',' or ';' before 'start' >   457 |       for (struct gcov_kvp *node = (struct gcov_kvp > *)(__INTPTR_TYPE__)start; >       |         ^~~~~ > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:454:17: warning: unused > variable 'start' [-Wunused-variable] >   454 |       gcov_type start = ci_ptr->values[GCOV_TOPN_MEM_COUNTERS * > i + 2]; >       |                 ^~~~~ > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:476:72: error: expected > ',' or ';' before 'start' >   476 |       for (struct gcov_kvp *node = (struct gcov_kvp > *)(__INTPTR_TYPE__)start; >       |         ^~~~~ > ../../../gcc-12.1.0/./libgcc/libgcov-driver.c:473:17: warning: unused > variable 'start' [-Wunused-variable] >   473 |       gcov_type start = ci_ptr->values[GCOV_TOPN_MEM_COUNTERS * > i + 2]; >       |                 ^~~~~ > make[2]: *** [Makefile:928: _gcov_info_to_gcda.o] Error 1 I create file test_macro.c with content: #ifdef __INTPTR_TYPE__ #warning "__INTPTR_TYPE__ defined!" #else #error "__INTPTR_TYPE__ not defined!" #endif Tried: gcc-11.2.0/bin$ ./arm-none-symbianelf-gcc -c test_macro.c test_macro.c:4:2: error: #error "__INTPTR_TYPE__ not defined!" Any ideas? -- Fiodar Stryzhniou