From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7F803858D28; Wed, 15 Dec 2021 09:25:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7F803858D28 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/103577] d21 SIGSEGV on Darwin/x86_64 Date: Wed, 15 Dec 2021 09:25:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot 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: Wed, 15 Dec 2021 09:25:42 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103577 --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from ro at CeBiTec dot Uni-Bielefeld.DE Uni-Bielefeld.DE> --- >> --- Comment #3 from Iain Buclaw --- >> FYI, with darwin, I've only been using the most recent commit in >> releases/gcc-11 for testing as there have been a number of issues expose= d from >> that port. >> >> I have VMs set-up running 10.4 (PPC), 10.6 (x86_64), 10.13, 10.14, 10.15= , 11, >> and 12. Not yet gotten round to building a bootstrap compiler from gcc-= 11 just >> yet though for testing build of master. > > Good to know. Once the gcc-11 builds are done, I'll retry bootstrapping > master on 10.7 and 12. Maybe the SEGVs on 10.7 stage1 will be gone that > way... I've now done just that: * build top of gcc-11 with --enable-languages=3Dd --enable-libphobos * use that as bootstrap gdc for master Results are pretty good: * The corrupted *.Po files in stage1 are gone. * On 10.7, the d21 SEGV is gone * gdc and libphobos testsuite results on both 10.7 and 12 are reasonable. There's one caveat, though: On 10.7 (so far), a couple of files don't compile building stage2 libphobos: dyld: Symbol not found: __D6object10_xopEqualsFxPvxQdZb Referect10_xopEqualsFxPvxQdZb Referenced from: /var/gcc/regression/mnced from: /var/gcc/regression/master/10.7-gcc/build/./gcc/d21 Expected in: /var/gcc/regression/master/10.7-gcc/build/x86_64-apple-darwin11.4.2/libphob= os/src/.libs/libgphobos.2.dylib in /var/gcc/regression/master/10.7-gcc/gcc/regression/master/10.7-gcc/build/./= gcc/d21 and indeed that symbol (object._xopEquals(const(void*), const(void*))) is missing from the freshly built libgphobos, while it is present in the gcc-11 one. I suspect this happens because the toplevel Makefile sets DYLD_LIBRARY_PATH, since when I just run make in x86_64-apple-darwin11.4.2/libphobos, the build succeeds without further problems. There are two issues here, I believe: * The one line patch to gcc/config/darwin.h to support -static-libphobos should be backported to the gcc-11 branch to avoid this in the first place. * Besides, making incompatible changes to libgphobos (like removing an exported interface) shouldn't be done without increasing the library version number.=