From nobody Tue Feb 21 09:54:07 2023 X-Original-To: freebsd-ports@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 4PLZPt6RXDz3s6jD for ; Tue, 21 Feb 2023 09:54:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLZPt5synz3vHT; Tue, 21 Feb 2023 09:54:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676973266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jMn65qwSiyvw/kZoXxpzLxyRJWXEz52CwyjvQFIw6ss=; b=u9ejNZnUZFgvjm2JAMAvoyMuN1z9GIkw0DowMCZy3SrcfBbJ6YKW+hiWL+yeeZ7xbTxjW5 er/ncrCyWyhvSqGH84OqSFy+iW551tlVvV5RdMUhNKhpjFxsoOHDtF05S2r1J9D+8FBzi1 rMcNkRKqqkCV0+6vMEE/tmsoy+Fba2cFYO+2NwInO6AqC/vnHS/KAhkLf8mz2zJX4mzOid 7YZ9i1vMIfKmKujhyOjuuPKZN9z/CDrphP+CyTQA53utSJPUJc+r41/MggHduYI+PVJAQR SbvfYd/PM3MfT6gb/TEE7L3bB2ZVRX9I1i/jSicrVy20Bbz/jIegfwjhbdz87g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676973266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jMn65qwSiyvw/kZoXxpzLxyRJWXEz52CwyjvQFIw6ss=; b=tpRAGjXR0BxoZDauJJvUw4szNmzKIbaTVqRz1o5xd7r/GrGbSaxtbsopN8MjDAsTqd88Ad Ql45Zwzo4t4P9gNfIQ/Pw/Z6joSm6Uu3yCreyxFnPH+ZyDbqG7nM3e2ArGdDgutDtP+aTh yAEp6GtlFCQGHZvAHraFYdREASAVSjsD3AxDBp9wGT6BvbrBCk3wkplyiBeeqlALai2Fc6 myIUhWX2zx+3Tco6WlNYgoM9gczx6ml19QrkJhxGbi1xhNY7K3a/ZS91ZefvKYoVIXmSk0 /EuuXVfgZMlpCEK1FhsT7M8DHmx/oZqd9ogDVa9X5L0c0lHOpZm1uoa1+YDjtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676973266; a=rsa-sha256; cv=none; b=WlbqOQwxpJ0EwIZYpJ+xk4gj2bYhye32lL2e73BK0T01UiTvC9h01be/FNHbyvuwI3XmWI ASXGyHhAlXlfxxvyudFr3Q0xKt+r+Rx6ttDVs/JEoKsqiqYIGhA4c9S/iLUz4Z/crb/Scr uqdz57AA3XDjwtfNaNr50h/tJnxl7eldyHdHe21B+5EPTonUBW0leeYUEeeyzuYzIwGB5l O1bYuk5MT4M/WLa2EdLB5VHkrvLrJAWHMcSgI74v7kG42wqj4s8SwFkmyvXgUSxzJXJh3a KcJG7xVVcRpDCxt+ElkxsSgRsyigHta93f2IqnbcH1M0LyJrwv9i1KuidYEy/Q== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PLZPt4CMdzT4J; Tue, 21 Feb 2023 09:54:26 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 24BEC43BC1; Tue, 21 Feb 2023 10:54:24 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_364396A8-95A5-4DC8-9AEB-DD6A2A6BAD52"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: Internal linker error from pkg-fallout on 14.0-CURRENT on i386 From: Dimitry Andric In-Reply-To: <350fd299-ccc3-ebb2-9697-8685e2034211@gmail.com> Date: Tue, 21 Feb 2023 10:54:07 +0100 Cc: "freebsd-ports@freebsd.org" Message-Id: <2357DA2B-2E5A-4496-9142-30373094E9D3@FreeBSD.org> References: <350fd299-ccc3-ebb2-9697-8685e2034211@gmail.com> To: Kevin Zheng X-Mailer: Apple Mail (2.3731.400.51.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_364396A8-95A5-4DC8-9AEB-DD6A2A6BAD52 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Feb 2023, at 20:33, Kevin Zheng wrote: >=20 > At least two of my ports recently started to fail to build on = 14.0-CURRENT on i386 as reported by pkg-fallout with messages like: >=20 > internal linker error: wrote incorrect addend value 0x5000406A instead = of 0x0 for dynamic relocation R_386_32 at offset 0x410DD3 against symbol = __gxx_personality_v0 >=20 > ld: error: clientgame.o:(function _GLOBAL__sub_I_clientgame.cpp: = .text+0x7543): internal linker error: wrote incorrect addend value = 0xCC48300 instead of 0x0 for dynamic relocation R_386_32 at offset = 0x4FDED3 against symbol __gxx_personality_v0 >=20 > I searched Bugzilla for "internal linker error" but was unable to find = any existing reports. Is this a known issue and I'm just bad at = searching, or is this something I should report (and where?) Bugzilla search is just very bad, so it's not you. :-) This typically turns up for ports on i386 that use -z notext in their linker flags, to work around text relocation issues. See also and . As of lld 15 the linker checks dynamic relocations more strictly, and unfortunately the maintainers turned these "incorrect addend" messages into internal errors instead of warnings (at least when lld is compiled with assertions enabled). Meanwhile, I have been informed that these diagnostics are actually quite harmless, and can be ignored. To suppress them, the linker flags should include --no-check-dynamic-relocations. Similar to audio/openal-soft, this should look something like: .include .if ${COMPILER_TYPE} =3D=3D "clang" && ${COMPILER_VERSION} >=3D 150 LDFLAGS_i386+=3D -Wl,--no-check-dynamic-relocations .endif # ... other stuff ... .include -Dimitry --Apple-Mail=_364396A8-95A5-4DC8-9AEB-DD6A2A6BAD52 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCY/SUvwAKCRCwXqMKLiCW o/vUAKDhgQISrYsnSt8AWM4wyM3QNcOO8QCfSBKVhyOEuoU0DUZ5M5P4N31GMrU= =pqaW -----END PGP SIGNATURE----- --Apple-Mail=_364396A8-95A5-4DC8-9AEB-DD6A2A6BAD52--