From nobody Tue Feb 04 08:16:53 2025 X-Original-To: dev-commits-ports-main@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 4YnGRp2hjzz5mJxp; Tue, 04 Feb 2025 08:16:54 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YnGRn6p17z3ry9; Tue, 04 Feb 2025 08:16:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738657014; 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=I11JV0Y2ji8HpwT6xOGRWweEtIaCN0iUaqAq6IynMcM=; b=RY7+DIZLtqQBejK+mxgIgtqb7KMPNOG5RPOpA//ObGTofQdHjrrqqVv0kwrHxYo34t3uU6 1W2fsxsqmCDk1ODFBVSSFo0RPeiJOOkz6Jm0XtqrPS/aRcMCLntOY/w1cUdnEs6x7+4Qrj /soG+YoxVlE2gb+doYJVghr7Y/LrXuzfXY3Df855gHTdUrHozvn6uSSR2/J79kl8VKy7RL /QyY0nHL0HHQo+9daIGdV9NyJVWiywrA8Q5t5XZc6Azztud0MXk3LT/AroJeGdxFL8cs4d Jr51ORnzlxN2GCFxcTkevJvS7vwWcx7Jsjf3t0nYyBAxJFsNGn7wzp0c6TZyeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738657014; 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=I11JV0Y2ji8HpwT6xOGRWweEtIaCN0iUaqAq6IynMcM=; b=IUi8Qqqohg08fpzkRqCAdO6t6tvLpxfC2ZO3OANfeow08m8STLhxA8itmkezXR6KiOWqeO DLpn8KYkIpA7VFY3yjqQsneo+LMojplUF9B7wrllIpzsjgBR5th72J9ASfV4LvsoXUQWI0 xnXiykhyFI7A8k/XMeME0seROs+wuj96rvfQF5pnL8Nrd196g/4eXrZ4ENvYDxu4p1QHwE ESqCkXhyKr5THDuzG7cCpDO/zu6y0NeG0NvpfGAOCDZCHCQQH19SSuurQudihAOmYG8JIO 8Ugss/gj4fbk57CF4iOWpITd6/gA+xogqDrAXx5F+DbdHmmaAux5na/GrA9t8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738657014; a=rsa-sha256; cv=none; b=xACSL8EE+VEUV6Qnn3QGAWBlK7Xig+Su834WM5C0b8ztgp1kCkY8NLyZWU2kNw0vK61CMp qxoaJmRf14Lod1iHegpMCpZL7qdFMrtqb+RtR6TBhhmxcjXuEG7YUfWLGRbyOABh94Kyn2 Ipa2dq1izYaq2X5VLC4oGxaljWpNSIyaOzmMdceoT1E0HfvWUDuXU7lk6/2yzYtt8GXEHX aPL3oboACYzUcsChMG72wmOozBitFu9Zv7U3Us8gS0BhG/UHdQnhPAwUtbXQ/WRq0476Ly LEwc8HxU9aajiAOc2dGQqh0VoBp31c+tEl0fI7iLVmBe7lhv2IyY68l37h4aig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4YnGRn6FvCz1CqF; Tue, 04 Feb 2025 08:16:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5148GrKM075453; Tue, 4 Feb 2025 08:16:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5148Grx7075450; Tue, 4 Feb 2025 08:16:53 GMT (envelope-from git) Date: Tue, 4 Feb 2025 08:16:53 GMT Message-Id: <202502040816.5148Grx7075450@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lorenzo Salvadore Subject: git: 07afa7646b38 - main - lang/gcc15-devel: Fix segfaults for static binaries List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 07afa7646b3889d74a77e1f0206b350404baca4a Auto-Submitted: auto-generated The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/ports/commit/?id=07afa7646b3889d74a77e1f0206b350404baca4a commit 07afa7646b3889d74a77e1f0206b350404baca4a Author: Dimitry Andric AuthorDate: 2025-02-03 16:01:00 +0000 Commit: Lorenzo Salvadore CommitDate: 2025-02-04 08:16:35 +0000 lang/gcc15-devel: Fix segfaults for static binaries Fix segmentation faults caused by -static flag into compiled binaries. Email thread: https://lists.freebsd.org/archives/freebsd-hackers/2025-January/004236.html Upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118685 PR: 284441 Reported by: kargl --- lang/gcc15-devel/Makefile | 1 + lang/gcc15-devel/files/patch-libgcc-config.host | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/lang/gcc15-devel/Makefile b/lang/gcc15-devel/Makefile index b96f65b92846..3d2bce462756 100644 --- a/lang/gcc15-devel/Makefile +++ b/lang/gcc15-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= gcc PORTVERSION= 15.0.1.s20250126 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= GCC/snapshots/${DIST_VERSION} PKGNAMESUFFIX= ${SUFFIX}-devel diff --git a/lang/gcc15-devel/files/patch-libgcc-config.host b/lang/gcc15-devel/files/patch-libgcc-config.host new file mode 100644 index 000000000000..c371f0d1e40b --- /dev/null +++ b/lang/gcc15-devel/files/patch-libgcc-config.host @@ -0,0 +1,11 @@ +--- libgcc/config.host.orig 2025-01-30 12:31:26.479569000 -0800 ++++ libgcc/config.host 2025-01-30 12:32:03.732682000 -0800 +@@ -286,7 +286,7 @@ + # machine-specific sections may refine and add to this + # configuration. + tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver" +- extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" ++ extra_parts="crtbegin.o crtend.o crtbeginS.o crtbeginT.o crtendS.o" + case ${target_thread_file} in + posix) + tmake_file="${tmake_file} t-freebsd-thread"