Date: Thu, 1 Feb 2024 13:07:49 +0100 From: Mario Marietto <marietto2008@gmail.com> To: Jamie Landeg-Jones <jamie@catflap.org> Cc: wojtek@puchar.net, freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. Message-ID: <CA%2B1FSigvo-QG6BMqYLYHpbn7jjaSkWB5tQsqF9nAJKVLKCkVGA@mail.gmail.com> In-Reply-To: <202402011141.411Bfq9W057810@donotpassgo.dyslexicfish.net> References: <CA%2B1FSijXJUDtkmf0KKEtCJ_cFhg4Htc_a=q1BWt9mtGV1T7oLw@mail.gmail.com> <80d527f-df83-5657-6a2a-262156e08440@puchar.net> <CA%2B1FSihN7RpC9Wsh5pPnzX1dJHJgFQPsF=dRA6zQoJ5WiBdChQ@mail.gmail.com> <202401311216.40VCGZSo001051@donotpassgo.dyslexicfish.net> <CA%2B1FSiifR-oyq%2BF=uG-6Lu_meRGvbPSqoKBYeqa3VjBn-1JJmA@mail.gmail.com> <CA%2B1FSiiVgEBfuyKPT37c=4CA4e7sqy4kQ9D5DXue1yJ0Krsdkw@mail.gmail.com> <202402011141.411Bfq9W057810@donotpassgo.dyslexicfish.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000526765061050daf8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 "pkg" 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 Failed: cc -O2 -pipe -Wno-error -fstack-protector-strong -fno-strict-aliasing -c conftest__.c -o conftest__.o cc: error: unknown argument: '-fstack-protector-strong' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The failed code was: #include <stdlib.h> int main(void) { return 0; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On Thu, Feb 1, 2024 at 12:42=E2=80=AFPM Jamie Landeg-Jones <jamie@catflap.o= rg> wrote: > Mario Marietto <marietto2008@gmail.com> wrote: > > > Can you tell me where should be stored the references to pipefail ? > 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 you= r > particilar cases. > > Yes, you can manually just delete the "set +o pipefail" and "set -o > pipefail" > commands as you find them, not forgetting the caveat mentioned in the > previous mail that you may miss some errors that may occur during buildin= g. > --=20 Mario. --000000000000526765061050daf8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello=C2=A0Jamie,</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 probabl= y didn't remove some of those references and I got the same error. Unfo= rtunately,when I tried to upgrade the port "pkg" to 1.20.9 I got = a compilation error. I'm not able to upgrade the whole system until I&#= 39;m not able to upgrade it. The error that I need to fix is :</div><div><b= r></div><div>Invoked as: ./configure --prefix=3D/usr/local<br>Tclsh: /usr/p= orts/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0<br>Failed: cc -O2 -pipe -Wno-err= or -fstack-protector-strong -fno-strict-aliasing -c conftest__.c -o conftes= t__.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>#include &= lt;stdlib.h><br>int main(void) {<br><br>return 0;<br>}<br>=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D</div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Thu, Feb 1, 2024 at 12:42=E2=80=AFPM Jamie= Landeg-Jones <<a href=3D"mailto:jamie@catflap.org" target=3D"_blank">ja= mie@catflap.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">Mario Marietto <<a href=3D"mailto:marietto2008@gmail.com"= target=3D"_blank">marietto2008@gmail.com</a>> wrote:<br> <br> > Can you tell me where should be stored the references to pipefail ? Ma= ybe I<br> > will try to remove them manually. Maybe your command does not work out= of<br> > the box.<br> <br> I juat tested it on an old 11.1 box and it worked. The various files are th= e<br> ones listed in the command, under /usr/ports/Mk/Scripts - there are about 2= 2<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 "set +o pipefail" and "= ;set -o pipefail"<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"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --000000000000526765061050daf8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigvo-QG6BMqYLYHpbn7jjaSkWB5tQsqF9nAJKVLKCkVGA>