LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-12-2017, 12:28 PM   #1
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Rep: Reputation: 124Reputation: 124
Question Firefox 56.0 on Slackware64-14.2


Has anyone been able to successfully build firefox-56.0 on 14.2 (64bit)? I tried to give it a go. First, I was able to install rust with no issues. Where I'm running into a problem is that this version requires a newer llvm. I attempted to build llvm 5.0.0 which is the same version in -current, but it refused to build because it can't find readline.h. I built the readline version that is also in -current, but it didn't make a difference. I'm starting to think that 14.2 libraries may be a bit too old for this version of firefox. Any thoughts are welcomed! Thank you!
 
Old 10-12-2017, 01:31 PM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,218

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Does you have to compile it? Have you tried just repackaging the binaries that Mozilla offer?
 
Old 10-12-2017, 01:42 PM   #3
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Original Poster
Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by ruario View Post
Does you have to compile it? Have you tried just repackaging the binaries that Mozilla offer?
As I long time Slackware user, I always try to compile it first. I know that I can use the provided binary version. I've been very impressed how much faster Firefox feels on my laptop running -current. Wanted to try it on my desktop running -stable. Compiling it may be out of the question.
 
Old 10-12-2017, 01:58 PM   #4
McSlack
Member
 
Registered: Jul 2006
Location: Grand Rapids, MI
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
You could try a symbolic link using the new library names pointing to the older libraries. There may not be anything in the new library that is really needed.
 
Old 10-12-2017, 02:09 PM   #5
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 288

Rep: Reputation: 270Reputation: 270Reputation: 270
It's a pain in the arse, particularly because of the introduction of Stylo, Firefox's new CSS engine, which needs Rust (which brings its own set of problems).

Here's what you'll need to do:
  • Build and install libedit - the SlackBuild and version in -current will suffice.
  • If you want to use Stylo, Firefox won't compile with the version of LLVM in 14.2 (it needs to be 3.9 or newer - but don't use 5.0, see below for why). Build a new llvm package based on the SlackBuild in -current but use the 4.0.1 sources instead. clang.toolchains.i586.triple.diff.gz won't apply cleanly against 4.0.1, but this doesn't matter if you're building on an x86_64 system (and you pretty much have to if you're compiling Firefox). Upgrade the stock llvm package with this one.
  • Build and install Rust 1.20.0 - the SlackBuild on SBo works fine. Rust currently doesn't compile with LLVM 5.0, which is why you have to use LLVM 4.0.1.
  • Build mozilla-firefox using the SlackBuild in -current, but replace the source tarball with 56.0.1. Add "ac_add_options --enable-stylo" to the mozconfig if you want to build Stylo. PGO builds of Firefox 56 are broken on modern Linux systems by bug 1389436, and Stylo builds are broken on all Linux systems by bug 1384062. These have been fixed in time for Firefox 57, but the patches weren't backported to 56 for some reason (Mozilla doesn't care too much about whether Firefox compiles cleanly on anything other than their build bots, basically), so you'll also need to apply the patch from commit 8d9ae8c45dd0 on mozilla-central (and 97dae871389b if you want to do a PGO build).

Last edited by CTM; 10-12-2017 at 02:18 PM. Reason: --enable-stylo, not --disable-stylo
 
4 members found this post helpful.
Old 10-12-2017, 02:28 PM   #6
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Original Poster
Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by CTM View Post
It's a pain in the arse, particularly because of the introduction of Stylo, Firefox's new CSS engine, which needs Rust (which brings its own set of problems).

Here's what you'll need to do:
  • Build and install libedit - the SlackBuild and version in -current will suffice.
  • If you want to use Stylo, Firefox won't compile with the version of LLVM in 14.2 (it needs to be 3.9 or newer - but don't use 5.0, see below for why). Build a new llvm package based on the SlackBuild in -current but use the 4.0.1 sources instead. clang.toolchains.i586.triple.diff.gz won't apply cleanly against 4.0.1, but this doesn't matter if you're building on an x86_64 system (and you pretty much have to if you're compiling Firefox). Upgrade the stock llvm package with this one.
  • Build and install Rust 1.20.0 - the SlackBuild on SBo works fine. Rust currently doesn't compile with LLVM 5.0, which is why you have to use LLVM 4.0.1.
  • Build mozilla-firefox using the SlackBuild in -current, but replace the source tarball with 56.0.1. Add "ac_add_options --enable-stylo" to the mozconfig if you want to build Stylo. PGO builds of Firefox 56 are broken on modern Linux systems by bug 1389436, and Stylo builds are broken on all Linux systems by bug 1384062. These have been fixed in time for Firefox 57, but the patches weren't backported to 56 for some reason (Mozilla doesn't care too much about whether Firefox compiles cleanly on anything other than their build bots, basically), so you'll also need to apply the patch from commit 8d9ae8c45dd0 on mozilla-central (and 97dae871389b if you want to do a PGO build).
Thank you very much for the detailed explanation. I was wondering what Stylo was. I'll try through work through this. Thank you again!
 
Old 10-12-2017, 03:30 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,268

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
Upgrading to the new rust right now. We'll see if that fixes the build.
 
3 members found this post helpful.
Old 10-12-2017, 03:38 PM   #8
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 288

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by volkerdi View Post
Upgrading to the new rust right now. We'll see if that fixes the build.
There's nothing in the 1.21.0 release notes about LLVM 5 compatibility (and issue 43370 is still open), so I doubt it'll work. Worth a try though, I suppose.

Pat, I've been meaning to talk to you about the mozilla-firefox and mozilla-thunderbird SlackBuilds for some time. I've rewritten them to keep them as close as possible to the way Mozilla builds official releases, to limit the likelihood of the SlackBuilds no longer working because Mozilla decided to change the build system yet again. Should I email them to you?
 
Old 10-12-2017, 03:54 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,268

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
Quote:
Originally Posted by CTM View Post
Pat, I've been meaning to talk to you about the mozilla-firefox and mozilla-thunderbird SlackBuilds for some time. I've rewritten them to keep them as close as possible to the way Mozilla builds official releases, to limit the likelihood of the SlackBuilds no longer working because Mozilla decided to change the build system yet again. Should I email them to you?
Sure, I'll take a look. Thanks!
 
1 members found this post helpful.
Old 10-12-2017, 04:55 PM   #10
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,268

Rep: Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540Reputation: 3540
Quote:
Originally Posted by CTM View Post
There's nothing in the 1.21.0 release notes about LLVM 5 compatibility (and issue 43370 is still open), so I doubt it'll work. Worth a try though, I suppose.
You were correct, it did not work. But it doesn't make anything worse as far as I can tell, and hopefully this will be fixed up for Firefox 57. So we'll take the rust upgrade anyway.
 
1 members found this post helpful.
Old 10-12-2017, 06:58 PM   #11
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Original Poster
Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by volkerdi View Post
You were correct, it did not work. But it doesn't make anything worse as far as I can tell, and hopefully this will be fixed up for Firefox 57. So we'll take the rust upgrade anyway.
Thank you for looking into this Pat. So, for those who want to try and build Firefox in the stable branch, we need to wait until version 57 comes out? I still need to upgrade llvm to version 4 at least, correct?
 
Old 10-12-2017, 10:28 PM   #12
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Original Poster
Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by stormtracknole View Post
Thank you for looking into this Pat. So, for those who want to try and build Firefox in the stable branch, we need to wait until version 57 comes out? I still need to upgrade llvm to version 4 at least, correct?
Never mind. I re-read what CTM wrote again. Just got confused.
 
Old 10-28-2017, 07:57 PM   #13
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 968

Original Poster
Rep: Reputation: 124Reputation: 124
So, I finally had some time to explore this. Since I was going to go through this whole process regardless, I went ahead and built the latest beta version of 57. Wow, I'm liking where Firefox is headed. Felt very snappy (no hard numbers) compared to the ESR version. Huge improvement!
 
Old 10-31-2017, 01:01 AM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.2 64-bit with multilib
Posts: 2,402

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Any way to FORCE FF 56 to use GTK2 themes?
 
Old 10-31-2017, 02:44 AM   #15
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,853

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
Quote:
Originally Posted by Jeebizz View Post
Any way to FORCE FF 56 to use GTK2 themes?
unfortunately not, upstream has dropped support for gtk+2 from version 53.x.
 
  


Reply

Tags
firefox, llvm, readline


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Firefox in Slackware64-current now xap/mozilla-firefox-55.0.3-x86_64-1.txz: Upgraded. onebuck Slackware 8 08-26-2017 08:27 PM
Mozilla-firefox-52.0.1 on Slackware64 14.2 pulseaudio :/ slacktroll Slackware 26 04-04-2017 12:11 PM
No sound out of firefox on slackware64-14.2 louigi600 Slackware 3 09-04-2016 04:23 AM
[SOLVED] Slackware64-current and Firefox-48.0 3rensho Linux - Software 5 08-10-2016 02:36 AM
[SOLVED] 32-bit Firefox in Slackware64 13.37 marnold Slackware 2 06-17-2011 08:53 PM

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

All times are GMT -5. The time now is 10:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration