From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABBC33858C98; Mon, 12 Feb 2024 17:17:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABBC33858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707758240; bh=Lb9MGXHnRR4sOcMeYnU/UHJaSsaxP/8Mpdfpf7DweSw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WXao9ycvg2dPPRMMWXFtq9A5rbg80Obe+NhhylxnwvDDVLxY7muYo6byQPMFIya/y ZZ11+I+vs2eUn1SNC+EE8J8GYco/YO8RlpX5uyiOKwHX5qJaPRqX5loOR3GWOWRwyC tKJCVuSjT8g1Vqmo0/Gfe3gcbDrkZnH6/UFG1Hhw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113891] On FreeBSD, a statically linked program which runs a std::thread aborts Date: Mon, 12 Feb 2024 17:17:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113891 --- Comment #3 from Andrew Pinski --- I suspect this is due to the use of weak for pthread functions. Most likely you need to force include all of libthr archive file.=