LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2020, 07:13 AM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Note on FF-79.0


Just built FF-79.0 and found that one needs to apply the patches/workarounds that Ponce researched and found when I tried to build Thunderbird-78.x due to our version of rust. Details here - https://www.linuxquestions.org/quest...-a-4175678965/
Then it builds and runs fine.
 
Old 07-27-2020, 07:20 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
I haven't tried yet but that shouldn't actually be needed anymore if you use the latest SlackBuild in the current tree, because Pat applied an alternate patch to fix building with the newer rust.
 
Old 07-27-2020, 07:27 AM   #3
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,024

Original Poster
Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ach so. Thanks for the heads-up. Some day I'll learn to look at the new stuff before fixing my old file.

Edit: Builds fine with the current SlackBuild. Lesson leaned.

Last edited by 3rensho; 07-27-2020 at 08:47 AM.
 
Old 07-30-2020, 03:32 PM   #4
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
I only had to do:

export CARGO_PROFILE_RELEASE_LTO=true

in rust.mk to get Firefox 79.0 (gkrust) to build with Rust 1.45.

This is something that made it into the ESR, but not the 79.0 release.

Code:
+# Pass -Clto for older versions of rust, and CARGO_PROFILE_RELEASE_LTO=true
+# for newer ones that support it. Combining the latter with -Clto works, so
+# set both everywhere.
 cargo_rustc_flags += -C lto
+export CARGO_PROFILE_RELEASE_LTO=true
 
Old 07-30-2020, 03:38 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
here it seems to build fine with the SlackBuild in current without any modification (also 80.0b1 does).
 
Old 07-31-2020, 05:28 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,505

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by TheRealGrogan View Post
I only had to do:

export CARGO_PROFILE_RELEASE_LTO=true

in rust.mk to get Firefox 79.0 (gkrust) to build with Rust 1.45.

This is something that made it into the ESR, but not the 79.0 release.

Code:
+# Pass -Clto for older versions of rust, and CARGO_PROFILE_RELEASE_LTO=true
+# for newer ones that support it. Combining the latter with -Clto works, so
+# set both everywhere.
 cargo_rustc_flags += -C lto
+export CARGO_PROFILE_RELEASE_LTO=true
Permit me to disagree.

In fact, looks like that setting that CARGO_PROFILE_RELEASE_LTO introduces at least a nasty but obscure issue, which I observed with some of video streams of local TV channels. It manifests by a high load of CPU and the playing experience is bad, like frames are dropped. True, it is also probably about low power CPUs as what I have in my boxes.

Too bad if that was inserted into ESR releases, and tells a lot about how stable are them.

Apparently, at least according with Mozilla, the right way to fix that build issue is to set "-Cembed-bitcode=yes" when it is used "-Clto" for rustc, like in the patch for there:

https://hg.mozilla.org/releases/mozi...v/5049f067f189

I've backported it manually to firefox-79.0 and I've managed to build it fine. Bonus, my video streams works fine again.
 
1 members found this post helpful.
Old 07-31-2020, 10:01 PM   #7
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Oh well, no issues here. At the time I did it, that was the fix for the build problem. I did wonder why they weren't just setting the -Cembed-bitcode flag the error was complaining about along with -Clto, but assumed they did it with the CARGO_PROFILE_RELEASE_LTO variable instead because it didn't cause older versions of rust to barf.

I did note an extra long build time, which makes sense if crates were having to be rebuilt more times than usual.
 
Old 07-31-2020, 10:13 PM   #8
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,505

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by TheRealGrogan View Post
Oh well, no issues here. At the time I did it, that was the fix for the build problem. I did wonder why they weren't just setting the -Cembed-bitcode flag the error was complaining about along with -Clto, but assumed they did it with the CARGO_PROFILE_RELEASE_LTO variable instead because it didn't cause older versions of rust to barf.

I did note an extra long build time, which makes sense if crates were having to be rebuilt more times than usual.
It is not about building, but about how it is working. Apparently, that CARGO_PROFILE_RELEASE_LTO introduces obscure issues and slowdowns.

Of course, I understand well that in your All American HTPC with 64 cores / 128 threads living on liquid nitrogen freezing, no matters those issues...

However, I for one, I use 45W CPUs.

And, BTW... I observed those strange slowdowns first on the ESRs shipped now by -current.

Last edited by LuckyCyborg; 07-31-2020 at 10:29 PM.
 
2 members found this post helpful.
Old 08-01-2020, 01:45 AM   #9
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
As I said, there are no issues here. I do mean running, on an older quad Corei7 CPU. This browser is working the same as, or better in performance, video performance and browserbench.com benchmarks (which I do with every build). I would notice performance regressions. I build it my own way though, using optimizations that work best for me.

On the next build, I'll use -Cembed-bitcode=yes instead though, now that I know about it.

Code:
. $topsrcdir/browser/config/mozconfig
 export CFLAGS="-mtune=nehalem"
 export CXXFLAGS="-mtune=nehalem"
 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/pulseaudio/lib"
 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/pulseaudio/lib/pkgconfig"
 export CPPFLAGS="-I/opt/pulseaudio/include"
 export LDFLAGS="-L/opt/pulseaudio/lib"
mk_add_options MOZ_MAKE_FLAGS=-j10
ac_add_options MOZ_PGO=1
ac_add_options --enable-lto
ac_add_options --prefix=/opt/firefox
ac_add_options --enable-official-branding
ac_add_options --enable-release
ac_add_options --disable-tests
ac_add_options --enable-rust-simd
ac_add_options --enable-optimize=-O3
ac_add_options --enable-alsa
ac_add_options --enable-pulseaudio
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --enable-linker=gold
ac_add_options AR=/usr/bin/llvm-ar
ac_add_options NODEJS=/storage2/shit/build/node/bin/node
The pulseaudio shit is just because I have it installed only for linking (so I can use the same build on my Slack, LFS and Manjaro)
 
Old 08-03-2020, 11:40 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by LuckyCyborg View Post
Of course, I understand well that in your All American HTPC with 64 cores / 128 threads living on liquid nitrogen freezing, no matters those issues...

However, I for one, I use 45W CPUs.
Do you realize how demeaning this is? I see you post similar things all over.

Many forum members living in the US have low powered or extremely old hardware and some forum members living in other parts of the world have monster machines. Yes, fast hardware exists and some of us run it, but I've ran my fair share of extremely low TDP computers. My current htpc is running a 65W APU (Ryzen 3 2200g), the one previous to that was a 25W AMD Athlon 5350, and before that I had a 12W Intel Atom D525 NUC box that was a size of a small book.

You could simply say that these issues might only be noticeable on low-end/older hardware rather than slam all Americans because "tHEy hAvE FasT STuFf".
 
4 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MIDI keyboard note-on and note-off inverted jakykong Linux - Software 0 08-21-2010 03:21 AM
A note to my fellow forum members on answering questions. unSpawn Linux - Security 1 05-04-2002 12:00 PM
ATA 100 and Bad Things (note the capital B and T) Infamous Tim Slackware 4 04-25-2002 12:10 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration