From nobody Fri Mar 20 19:21:11 2026 X-Original-To: dev-commits-src-all@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 4fcsqt6J14z6Vw1f for ; Fri, 20 Mar 2026 19:21:30 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fcsqt372Tz3hSZ for ; Fri, 20 Mar 2026 19:21:25 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-486b9675d36so17416085e9.0 for ; Fri, 20 Mar 2026 12:21:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774034484; x=1774639284; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VRSele/WFnM/DX/i6pNLQqJekXSoxZaWe1a8WifOfuw=; b=koHkNf19OJxsov22QnYXcpwLgQZi/8FLKi3vhYlgbjtKajAjh5mXeAtXVQx4287dS6 GIUeYYMOWAhxpdfJ0OBtt6GFdZyVjxSw658aDSaT5AMrjzquTTLdJQW8nP28hKSTszZM 8tDM4Jlt1CxZHf6QBouJywGHh5h5I9N6hLMVsFO6JYTzG7+lZogNNp+bGPWRnuzqc+Yc ixBur3CU5DItatmLEwgH68Qq9eXYop0gXJYiWdMpBOfyPiXOFr2lrMQLmhhmRhuBebHc 0DW+Xh6g25tRRISetgXQOvOoq8JcKpMoqleMaGcsjpEwc49wIsjMYu567cekLCUmI3GR x9mA== X-Forwarded-Encrypted: i=1; AJvYcCV/WKDNY2+pFYQmeUZk5YRvVhFcdtODbrNSmuRH14ir1kzbK6gB8nUVEet9plXw0IEisoN70ruh1t/j4jCWsdt8qdRP@freebsd.org X-Gm-Message-State: AOJu0YzOuYD9clw0ZQjjWKsnJyZ50Oq1WVViUUNY8srjUXK+xjwLJiDv skW7iH3+m5dTeHCcjnEzicBtrLpRz/uOBGA0brrTj8TYVsfr0uWAVV/oeoEIOMtrScDA6+SHO/I rtqYM X-Gm-Gg: ATEYQzzu+R6zk6BdP/jFp9jjhqFkwOdjPS0QhW8XZv+X1lZ/mjH+tBHM61C9lwtxSWA Jvy+IkRCmRqLaB/lCwlmSJ0u11UWgNaQ3zgT6nXUQEpFlp6k9yAxBf18xK654Hg9Zwttd9dAoRB NeD5+tdDB89zq1+NPDlkJnhY126dLftbhkJr9AM0iZmNOA4nqE4gwjYD+D2dQknJTB4D8zp4ZNJ gCTQSb0HRvZSNzIqgG8YPoHKOAtyQT/Cn2ft6LDT5rz4WhFuA38o+nIU4g82188Cx2be/5hd+FO Y0YTnOOu3UXx3wO9IoLTZaF6zoZOg3ypFChSEkv38fV+F4OcmtbyUsagrxUYOvARZ8GJRET2eLq rvvRXKRMbNH0m37ar8ATn7xzybJWrlyUNVJ5ve9NMScv7Vz9H2D2xnJeBCzOrCa8gn9PHZNBUag eVLaejuGA7g+LdLBIu0T1S5uV/JKtHUQiIZHCMgPHj1zf1ovdCspAzsT7ASR8HTUk9 X-Received: by 2002:a05:600c:c167:b0:486:fc5f:1ab9 with SMTP id 5b1f17b1804b1-486fedcbeb7mr63266765e9.14.1774034483714; Fri, 20 Mar 2026 12:21:23 -0700 (PDT) Received: from smtpclient.apple (nat-184-7.net.cam.ac.uk. [131.111.184.7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b64714e2esm9086874f8f.32.2026.03.20.12.21.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Mar 2026 12:21:22 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: git: 14b9955e57cc - main - libcrypto: compile all PIC objects with -DOPENSSL_PIC From: Jessica Clarke In-Reply-To: Date: Fri, 20 Mar 2026 19:21:11 +0000 Cc: A FreeBSD User , Philip Paeps , Enji Cooper , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <6E6DB2FA-3E78-40B6-BFDB-2BDD240C5CED@freebsd.org> References: <69bc9a33.3bd51.5811996c@gitrepo.freebsd.org> <61743F2C-2561-4BAC-81F2-02B8A85B8755@freebsd.org> <20260320201441.333c83c0@thor.sb211.local> To: Shawn Webb X-Mailer: Apple Mail (2.3864.400.21) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4fcsqt372Tz3hSZ X-Spamd-Bar: ---- On 20 Mar 2026, at 19:17, Shawn Webb wrote: > On Fri, Mar 20, 2026 at 08:14:14PM +0100, A FreeBSD User wrote: >> Am Tage des Herren Fri, 20 Mar 2026 10:27:47 +0800 >> Philip Paeps schrieb: >>=20 >>> On 2026-03-20 08:52:03 (+0800), Enji Cooper wrote: >>>=20 >>>> The branch main has been updated by ngie: >>>>=20 >>>> URL:=20 >>>> = https://cgit.FreeBSD.org/src/commit/?id=3D14b9955e57cc28b61e785165b9effcbe= 620edb46 >>>>=20 >>>> commit 14b9955e57cc28b61e785165b9effcbe620edb46 >>>> Author: Enji Cooper >>>> AuthorDate: 2026-03-19 23:56:41 +0000 >>>> Commit: Enji Cooper >>>> CommitDate: 2026-03-20 00:51:51 +0000 >>>>=20 >>>> libcrypto: compile all PIC objects with -DOPENSSL_PIC >>>>=20 >>>> This change modifies the libcrypto PIC objects to always compile=20= >>>> with >>>> `-DOPENSSL_PIC` to restore parity with the upstream build = process.=20 >>>> This >>>> ensures that `-DOPENSSL_PIC` is used whenever building the=20 >>>> auxiliary >>>> shared objects. In this case, just the legacy provider (we no=20 >>>> longer >>>> distribute the fips provider). >>>>=20 >>>> MFC after: 2 weeks >>>> Differential Revision: https://reviews.freebsd.org/D44896 =20 >>>=20 >>> This one seems to break the build for me: >>>=20 >>> main philip@flatulus:~/freebsd/src % time make -j 16 buildworld = |grep=20 >>> error: >>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol=20 >>> '__stack_chk_guard'; recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol=20 >>> '__stack_chk_guard'; recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol=20 >>> '__stack_chk_guard'; recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol=20 >>> '__stack_chk_guard'; recompile with -fPIC >>> ld: error: relocation R_X86_64_PC32 cannot be used against symbol=20 >>> '__stack_chk_guard'; recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32S cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32S cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: relocation R_X86_64_32 cannot be used against local = symbol;=20 >>> recompile with -fPIC >>> ld: error: too many errors emitted, stopping now (use = --error-limit=3D0 to=20 >>> see all errors) >>> cc: error: linker command failed with exit code 1 (use -v to see=20 >>> invocation) >>> make -j 16 buildworld 63.51s user 16.69s system 593% cpu 13.524 = total >>> grep error: 0.01s user 0.01s system 0% cpu 13.524 total >>>=20 >>> Hm... as I type this I wonder if it's just META_MODE weirdness... >>>=20 >>> Philip >>>=20 >>=20 >> Same here >=20 > Appending to CFLAGS rather than PICFLAG resolves the issue. Commit in > HardenedBSD coming soon. Yeah that=E2=80=99ll stop the PICFLAG?=3D-fpic from doing anything. CFLAGS is wrong though, you want SHARED_CFLAGS, I imagine. Jessica