From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8BD613858C62; Thu, 18 May 2023 18:28:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BD613858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684434491; bh=l99cJ1uV33F1nkb4fEWJxM5cV4mYZ35WhVySh00PrQI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AVjpMNqenbKYNz7MQplAfMyR2Mu2u8fL4C3xaL0BmlOQSSMz/sbtwDpQ/pTbkyeLL Tw1YLpg3qD9jZ15C+xGV2N5DI1Us40Pkni0d8K+w2UFRLeqaqmWtBCjDvuNJNEgVNj W7AgfQjwHGw+P6EPIrYenOaZY8HPSRi4pE7mA3q8= From: "Gary.White at ColoState dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/109904] linking with -static flag generates undefined references Date: Thu, 18 May 2023 18:28:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: Gary.White at ColoState dot edu X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109904 --- Comment #3 from GARY.WHITE at ColoState dot edu --- Linking with -ldl fixed the issue Where is there documentation of -ldl? Gary C. White, CWB(r) Professor Emeritus Department of Fish, Wildlife, and Conservation Biology 10 Wagar Colorado State University Fort Collins, CO 80523 (515)450-2768 Mobile Gary.White@ColoState.edu https://sites.warnercnr.colostate.edu/gwhite/ he/him/his See where we are! "Leadership is a privilege to better the lives of others. It is not an opportunity to satisfy personal greed." Mwai Kibaki -----Original Message----- From: pinskia at gcc dot gnu.org Sent: Thursday, May 18, 2023 12:11 PM To: White,Gary Subject: [Bug libgomp/109904] linking with -static flag generates undefined references ** Caution: EXTERNAL Sender ** https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109904 --- Comment #1 from Andrew Pinski --- >--enable-offload-targets=3Dnvptx-none I suspect this might be the issue. offloading only works with targets that = have dlopen . Maybe you need to link with -ldl to get it working. -- You are receiving this mail because: You reported the bug.=