From nobody Thu Nov 25 23:53:15 2021 X-Original-To: freebsd-arm@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 069D418BCB21 for ; Thu, 25 Nov 2021 23:53:19 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0ZSt5kJZz4Tb9 for ; Thu, 25 Nov 2021 23:53:18 +0000 (UTC) (envelope-from greg@unrelenting.technology) Content-Type: multipart/alternative; boundary=Apple-Mail-38E0BB4A-7464-4E60-B52E-831514788D40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unrelenting.technology; s=key1; t=1637884396; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fi8O8zHyyYdIfKvZ7NmvtLRyKql812rfRi3HImD5hvc=; b=YTqNurg2ewxRk5AHb5ehuXpUTXkvVzbTqIsH2ZN76pqq+NG/Ede4/CIY6cpaKe7dEML7By 71YNoZTWaIT35VbgluxLebWb/SnxtjBoM6Wm9orylux7zdnoMRW20EKGJ0bOglKz7UWgSC QkruYJ7wKi7WbvnN/1FbOBPyErvoc1pMLN+32dHGPWMRNHnWcOzuMVK5fSWFlX2iJnQkoX su2KwKZJvgopc/xumhOAfakt5w4FTvxlfOoLamra7m2cVbhOz+otzE1iPsltYFiNEVq1/r 7q7uPzPpbZkb7jD2T5NxtuGj2uRTNp9B47q9qTkqJC/Eq1NB7ASe3uYq5ZABFw== Content-Transfer-Encoding: 7bit X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Subject: Re: world linker error "can't create dynamic relocation R_AARCH64_LDST64_ABS_LO12_NC against symbol: __stderrp in readonly segment" Date: Fri, 26 Nov 2021 02:53:15 +0300 Message-Id: <5B9D4DF1-32FE-4918-9A8F-DF528E88BD05@unrelenting.technology> References: Cc: freebsd-arm@freebsd.org In-Reply-To: To: "Bjoern A. Zeeb" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: greg@unrelenting.technology X-Rspamd-Queue-Id: 4J0ZSt5kJZz4Tb9 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: greg@unrelenting.technology From: Greg V via freebsd-arm X-Original-From: Greg V X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail-38E0BB4A-7464-4E60-B52E-831514788D40 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On 25 Nov 2021, at 04:38, Bjoern A. Zeeb w= rote: >=20 > =EF=BB=BFHi, >=20 > I am trying to update one machine (also across the LLVM update) and I get t= he below error. > Anyone any ideas? >=20 >=20 > ld: error: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against sy= mbol __stderrp; recompile with -fPIC >>>> defined in base14-251054.3ede04c78c7c726ed79a39d22c65a58d0ecc5d00/arm64= .aarch64/tmp/lib/libc.so.7 >>>> referenced by assert.c >>>> assert.o:(libspl_assertf) in archive base14-251054.3ede04c= 78c7c726ed79a39d22c65a58d0ecc5d00/arm64.aarch64/tmp/usr/lib/libspl.a That would be https://reviews.freebsd.org/D32521#739094 =E2=80=93 this was f= ixed in the final version of the patch that actually was committed though. And I=E2=80=99ve just checked that it all builds on aarch64 too. Works for m= e, and presumably for anyone else building world in the last 10 days or so. S= o that=E2=80=99s weird. Maybe some leftover /usr/obj state somehow causing i= ssues or something?=