From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 531D03858410; Mon, 17 Jan 2022 01:46:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 531D03858410 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:46:31 +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:46:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104057 --- Comment #21 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 glibc32/lib to $PREFIX/$TARGET/lib32 $PREFIX/$TARGET/lib/32 glibc64/lib to $PREFIX/$TARGET/lib64 $PREFIX/$TARGET/lib glibcx32/lib to $PREFIX/$TARGET/libx32 $PREFIX/$TARGET/lib/x32=