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

Notices


Reply
  Search this Thread
Old 12-12-2023, 05:26 PM   #1
debianest
LQ Newbie
 
Registered: Dec 2023
Posts: 4

Rep: Reputation: 0
Arrow Can't compile firefox on debian due to rustc


Help, I can't compile the browser on debian! I'm using bookworm release
This is what I see in the console:
Code:
0:14.50 checking rustc version... 1.63.0
 0:14.54 checking cargo version... 1.65.0
 0:14.55 ERROR: Rust compiler 1.63.0 is too old.
 0:14.55 To compile Rust language sources please install at least
 0:14.55 version 1.70.0 of the 'rustc' toolchain (or, if using nightly,
 0:14.56 at least one version newer than 1.70.0) and make sure it is
 0:14.56 first in your path.
 0:14.56 You can verify this by typing 'rustc --version'.
 0:14.56 If you have the 'rustup' tool installed you can upgrade
 0:14.56 to the latest release by typing 'rustup update'. The
 0:14.56 installer is available from https://rustup.rs/
*** Fix above errors and then restart with "./mach build"
But I have no desire to switch to sid now, I will have to reinstall the system!
Is there any way to compile firefox on debian stable?
 
Old 12-12-2023, 07:21 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,150

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
You may be able to backport the proper version rustc from sid to stable. Sid shows 1.70 right now. For that matter see if you can just backport firefox directly from sid. Regular firefox is showing 120.0.0.1-1 right now. Not sure if that is the absolute newest.

My first question though is why are you doing this? Do you have an actual reason or do you just think you need the newest? 99% of the time the new changes are of little use to the majority of folks. Any security patches are backported to whatever stable has so that isn't a logical reason either.

Last edited by jmgibson1981; 12-12-2023 at 07:22 PM.
 
Old 12-12-2023, 07:57 PM   #3
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,398

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
Maybe build firefox-esr, since it's what comes with stable, is probably buildable with stable toolchain, if you're just doing this for fun/experience.

Or if it's just cuz you want to run latest firefox, you can download compiled tarballs from mozilla directly, that'll run on stable, and update itself outside of package manager.

Last edited by enigma9o7; 12-12-2023 at 08:36 PM.
 
Old 12-12-2023, 10:20 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,888
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
use rustup not Debian's rust. The version on my system: rustc 1.74.1
https://rustup.rs/
 
Old 12-13-2023, 01:54 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,022

Rep: Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343
in such cases you can use docker, prepare the environment to build your software inside, and at the end you only need to drop that docker image. You host will remain exactly the same.
 
Old 12-14-2023, 11:00 AM   #6
debianest
LQ Newbie
 
Registered: Dec 2023
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jmgibson1981 View Post
You may be able to backport the proper version rustc from sid to stable. Sid shows 1.70 right now. For that matter see if you can just backport firefox directly from sid. Regular firefox is showing 120.0.0.1-1 right now. Not sure if that is the absolute newest.

My first question though is why are you doing this? Do you have an actual reason or do you just think you need the newest? 99% of the time the new changes are of little use to the majority of folks. Any security patches are backported to whatever stable has so that isn't a logical reason either.
The problem is that I'm using bootstrap.py from mozilla, you can't select esr there. If I just download the archive from here https://ftp.mozilla.org/pub/firefox/...5.0esr/source/ then there will be no git history there and I will not be able to normally change the source code and add to it in the future
 
Old 12-14-2023, 11:02 AM   #7
debianest
LQ Newbie
 
Registered: Dec 2023
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by craigevil View Post
use rustup not Debian's rust. The version on my system: rustc 1.74.1
https://rustup.rs/
Thanks, everything seems to be working now
 
Old 12-14-2023, 03:14 PM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,624

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556

The source code for Debian's firefox-esr package is at //sources.debian.org/src/firefox-esr

Select the appropriate version (i.e. bookworm) and follow the VCS link on the right of the resulting page to //salsa.debian.org/mozilla-team/firefox/-/commits/esr115/master - i.e. the repository that includes over a dozen of Debian-specific patches/fixes/workarounds.

One of those Debian-specific changes is "Relax minimum supporter rust version to 1.63" which seems like it would address exactly the issue in post #1...


Last edited by boughtonp; 12-14-2023 at 03:15 PM.
 
  


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
rustc-1.37.0 chinnadas Linux From Scratch 3 07-09-2020 04:24 PM
[SOLVED] 9.0 systemd rustc build failed rabidlinux Linux From Scratch 11 10-04-2019 03:56 PM
[SOLVED] Building rustc-1.25.0 from BLFS SVN re_nelson Linux From Scratch 5 06-25-2018 09:29 PM
[SOLVED] Rustc-1.19.0 - It is safe to remove ~/.cargo directory after compiling anak_bawang Linux From Scratch 2 10-12-2017 02:26 AM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM

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

All times are GMT -5. The time now is 05:34 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