From nobody Fri Nov 10 21:13:54 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SRs4y42H8z50SwK for ; Fri, 10 Nov 2023 21:13:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SRs4y2P5hz3HF9 for ; Fri, 10 Nov 2023 21:13:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699650834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RBnZkLWv+0TU6tXksqlAeXRJh+y9MbGCSBUFWEH14CY=; b=vGvqb8lPU73LxoaNFwyVGhRgrABnbQ9u9MTE8a7H4mS3ngoPVZo5CibdSp+TSPUt3Wgvlc bkaUGOhByeTBrZPMuLWsdmKsU0nTwC0qBYSGHCV1Q9/sjzfM7MFJrINGqfVd3r+/A4NzxA qEpu4PxA1HeizoWGFwiUCJ4DBNWUNNDG8A1ZsQXAWJCUNwNnsO2Ezk5e/jc5vJvW7Dw9ZT eZGYghA54psSVjUef+8WB1WKSxjPY1bCiGpSmcIF8sEmTxUi17tYk41LIlBKb0svoiZWny 6t7LGl1b9AXo+NyP2kCU6zPWeiqonddKesFr8x5EnaQitcqiNxQZaU7Qtk6WfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699650834; a=rsa-sha256; cv=none; b=aCD28zp53R+aoHcd2EIN5sT05ZynTze9oEPpEVyw0W2noY6fBnvVCB795PMFo0rLZfPxFT tZlYdmYp52sb0yLp57iTuAgDbiNvC7+Ro0X1NRPDZVHtbv0dzng+RKic6TVPFCOgVAVf/b ivnzn8AiK/BcYlDC3dq5OlY8r4BhG3eRXjnOCBPPa/Qsi2zp0TJlFfn5a1m0v3vjkP7wBD 5v/V9Q1QXH3c8pUf9s/cUBpjYOMNGvOkAnz4JlgVPZr5YeRCRwWkV4ubzQrOwwXkBvJgh5 3wFkwyIWbLX+SFYtHNTdI2seGRpVgF1dcH4k/dkrPj1ws0aCtrIElT+sIXoCiA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SRs4y1MB5z1CwT for ; Fri, 10 Nov 2023 21:13:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3AALDsgS047321 for ; Fri, 10 Nov 2023 21:13:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AALDsGE047320 for ports-bugs@FreeBSD.org; Fri, 10 Nov 2023 21:13:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 275018] ports-mgmt/pkg: building with PIE and RELRO is broken when CFLAGS are set Date: Fri, 10 Nov 2023 21:13:54 +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: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275018 Bug ID: 275018 Summary: ports-mgmt/pkg: building with PIE and RELRO is broken when CFLAGS are set Product: Ports & Packages Version: Latest Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: zarychtam@plan-b.pwste.edu.pl Assignee: pkg@FreeBSD.org Flags: maintainer-feedback?(pkg@FreeBSD.org) Since WITH_PIE and WITH_RELRO were introduced to ports, it was impossible to build ports-mgmt/pkg when CFLAGS were also set. To reproduce try to build ports-mgmt/pkg with these settings in make.conf: CFLAGS=3D-O2 -pipe -fno-strict-aliasing=20 WITH_PIE=3DYES=20 WITH_RELRO=3DYES it looks like setting CFLAGS is killing -fPIC at some point which results i= n: ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC I initially believed it was only a flaw, but I was encouraged to submit a PR about it. --=20 You are receiving this mail because: You are the assignee for the bug.=