From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 434533861C53; Sat, 31 Jul 2021 22:42:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 434533861C53 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84257] Extremely slow compilation from gcc source code under macOS 10.13 Date: Sat, 31 Jul 2021 22:42:49 +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: 7.3.0 X-Bugzilla-Keywords: build, compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Sat, 31 Jul 2021 22:42:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84257 --- Comment #9 from Iain Sandoe --- (In reply to Eric Gallager from comment #8) > the MacPorts project applies the following patch to work around this issu= e: > https://github.com/macports/macports-ports/commit/ > 0641e588e989b7b3e5049ca79e354339ccb403ca Well, that disables the use of DYLD_LIBRARY_PATH, but does not provide a replacement (i.e. it's a workaround only). --- I have patches that resolve this by using @rpath for libraries on macOS versions that support it - and switch off the use of DYLD_LIBRARY_PATH there (which isn't acted on). This solution also restores the ability to test the compiler without first installing it. The patches are on trial branches (they are needed on the arm64 port) - and AFAIK the build problems with a couple of packages were resolved. It remai= ns to tidy them up for application / posting as needed.=