Date: Wed, 6 Dec 2023 14:53:36 +0100 (CET) From: Ronald Klop <ronald-lists@klop.ws> To: Ronald Klop <ronald-lists@klop.ws> Cc: Nuno Teixeira <eduardo@freebsd.org>, Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org Subject: Re: firefox broken on arm64 Message-ID: <772988313.1608.1701870816598@localhost> In-Reply-To: <370237048.1624.1701868863773@localhost> References: <9518dc38-e44b-42ae-bf87-6039ac278ac8@FreeBSD.org> <ddce2c12-c006-42d0-9441-306c89b91adb@FreeBSD.org> <ZWw-bSo4b1bKYxeF@int21h> <46c52d37-36ec-45fc-8098-1029996c717c@FreeBSD.org> <2097084863.1871.1701797963768@localhost> <CAFDf7ULFuDm7EsuS5crBRLQCM86VJOT%2BRVF=PDV7SqPKDd5MYw@mail.gmail.com> <122857628.2905.1701855132840@localhost> <CAFDf7UJO%2BSi57tA-g7e_Y7c6Ax=0y6xxh028KZ3RvLtmPfhUHw@mail.gmail.com> <370237048.1624.1701868863773@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_1607_871727069.1701870816518 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable BTW it also fails on the official pkg build servers. https://portsfallout.com/fallout?port=3Dwww%2Ffirefox%24&maintainer=3D&env= =3Darm64&category=3D&flavor=3D Which also has a PR open: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id= =3D275247 (opened by Jesper who is also in the cc of this mail-thread). Regards, Ronald. =20 Van: Ronald Klop <ronald-lists@klop.ws> Datum: woensdag, 6 december 2023 14:21 Aan: Nuno Teixeira <eduardo@freebsd.org> CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org Onderwerp: Re: firefox broken on arm64 >=20 >=20 > The only clue I see in the log is: > gmake[4]: Entering directory '/wrkdirs/usr/ports/www/firefox/work/.build/= mozglue/build' > mkdir -p '.deps/' > mozglue/build/dummy.o > /usr/local/bin/clang++15 -std=3Dgnu++17 -o dummy.o -c [...] /wrkdirs/usr/= ports/www/firefox/work/firefox-120.0.1/mozglue/build/dummy.cpp > In file included from Unified_cpp_mozglue_baseprofiler0.cpp:110: > In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1= /mozglue/baseprofiler/core/platform.cpp:2492: > /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/= core/platform-linux-android.cpp:125:69: error: expected ')' > aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11]; > ^ > /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/= core/platform-linux-android.cpp:125:41: note: to match this '(' > aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11]; > ^ > gmake[4]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build/m= ozglue/build' >=20 >=20 > But I have no experience in compiling Firefox on RPI4. And don't know why= this ')' is missing. Maybe just a little patch is needed. > Regards, > Ronald. >=20 > =20 > Van: Nuno Teixeira <eduardo@freebsd.org> > Datum: woensdag, 6 december 2023 13:18 > Aan: Ronald Klop <ronald-lists@klop.ws> > CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org > Onderwerp: Re: firefox broken on arm64 >>=20 >> Tested on rpi4, current 1500004: Fails to build >> =20 >> https://people.freebsd.org/~eduardo/logs/firefox-120.0.1%2C2.log >> =20 >> Any clues? >> =20 >> I remember compiling ok until about a month or so... >> =20 >> Ronald Klop <ronald-lists@klop.ws> escreveu no dia quarta, 6/12/2023 =C3= =A0(s) 09:32: >>>=20 >>> Yes, I was triggered to this issue because it is mentioned in the relea= se notes of 120.0.1. >>>=20 >>> https://www.mozilla.org/en-US/firefox/120.0.1/releasenotes/ >>>=20 >>> Regards, >>> Ronald. >>> =20 >>> Van: Nuno Teixeira <eduardo@freebsd.org> >>> Datum: dinsdag, 5 december 2023 21:43 >>> Aan: Ronald Klop <ronald-lists@klop.ws> >>> CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org >>> Onderwerp: Re: firefox broken on arm64 >>>>=20 >>>> Port is at 120.0.1 (rc1) and for what I understanded in mozilla PR, pa= tch will be included in 120.0.1 release. >>>> If I had the time I will apply patch and try it on rpi4. >>>> =20 >>>> Thanks >>>> =20 >>>> Ronald Klop <ronald-lists@klop.ws> escreveu no dia ter=C3=A7a, 5/12/20= 23 =C3=A0(s) 17:39: >>>>>=20 >>>>> Could it be that you are experiencing this issue? >>>>>=20 >>>>> Bug 1866025 - Firefox 120.0 segfaults at startup (Linux with 16KiB pa= ges) [1] >>>>>=20 >>>>> Regards, >>>>>=20 >>>>> Ronald. >>>>>=20 >>>>> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025 >>>>>=20 >>>>> =20 >>>>> Van: Jesper Schmitz Mouridsen <jsm@FreeBSD.org> >>>>> Datum: zondag, 3 december 2023 11:59 >>>>> Aan: freebsd-arm@freebsd.org >>>>> Onderwerp: Re: firefox broken on arm64 >>>>>>=20 >>>>>>=20 >>>>>> On 03.12.2023 09.38, void wrote: >>>>>> > On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouridsen= wrote: >>>>>> >> >>>>>> >> Just build firefox-esr-115.5.0_1,1 and firefox-116.0.3_1,2 the f= irst >> runs with aslr disabled, the latter signals 4. >>>>>> >> >>>>>> >> Any suggestions on what is going on are appreciated. >>>>>> > >>>>>> > What's the uname -aKU ? >>>>>>=20 >>>>>> FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n26= 5380-f9716eee8ab4: Fri Nov 10 09:12:14 UTC 2023 root@releng1.nyi.freebsd.or= g:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 1400097 1400097 >>>>>>=20 >>>>>> did you build from ports or poudriere? >>>>>> From ports. >>>>>>=20 >>>>>> If the >>>>>> > latter, what's the /etc/make.conf contain? >>>>>> > >>>>>> > Please post sysctl -a | grep aslr >>>>>> > >>>>>>=20 >>>>>> kern.elf32.aslr.shared_page: 0 >>>>>> kern.elf32.aslr.stack: 1 >>>>>> kern.elf32.aslr.honor_sbrk: 0 >>>>>> kern.elf32.aslr.pie_enable: 0 >>>>>> kern.elf32.aslr.enable: 0 >>>>>> kern.elf64.aslr.shared_page: 1 >>>>>> kern.elf64.aslr.stack: 1 >>>>>> kern.elf64.aslr.honor_sbrk: 0 >>>>>> kern.elf64.aslr.pie_enable: 1 >>>>>> kern.elf64.aslr.enable: 1 >>>>>> vm.aslr_restarts: 256 >>>>>>=20 >>>>>> I did the esr build to test the build setup, since also the pkg in t= he official pkg repo behaves the same i.e the one before 115.5 since 115.5 = did not hit the pkg repo yet, which works without aslr (set by proccontrol)= So unless 116 introduces something which requires sysctl changes for the b= uilding tool chain while building my test should be valid. >>>>>>=20 >>>>>> Thanks >>>>>>=20 >>>>>> /jsm >>>>>>=20 >>>>>> =20 >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>> =20 >>>>=20 >>>>=20 >>>> --=20 >>>> Nuno Teixeira >>>> FreeBSD Committer (ports) >>>=20 >>> =20 >>=20 >>=20 >> --=20 >> Nuno Teixeira >> FreeBSD Committer (ports) >=20 > =20 =20 ------=_Part_1607_871727069.1701870816518 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body>BTW it also fails on the official pkg build server= s.<br> <br> <a href=3D"https://portsfallout.com/fallout?port=3Dwww%2Ffirefox%24&mai= ntainer=3D&env=3Darm64&category=3D&flavor=3D">https://portsfall= out.com/fallout?port=3Dwww%2Ffirefox%24&maintainer=3D&env=3Darm64&a= mp;category=3D&flavor=3D</a><br> <br> Which also has a PR open: <a href=3D"https://bugs.freebsd.org/bugzilla/show= _bug.cgi?id=3D275247">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D2= 75247</a> (opened by Jesper who is also in the cc of this mail-thread).<br> <br> Regards,<br> Ronald.<br> <br> <p><strong>Van:</strong> Ronald Klop <ronald-lists@klop.ws><br> <strong>Datum:</strong> woensdag, 6 december 2023 14:21<br> <strong>Aan:</strong> Nuno Teixeira <eduardo@freebsd.org><br> <strong>CC:</strong> Jesper Schmitz Mouridsen <jsm@freebsd.org>, free= bsd-arm@freebsd.org<br> <strong>Onderwerp:</strong> Re: firefox broken on arm64</p> <blockquote style=3D"padding-right: 0px; padding-left: 5px; margin-left: 5p= x; border-left: #000000 2px solid; margin-right: 0px"> <div class=3D"MessageRFC822Viewer" id=3D"P"> <div class=3D"MultipartAlternativeViewer"> <div class=3D"TextHTMLViewer" id=3D"P.P.P"><br> <br> The only clue I see in the log is: <pre style=3D";white-space: pre-wrap;white-space: pre-wrap;">gmake[4]: Ente= ring directory '/wrkdirs/usr/ports/www/firefox/work/.build/mozglue/build' mkdir -p '.deps/' mozglue/build/dummy.o /usr/local/bin/clang++15 -std=3Dgnu++17 -o dummy.o -c [...] /wrkdirs/usr/po= rts/www/firefox/work/firefox-120.0.1/mozglue/build/dummy.cpp In file included from Unified_cpp_mozglue_baseprofiler0.cpp:110: In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/m= ozglue/baseprofiler/core/platform.cpp:2492: /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/co= re/platform-linux-android.cpp:125:69: error: expected ')' aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11= ]; ^ /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/co= re/platform-linux-android.cpp:125:41: note: to match this '(' aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11= ]; ^ gmake[4]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build/moz= glue/build' But I have no experience in compiling Firefox on RPI4. And don't know why t= his ')' is missing. Maybe just a little patch is needed. </pre> Regards,<br> Ronald.<br> <br> <p><strong>Van:</strong> Nuno Teixeira <eduardo@freebsd.org><br> <strong>Datum:</strong> woensdag, 6 december 2023 13:18<br> <strong>Aan:</strong> Ronald Klop <ronald-lists@klop.ws><br> <strong>CC:</strong> Jesper Schmitz Mouridsen <jsm@freebsd.org>, free= bsd-arm@freebsd.org<br> <strong>Onderwerp:</strong> Re: firefox broken on arm64</p> <blockquote style=3D"padding-right: 0px; padding-left: 5px; margin-left: 5p= x; border-left: #000000 2px solid; margin-right: 0px"> <div class=3D"MessageRFC822Viewer" id=3D"P"> <div class=3D"MultipartAlternativeViewer"> <div class=3D"TextHTMLViewer" id=3D"P.P.P"> <div> <div>Tested on rpi4, current 1500004: Fails to build</div> <div> </div> <div><a href=3D"https://people.freebsd.org/~eduardo/logs/firefox-120.0.1%2C= 2.log">https://people.freebsd.org/~eduardo/logs/firefox-120.0.1%2C2.log</a>= </div> <div> </div> <div>Any clues?</div> <div> </div> <div>I remember compiling ok until about a month or so...</div> </div> <div class=3D"gmail_quote"> <div class=3D"gmail_attr">Ronald Klop <<a href=3D"mailto:ronald-lists@kl= op.ws">ronald-lists@klop.ws</a>> escreveu no dia quarta, 6/12/2023 =C3= =A0(s) 09:32:</div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"> <div>Yes, I was triggered to this issue because it is mentioned in the rele= ase notes of 120.0.1.<br> <br> <a href=3D"https://www.mozilla.org/en-US/firefox/120.0.1/releasenotes/" tar= get=3D"_blank">https://www.mozilla.org/en-US/firefox/120.0.1/releasenotes/<= /a><br> <br> Regards,<br> Ronald.<br> <p><strong>Van:</strong> Nuno Teixeira <<a href=3D"mailto:eduardo@freebs= d.org" target=3D"_blank">eduardo@freebsd.org</a>><br> <strong>Datum:</strong> dinsdag, 5 december 2023 21:43<br> <strong>Aan:</strong> Ronald Klop <<a href=3D"mailto:ronald-lists@klop.w= s" target=3D"_blank">ronald-lists@klop.ws</a>><br> <strong>CC:</strong> Jesper Schmitz Mouridsen <<a href=3D"mailto:jsm@fre= ebsd.org" target=3D"_blank">jsm@freebsd.org</a>>, <a href=3D"mailto:free= bsd-arm@freebsd.org" target=3D"_blank">freebsd-arm@freebsd.org</a><br> <strong>Onderwerp:</strong> Re: firefox broken on arm64</p> <blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor= der-left:2px solid rgb(0,0,0);margin-right:0px"> <div id=3D"m_709679747659634767P"> <div> <div id=3D"m_709679747659634767P.P.P"> <div> <div>Port is at 120.0.1 (rc1) and for what I understanded in mozilla PR, pa= tch will be included in 120.0.1 release.</div> <div>If I had the time I will apply patch and try it on rpi4.</div> <div> </div> <div>Thanks</div> </div> <div class=3D"gmail_quote"> <div class=3D"gmail_attr">Ronald Klop <<a href=3D"mailto:ronald-lists@kl= op.ws" target=3D"_blank">ronald-lists@klop.ws</a>> escreveu no dia ter= =C3=A7a, 5/12/2023 =C3=A0(s) 17:39:</div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex"> <div>Could it be that you are experiencing this issue?<br> <br> <a href=3D"https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025" target= =3D"_blank">Bug 1866025 - Firefox 120.0 segfaults at startup (Linux with 16= KiB pages)</a> [1]<br> <br> Regards,<br> <br> Ronald.<br> <br> [1] <a href=3D"https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025" targ= et=3D"_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025</a><br= > <br> <p><strong>Van:</strong> Jesper Schmitz Mouridsen <jsm@FreeBSD.org><b= r> <strong>Datum:</strong> zondag, 3 december 2023 11:59<br> <strong>Aan:</strong> <a href=3D"mailto:freebsd-arm@freebsd.org" target=3D"= _blank">freebsd-arm@freebsd.org</a><br> <strong>Onderwerp:</strong> Re: firefox broken on arm64</p> <blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor= der-left:2px solid rgb(0,0,0);margin-right:0px"> <div id=3D"m_709679747659634767m_-2012501290602738597P"> <div id=3D"m_709679747659634767m_-2012501290602738597P.P"><br> <br> On 03.12.2023 09.38, void wrote:<br> > On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouridsen wro= te:<br> >><br> >> Just build firefox-esr-115.5.0_1,1 and firefox-116.0.3_1,2 t= he first >> runs with aslr disabled, the latter signals 4.<br> >><br> >> Any suggestions on what is going on are appreciated.<br> ><br> > What's the uname -aKU ?<br> <br> FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9= 716eee8ab4: Fri Nov 10 09:12:14 UTC 2023 root@releng1.nyi.freebsd.org:/usr/= obj/usr/src/arm64.aarch64/sys/GENERIC arm64 1400097 1400097<br> <br> did you build from ports or poudriere?<br> From ports.<br> <br> If the<br> > latter, what's the /etc/make.conf contain?<br> ><br> > Please post sysctl -a | grep aslr<br> ><br> <br> kern.elf32.aslr.shared_page: 0<br> kern.elf32.aslr.stack: 1<br> kern.elf32.aslr.honor_sbrk: 0<br> kern.elf32.aslr.pie_enable: 0<br> kern.elf32.aslr.enable: 0<br> kern.elf64.aslr.shared_page: 1<br> kern.elf64.aslr.stack: 1<br> kern.elf64.aslr.honor_sbrk: 0<br> kern.elf64.aslr.pie_enable: 1<br> kern.elf64.aslr.enable: 1<br> vm.aslr_restarts: 256<br> <br> I did the esr build to test the build setup, since also the pkg in the offi= cial pkg repo behaves the same i.e the one before 115.5 since 115.5 did not= hit the pkg repo yet, which works without aslr (set by proccontrol) So unl= ess 116 introduces something which requires sysctl changes for the building= tool chain while building my test should be valid.<br> <br> Thanks<br> <br> /jsm<br> <br> </div> <hr></div> </blockquote> <br> </div> </blockquote> </div> <br> <br> <span class=3D"gmail_signature_prefix">-- </span> <div class=3D"gmail_signature"> <div><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br> FreeBSD Committer (ports)</span></div> </div> </div> </div> </div> </blockquote> <br> </div> </blockquote> </div> <br> <br> <span class=3D"gmail_signature_prefix">-- </span> <div class=3D"gmail_signature"> <div><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br> FreeBSD Committer (ports)</span></div> </div> </div> </div> </div> </blockquote> <br> </div> </div> </div> </blockquote> <br> </body></html> ------=_Part_1607_871727069.1701870816518--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?772988313.1608.1701870816598>