From owner-freebsd-ports-bugs@freebsd.org Sun Aug 6 17:57:03 2017 Return-Path: Delivered-To: freebsd-ports-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 9E10BDC1289 for ; Sun, 6 Aug 2017 17:57:03 +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 825BC68913 for ; Sun, 6 Aug 2017 17:57:03 +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 v76Hv3he038306 for ; Sun, 6 Aug 2017 17:57:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221288] gcc5 links against libsupc++ when compiling Date: Sun, 06 Aug 2017 17:57:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rm@gnu.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2017 17:57:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221288 Bug ID: 221288 Summary: gcc5 links against libsupc++ when compiling Product: Ports & Packages Version: Latest Hardware: i386 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: rm@gnu.org I get this stacktrace using a program compiled with gcc 5.4.0 from ports. I= t is gcc5-5.4.0_3 GNU Compiler Collection 5 but previous package versions of 5.4 had the same issue. I cannot try out h= ow 6.4 fares, because it fails to compile gnustep stuff for me. #0 0x00000000 in ?? () #1 0x29c0ad42 in __cxxabiv1::__dynamic_cast (src_ptr=3D0x2e904a80, src_type=3D0x2973c618 , dst_type=3D0x2973d8b8 , src2dst=3D0) at /usr/ports/lang/gcc5/work/gcc-5.4.0/libstdc++-v3/libsupc++/dyncast.cc= :72 #2 0x2942d51d in icu::Calendar::makeInstance(icu::Locale const&, UErrorCod= e&) () from /usr/local/lib/libicui18n.so.58 #3 0x2942d3ba in icu::LocaleCacheKey::createObject(vo= id const*, UErrorCode&) const () from /usr/local/lib/libicui18n.so.58 #4 0x296d190f in icu::UnifiedCache::_get(icu::CacheKeyBase const&, icu::SharedObject const*&, void const*, UErrorCode&) const () from /usr/local/lib/libicuuc.so.58 #5 0x29438906 in void icu::UnifiedCache::get(icu::CacheKey const&, void const*, icu::SharedCalendar const*&, UErrorCode&) const () from /usr/local/lib/libicui18n.so.58 #6 0x29437d78 in void icu::UnifiedCache::getByLocale(icu::Locale const&, icu::SharedCalendar const*&, UErrorCode&) () from /usr/local/lib/libicui18n.so.58 #7 0x2942e90d in icu::Calendar::createInstance(icu::TimeZone*, icu::Locale const&, UErrorCode&) () from /usr/local/lib/libicui18n.so.58 #8 0x293ec0f1 in icu::SimpleDateFormat::construct(icu::DateFormat::EStyle, icu::DateFormat::EStyle, icu::Locale const&, UErrorCode&) () from /usr/local/lib/libicui18n.so.58 and David Chisnall tells me: This is quite surprising. On FreeBSD, this function should be provided by libcxxrt, not libsupc++. Please file a bug report with the FreeBSD gcc maintainer - it looks as if you=E2=80=99ve somehow ended up with a program = linking both libc++ from base and libstdc++ from ports, and the libstdc++ from ports is incorrectly using its own internal libsupc++ instead of the system-provided libcxxrt (which I wrote, so can help debugging a bit better). --=20 You are receiving this mail because: You are the assignee for the bug.=