From owner-freebsd-bugs@freebsd.org Tue Feb 23 09:03:04 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8439CAB2C4E for ; Tue, 23 Feb 2016 09:03:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 732551A06 for ; Tue, 23 Feb 2016 09:03:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1N934Fe041795 for ; Tue, 23 Feb 2016 09:03:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207359] projects/clang380-import for TARGET_ARCH=powerpc64 via powerpc64-gcc : c++ exceptions unbounded loop in _Unwind_RaiseException (9 line program) Date: Tue, 23 Feb 2016 09:03:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 09:03:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207359 --- Comment #1 from Mark Millard --- (Now using projects/clang380-import -r295902 as a context.) TARGET_ARCH=3Dpowerpc64 here. It looks like FreeBSD's /lib/libgcc_s.so.1 is incompatible with using the p= air: /usr/lib/libc++.so.1 and /lib/libcxxrt.so.1 . Details follow. Later below I list the ldd output for compiling the exception_test.cpp exam= ple under different compilers with different options that change what ldd shows= and how .so's are found/bound. Some are using. . . ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/gcc49 /usr/local/lib/gcc6 and others are explicitly bound, such as by -Wl,-rpath=3D . The only combinations that do not work are the ones that mix 3 things toget= her: /usr/lib/libc++.so.1 /lib/libcxxrt.so.1 /lib/libgcc_s.so.1 That is: exception_test.clang++380.powerpc64 and exception_test.powerpc64-gcc.powerpc64 get the unbounded looping and the ot= hers work fine. By contrast /lib/libgcc_s.so.1 works with: /usr/local/lib/gcc49/libstdc++.so.6 and /usr/local/lib/gcc6/libstdc++.so.6 Of course a matched libstdc++/libgcc_s for a specific compiler also works. # ldd *powerpc64 exception_test.clang++380.powerpc64: libc++.so.1 =3D> /usr/lib/libc++.so.1 (0x50054000) libcxxrt.so.1 =3D> /lib/libcxxrt.so.1 (0x5015a000) libm.so.5 =3D> /lib/libm.so.5 (0x50181000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x501be000) libc.so.7 =3D> /lib/libc.so.7 (0x501e4000) exception_test.g++49-implicitgcc49.powerpc64: libstdc++.so.6 =3D> /usr/local/lib/gcc49/libstdc++.so.6 (0x50054000) libm.so.5 =3D> /lib/libm.so.5 (0x501ed000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x5022a000) libc.so.7 =3D> /lib/libc.so.7 (0x50250000) exception_test.g++49.powerpc64: libstdc++.so.6 =3D> /usr/local/lib/gcc49/libstdc++.so.6 (0x50054000) libm.so.5 =3D> /lib/libm.so.5 (0x501ed000) libgcc_s.so.1 =3D> /usr/local/lib/gcc49/libgcc_s.so.1 (0x5022a000) libc.so.7 =3D> /lib/libc.so.7 (0x50253000) exception_test.g++6-implicitgcc49.powerpc64: libstdc++.so.6 =3D> /usr/local/lib/gcc49/libstdc++.so.6 (0x50054000) libm.so.5 =3D> /lib/libm.so.5 (0x501ed000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x5022a000) libc.so.7 =3D> /lib/libc.so.7 (0x50250000) exception_test.g++6.powerpc64: libstdc++.so.6 =3D> /usr/local/lib/gcc6/libstdc++.so.6 (0x50054000) libm.so.5 =3D> /lib/libm.so.5 (0x502a6000) libgcc_s.so.1 =3D> /usr/local/lib/gcc6/libgcc_s.so.1 (0x502e3000) libc.so.7 =3D> /lib/libc.so.7 (0x5030a000) exception_test.powerpc64-gcc.powerpc64: libc++.so.1 =3D> /usr/lib/libc++.so.1 (0x50053000) libcxxrt.so.1 =3D> /lib/libcxxrt.so.1 (0x50159000) libm.so.5 =3D> /lib/libm.so.5 (0x50180000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x501bd000) libc.so.7 =3D> /lib/libc.so.7 (0x501e3000) --=20 You are receiving this mail because: You are the assignee for the bug.=