From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 977253858402; Mon, 17 Jan 2022 01:45:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 977253858402 From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/104057] cross compiler multilibs libs path too chaos Date: Mon, 17 Jan 2022 01:45:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2022 01:45:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104057 --- Comment #19 from cqwrteur --- (In reply to cqwrteur from comment #18) > (In reply to Andrew Pinski from comment #17) > > also multilib directories under ${prefix} for a cross does not use OS > > directories as most cross compilers have OS directories. >=20 > Of course. I installed Linux kernel headers and glibc. >=20 > they are installed in $PREFIX/$TARGET >=20 > Since we need to build 32 glibc, x32 glibc, 64 glibc. I installed them in= to > separate dirs and copy files with each other. Or they will overwrite file. >=20 > Then copy all headers to $PREFIX/$TARGET/include >=20 > glibc32/lib to $PREFIX/lib32 $PREFIX/lib/32 >=20 > glibc64/lib to $PREFIX/lib64 $PREFIX/lib >=20 > glibcx32/lib to $PREFIX/libx32 $PREFIX/lib/x32 https://pete.akeo.ie/2010/07/compiling-mingw-w64-with-multilib-on.html Here was a similar result other people built 10 years ago. I find this issue happens for all targets, not just x86_64-w64-mingw32. The GCC just find different directories at build stage and after build.=