From nobody Thu Feb 1 13:23:46 2024 X-Original-To: freebsd-questions@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 4TQfkn5sjzz58dws; Thu, 1 Feb 2024 13:24:17 +0000 (UTC) (envelope-from hawei@free.fr) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [IPv6:2a01:e0c:1:1599::15]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4TQfkn3bWqz4YyZ; Thu, 1 Feb 2024 13:24:17 +0000 (UTC) (envelope-from hawei@free.fr) Authentication-Results: mx1.freebsd.org; none Received: from localhost.mail (unknown [IPv6:2a02:8428:32a3:9701:bc22:80bb:ca90:d900]) (Authenticated sender: hawei@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 9B325780375; Thu, 1 Feb 2024 14:24:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1706793854; bh=dY+s2pSS61lAlOUPxtL8y5whpg8dNzj+bMR/bwTmHRc=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=k5H/9AunbRvywn/ix5PrHxhbDlSesszztcYF/TIvICMcsnl9w4iyLxC71frIr3VF4 vSy/NoRD5Lp4Z96ZRhcYWS9OrA9i0dw2VkA1MuhHgH3RSE8Utu81IaBsIEcSWXtybj 5d0jXW4zBeZrGU4LEZ6eo4djODBMxPYIV1E9FlaIlOTQJv84Sr8zIwc759xcrHxEvy P+gbEu7IiegIfrAeDnVzq34qRXX493ovj8cvo3z22MfNht3DH9sdHIGxwLk4vSl49W Pa+67DoU/lycMGVZFTLuOJ1qrjCrX98BemkHAnAkVnL0qKMXM4KBGHgkRZxPUev8Zt eJsVkgPTnOiyQ== Date: Thu, 1 Feb 2024 14:23:46 +0100 From: Harald Weis To: Mario Marietto , Jamie Landeg-Jones Cc: wojtek@puchar.net, freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Message-ID: In-Reply-To: References: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="65bb9b79_66ac593_2a10" X-Rspamd-Queue-Id: 4TQfkn3bWqz4YyZ X-Spamd-Bar: ---- 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:12322, ipnet:2a01:e00::/26, country:FR] --65bb9b79_66ac593_2a10 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Please unsubscribe me -- Harald Weis Le 1 f=C3=A9vrier 2024 =C3=A0 13:07:49, Mario Marietto (marietto2008=40gm= ail.com (mailto:marietto2008=40gmail.com)) a =C3=A9crit: > Hello Jamie, > > thanks. I don't know if you read my last email,but I have cut the probl= em at the root,by using the old version of the Mk Scripts,to be sure that= it didn't have the pipefail parameter. I did like this because your scri= pt probably didn't remove some of those references and I got the same err= or. Unfortunately,when I tried to upgrade the port =22pkg=22 to 1.20.9 I = got a compilation error. I'm not able to upgrade the whole system until I= 'm not able to upgrade it. The error that I need to fix is : > > Invoked as: ./configure --prefix=3D/usr/local > Tclsh: /usr/ports/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0 > =46ailed: cc -O2 -pipe -Wno-error -fstack-protector-strong -fno-strict-= aliasing -c conftest=5F=5F.c -o conftest=5F=5F.o > cc: error: unknown argument: '-fstack-protector-strong' > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > The failed code was: > =23include > int main(void) =7B > > return 0; > =7D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > On Thu, =46eb 1, 2024 at 12:42=E2=80=AFPM Jamie Landeg-Jones wrote: > > Mario Marietto wrote: > > > > > Can you tell me where should be stored the references to pipefail =3F= Maybe I > > > will try to remove them manually. Maybe your command does not work = out of > > > the box. > > > > I juat tested it on an old 11.1 box and it worked. The various files = are the > > ones listed in the command, under /usr/ports/Mk/Scripts - there are a= bout 22 > > that contain mentions of pipefail, though not all will be relevent to= your > > particilar cases. > > > > Yes, you can manually just delete the =22set +o pipefail=22 and =22se= t -o pipefail=22 > > commands as you find them, not forgetting the caveat mentioned in the= > > previous mail that you may miss some errors that may occur during bui= lding. > > > -- > Mario. --65bb9b79_66ac593_2a10 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Please unsubscribe me

-- 
Harald Weis

Le 1 f=C3=A9vrier 2024 =C3=A0= 13:07:49, Mario Marietto (marietto2008=40gmail.com) a =C3=A9crit:

Hello Jamie,

thanks. I don't know if you read my last email,but I have cut the problem at the root,by using the old version of the Mk Scripts,to be sure that it didn't have the pipefail parameter. I did like this because your script probably didn't remove some of those references and I got the same error. Unfortunately,when I tried to upgrade the port =22pkg=22 to 1.20.9 I got a compilation error. I'm not able to upgrade the whole system until I'm not able to upgrade it. The error that I need to fix is :

Invoked as: ./configure --prefix=3D/usr/local
Tclsh: /usr/ports/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0
=46ailed: cc -O2 -pipe -Wno-error -fstack-protector-strong -fno-strict-aliasing -c conftest=5F=5F.c -o conftest=5F=5F.o
cc: error: unknown argument: '-fstack-protector-strong'
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The failed code was:
=23include <stdlib.h>
int main(void) =7B

return 0;
=7D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On Thu, =46eb 1, 2024 at = 12:42=E2=80=AFPM Jamie Landeg-Jones <jamie=40catflap.org> wrote:
Mario Marietto <marietto2008=40gmail.com> wrote:

> Can you tell me where should be stored the references to pipefail =3F Maybe I
> will try to remove them manually. Maybe your command does not work out of
> the box.

I juat tested it on an old 11.1 box and it worked. The various files are the
ones listed in the command, under /usr/ports/Mk/Scripts - there are about 22
that contain mentions of pipefail, though not all will be relevent to your
particilar cases.

Yes, you can manually just delete the =22set +o pipefail=22 and =22set -o= pipefail=22
commands as you find them, not forgetting the caveat mentioned in the
previous mail that you may miss some errors that may occur during building.


--
Mario.
--65bb9b79_66ac593_2a10--