Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2024 14:23:46 +0100
From:      Harald Weis <hawei@free.fr>
To:        Mario Marietto <marietto2008@gmail.com>, Jamie Landeg-Jones <jamie@catflap.org>
Cc:        wojtek@puchar.net, freebsd-hackers@freebsd.org,  freebsd-questions@freebsd.org
Subject:   Re: set : illegal option -o pipefail error while trying to upgrade pkg.
Message-ID:  <etPan.65bb9b79.623a8cea.2a10@free.fr>
In-Reply-To: <CA%2B1FSigvo-QG6BMqYLYHpbn7jjaSkWB5tQsqF9nAJKVLKCkVGA@mail.gmail.com>
References:  <CA%2B1FSigvo-QG6BMqYLYHpbn7jjaSkWB5tQsqF9nAJKVLKCkVGA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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=40c=
atflap.org (mailto:jamie=40catflap.org)> wrote:
> > Mario Marietto <marietto2008=40gmail.com (mailto: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 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

<html><head></head><body>Please unsubscribe me<br> <br><div  class=3D=22g=
mail=5Fsignature=22><div>--&nbsp;<br>Harald Weis</div></div> <p class=3D=22=
gmail=5Fquote=22 style=3D=22color:=23000;=22>Le 1 f=C3=A9vrier 2024 =C3=A0=
 13:07:49, Mario Marietto (<a href=3D=22mailto:marietto2008=40gmail.com=22=
>marietto2008=40gmail.com</a>) a =C3=A9crit:</p> <blockquote type=3D=22ci=
te=22 class=3D=22gmail=5Fquote=22><span><div><div></div><div>





<div dir=3D=22ltr=22>
<div>Hello&nbsp;Jamie,</div>
<div><br></div>
<div>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 :</div>
<div><br></div>
<div>Invoked as: ./configure --prefix=3D/usr/local<br>
Tclsh: /usr/ports/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0<br>
=46ailed: cc -O2 -pipe -Wno-error -fstack-protector-strong
-fno-strict-aliasing -c conftest=5F=5F.c -o conftest=5F=5F.o<br>
cc: error: unknown argument: '-fstack-protector-strong'<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
The failed code was:<br>
=23include &lt;stdlib.h&gt;<br>
int main(void) =7B<br>
<br>
return 0;<br>
=7D<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div>
</div>
<br>
<div class=3D=22gmail=5Fquote=22>
<div dir=3D=22ltr=22 class=3D=22gmail=5Fattr=22>On Thu, =46eb 1, 2024 at =
12:42=E2=80=AFPM
Jamie Landeg-Jones &lt;<a href=3D=22mailto:jamie=40catflap.org=22 target=3D=
=22=5Fblank=22>jamie=40catflap.org</a>&gt; wrote:<br></div>
<blockquote class=3D=22gmail=5Fquote=22 style=3D=22margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=22>
Mario Marietto &lt;<a href=3D=22mailto:marietto2008=40gmail.com=22 target=
=3D=22=5Fblank=22>marietto2008=40gmail.com</a>&gt; wrote:<br>
<br>
&gt; Can you tell me where should be stored the references to
pipefail =3F Maybe I<br>
&gt; will try to remove them manually. Maybe your command does not
work out of<br>
&gt; the box.<br>
<br>
I juat tested it on an old 11.1 box and it worked. The various
files are the<br>
ones listed in the command, under /usr/ports/Mk/Scripts - there are
about 22<br>
that contain mentions of pipefail, though not all will be relevent
to your<br>
particilar cases.<br>
<br>
Yes, you can manually just delete the =22set +o pipefail=22 and =22set -o=

pipefail=22<br>
commands as you find them, not forgetting the caveat mentioned in
the<br>
previous mail that you may miss some errors that may occur during
building.<br></blockquote>
</div>
<br clear=3D=22all=22>
<br>
<span class=3D=22gmail=5Fsignature=5Fprefix=22>--</span><br>
<div dir=3D=22ltr=22 class=3D=22gmail=5Fsignature=22>Mario.<br></div>


</div></div></span></blockquote></body></html>
--65bb9b79_66ac593_2a10--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?etPan.65bb9b79.623a8cea.2a10>