From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13433 Path: news.gmane.org!.POSTED!not-for-mail From: argante Newsgroups: gmane.linux.lib.musl.general Subject: Re: using musl-cross-make to build host gcc Date: Sun, 11 Nov 2018 19:39:23 +0000 Message-ID: <6-Gmhpgmyu0zrymZGFxvEp2eO13t_c1V-4FAz9HAXlfn082vRi5jhDzOZZSLjVVW7L6i9LSoKQL1a3NI5xzbUw==@pm.me> References: <20181111141331.GB15979@voyager> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541965057 2362 195.159.176.226 (11 Nov 2018 19:37:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2018 19:37:37 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-13449-gllmg-musl=m.gmane.org@lists.openwall.com Sun Nov 11 20:37:33 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gLvY4-0000WL-Jn for gllmg-musl@m.gmane.org; Sun, 11 Nov 2018 20:37:33 +0100 Original-Received: (qmail 15518 invoked by uid 550); 11 Nov 2018 19:39:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15500 invoked from network); 11 Nov 2018 19:39:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=proton; t=1541965169; bh=FfQElP3zpB4acbD9hDwUn8irGs5kxvnSXUyWgsbFkAQ=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=M2G82dnVUOhnyGfiNsyDxGWg99nL/ocn2vu0uyDnQf5MOXVMW5Zi5QtZ/vtw9HveI YVXqhBZ9yfnhmkHaposDDN73iItF/tcVCO83eUGBNdDIEhZ7sitMFBNFq5DxgeWZ7A jCKO3IMgzwamcioxFECFG4W/RiQIvnk32CcHLtHYdfg2iqG4XgaB1b9FXWffgX1MgB 6taHG1Bvv5qslQp9RHBiPAyC2YZRwCPrQbVb0H0M4z56LbP4fTaAuE+IspcZkG3KyO YlQCRZMwU70hfVrhEBTGmDz8XlOcihh0qERlwdD3ojKnb5qew30STOHyYyFQeeT7dB 0jVLdb/0Fm3+g== In-Reply-To: Feedback-ID: sj1YN_iN560_iv4ir5EpCpCFj2RELVzNnBQpDIwMoUMNXowIBSidTdxSWFyLT3J_uOeJsE1taahISy929bGTAA==:Ext:ProtonMail Xref: news.gmane.org gmane.linux.lib.musl.general:13433 Archived-At: The compilation starts with lto-plugin and here the size of the types are d= etermined correctly. checking whether time.h and sys/time.h may both be included... yes checking whether errno must be declared... no checking size of int... 4 checking size of long... 8 checking size of size_t... 8 checking for long long... yes checking size of long long... 8 checking for a 64-bit type... uint64_t checking for intptr_t... yes checking for uintptr_t... yes (...) make[4]: Leaving directory `/tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux= -musl/lto-plugin' make[3]: Leaving directory `/tmp/ports/gcc/work/gcc-7.3.0/host-x86_64-linux= -musl/lto-plugin' Then is the gcc and the size of the types is incorrectly determined. checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking size of void *... 0 checking size of short... 0 checking size of int... 0 checking size of long... 0 checking for long long... yes checking size of long long... configure: error: in `/tmp/ports/gcc/work/gcc= -7.3.0/host-x86_64-linux-musl/gcc': configure: error: cannot compute sizeof (long long) See `config.log' for more details. make[2]: *** [configure-stage1-gcc] Error 77 make[2]: Leaving directory `/tmp/ports/gcc/work/gcc-7.3.0' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/tmp/ports/gcc/work/gcc-7.3.0' make: *** [all] Error 2 I can't understand why cross-gcc works correctly and the version built on t= he host is working incorrectly.