Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official Waterfox Current Linux build does not run #1128

Closed
laniakea64 opened this issue Sep 9, 2019 · 37 comments
Closed

Official Waterfox Current Linux build does not run #1128

laniakea64 opened this issue Sep 9, 2019 · 37 comments

Comments

@laniakea64
Copy link

I use Xubuntu 18.04 64-bit, and I'm unable to run the official build of Waterfox 68.0b1 downloaded from the website. It doesn't start at all.

If I try to run it in Terminal, I see this error -

XPCOMGlueLoad error for file /opt/waterfox/libmozsqlite3.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/waterfox/libmozsqlite3.so)
Couldn't load XPCOM.

My custom build of 68.0b1 runs fine without error.

@MrAlex94 What distro/version are you using to build Waterfox for Linux?

@laniakea64 laniakea64 changed the title 68.0b1: Cannot run official Linux build of Waterfox 68.0b1 on Xubuntu 18.04 68.0b1: Cannot run official Linux build of Waterfox 68.0b1 Sep 9, 2019
@laniakea64 laniakea64 changed the title 68.0b1: Cannot run official Linux build of Waterfox 68.0b1 68.0b1: Official Linux build of Waterfox 68.0b1 does not run Sep 9, 2019
@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Sep 9, 2019

Maybe problem can be solved by using statically linked libstdc++, just like for Classic.
Anyway, unofficial working package for 18.04 is on https://software.opensuse.org//download.html?project=home%3Ahawkeye116477%3Awaterfox&package=waterfox-beta (additionally it contains small fixes => https://github.com/hawkeye116477/waterfox-deb/tree/master/waterfox-beta/patches).

There is also AppImage package with statically linked libstdc++ https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/AppImage/waterfox-beta-latest-x86_64.AppImage.mirrorlist, which works even with CentOS 7.

Both packages are also compiled with LTO+PGO and gold as linker.

@grahamperrin
Copy link

Xubuntu 18.04 64-bit,

OK on Lubuntu, touch wood:

image

@laniakea64
Copy link
Author

OK on Lubuntu, touch wood:

@grahamperrin Could you please post the output from commands uname -a and lsb_release -a on that Lubuntu machine?

@grahamperrin
Copy link

18.10, compared to your (Kubuntu) 18.04

grahamperrin@lubuntu:~$ uname -a
Linux lubuntu 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
grahamperrin@lubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:        18.10
Codename:       cosmic
grahamperrin@lubuntu:~$ 

@ilu33
Copy link

ilu33 commented Sep 11, 2019

Same problem on Debian9:

dpkg -l libc6
<snip>
ii  libc6:amd64    2.24-11+deb9 amd64        GNU C Library: Shared libraries
ii  libc6:i386     2.24-11+deb9 i386         GNU C Library: Shared libraries

I am soon going to update to buster anyway. I'm just wondering whether this strict version requirement is really a good idea. Mozilla obviously doesn't think so.

@laniakea64
Copy link
Author

In the case of Xubuntu 18.04, there is currently no OS upgrade option. 18.04 is the newest Ubuntu LTS.

And anyway, 18.04 is sufficiently new according to system requirements for Waterfox 68.0b1 listed on https://www.waterfox.net/releases/ -

Linux
Min. OS: Any modern distro

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Sep 12, 2019

@laniakea64 There is 19.04 😄

@laniakea64
Copy link
Author

@laniakea64 There is 19.04 😄

19.04 is not LTS.

I can't afford the time to upgrade to an entire new OS version every 6 months.

@tcreek
Copy link

tcreek commented Sep 21, 2019

Just tested on Ubuntu `18.04, same issue

@reikred
Copy link

reikred commented Oct 24, 2019

Is there a fix that will work for fedora 25? F25 has glibc version 2.24 and no upgrade available. Just tested also waterfox-current-2019.10, same problem

XPCOMGlueLoad error for file /usr/local/waterfox-current-2019.10/liblgpllibs.so:
/lib64/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/waterfox-current-2019.10/liblgpllibs.so)
Couldn't load XPCOM.

@tcreek
Copy link

tcreek commented Oct 24, 2019

@reikred You could try compiling the source with your glibc v2.24. I have noticed the beta builds have been removed. Updating glibc is not a trivial task as other applications are built on it, and using its dynamic libraries. All the others would have to be rebuilt on it.

Building the source is really not that hard on Linux.

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Oct 24, 2019

@reikred Fedora 25 is EOL, why you use still use that version?

@reikred
Copy link

reikred commented Oct 24, 2019

@hawkeye I think if I could get a waterfox-current-2019.10 as an AppImage that would solve my problems on f25 for now :). UPDATE: I FOUND Waterfox-2019.10-157.1.Build157.1.glibc2.17-x86_64.AppImage and it runs ok !!

Background: I was unfamiliar with AppImage, but have since I posted the above tried your AppImage version of 68.0b1, and that seems to work in f25. Yes, I know f25 is outdated and I am in the process of bringing up ubuntu 18.04 as a replacement but that is a slow process for unrelated reasons.

@tcreek, I will stick to pre-compiled if at all possible,. Thx, for the encouragement, though. I have had some "fun" compiling firefox several years ago ;).

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Oct 24, 2019

Waterfox-2019.10-157.1.Build157.1.glibc2.17-x86_64.AppImage and it runs ok !!
Appears that I forgot to replace it with older version. That's little bad build, you can have some issues with extensions. It's also Classic, not Current. I'll publish new version later today.
I'm building AppImages with statically linked libstdc++ and using CentOS 7 packages, so that's why compatibility is better than in case of official package.

@reikred
Copy link

reikred commented Oct 24, 2019

@hawkeye116477,

I am watching https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/AppImage/ for the new version. Apparently that is the URL at which the full list of available AppImage files is visible (mostly: note to self, but please correct me if I am looking in the wrong place :))

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Oct 25, 2019

@reikred Latest fixed Classic is here now => https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/AppImage/waterfox-classic-latest-x86_64.AppImage.mirrorlist. I changed name to stop confusion. Current will be later. Only problem in case of AppImages that automatic updates doesn't work and also it check for updates on waterfox.net, not on OBS, so little patch would be needed. I can't provide xml, so that's needs to be done somehow other, maybe with using libappimageupdate, but currently unfortunately something is broken on OBS and not only downloading updates is broken, but even checking for it doesn't work, it detects new version when it's not available.

@reikred
Copy link

reikred commented Oct 25, 2019

@hawkeye116477. I'm only looking for AppImage for "Current". I already have 68.0a1 running in the official version. I will wait for waterfox-current-2019.10 AppImage to appear. Is there any estimate for when this might happen? Thx.

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Oct 28, 2019

@reikred I'm sorry it took so long, but it's available now https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/AppImage/waterfox-current-latest-x86_64.AppImage.mirrorlist with PGO+LTO and as a special bonus - language packs. But please be aware that you might experience bug with creating new profile every launch and to fix that you'll need every time run it from console with --ProfileManager or just unpack it. I don't know unfortunately how to fix that bug by another way, but seems that only happens only on some distros, for example on Manjaro works correct, only after few runs it can't start, but that can be fixed by removing addonStartup.json.lz4 from profile, maybe that's because I put unsigned langpacks into browser/extensions, but I set extensions.autoDisableScopes to 3.

@reikred
Copy link

reikred commented Oct 29, 2019

@hawkeye116477 I have it running . I was tripped up by the fact that wf-current switched back to ~/.waterfox as the profile location. whereas wf-68 is using ~/.mozilla/waterfox and wf-classic is using ~/.waterfox. Because of the profile location change I have not been able to test extensively yet, and have not tested for the profile problems you mention.

There is also the separate issue #1241 that makes me worried about running wf-current on existing profiles that works with other versions, so it may have to clone/rename some profiles for testing purposes, and it will take time. But thanks for getting me something that runs !!!!

@grahamperrin
Copy link

grahamperrin commented Oct 30, 2019

#1241

Don't worry. The workaround is trivial, and one-off (once per downgrade): #1241 (comment)

wf-68

To avoid possible confusion:

  • Waterfox Current is (still) known as 68 in some contexts. This is by design.

~/.mozilla/waterfox arose with an early alpha of Waterfox Current.

@laniakea64 laniakea64 changed the title 68.0b1: Official Linux build of Waterfox 68.0b1 does not run Official Waterfox Current Linux build does not run Jan 11, 2020
@laniakea64
Copy link
Author

Official Waterfox Current 2020.01 Linux build still does not run. The error message has now changed -

XPCOMGlueLoad error for file /opt/waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /opt/waterfox/libnspr4.so)
Couldn't load XPCOM.

@MrAlex94 What distro/version are you using to build Waterfox for Linux?

@InconsolableCellist
Copy link

InconsolableCellist commented Jan 13, 2020

Doesn't work here either, with waterfox-classic on Ubuntu 18.10

$ uname -a 
Linux ... 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.10 (Cosmic Cuttlefish)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.10"
VERSION_ID="18.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=cosmic
UBUNTU_CODENAME=cosmic

$ ./waterfox -P
XPCOMGlueLoad error for file /home/user/Downloads/waterfox-classic/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /home/user/Downloads/waterfox-classic/libnspr4.so)
Couldn't load XPCOM.

$ ldd --version
ldd (Ubuntu GLIBC 2.28-0ubuntu1) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Extracted from: waterfox-classic-2020.01.en-US.linux-x86_64.tar.bz2

@ilu33
Copy link

ilu33 commented Jan 14, 2020

I can confirm that Waterfox current 2020.01 does not work on debian 9 and debian 10.

/opt/waterfox-current-test/waterfox
XPCOMGlueLoad error for file /opt/waterfox-current-test/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /opt/waterfox-current-test/libnspr4.so)
Couldn't load XPCOM.

ldd --version
ldd (Debian GLIBC 2.28-10) 2.28
Copyright (C) 2018 Free Software Foundation, Inc. <snip>

@laniakea64
Copy link
Author

https://www.waterfox.net/download/ now says

Linux
Minimum Requirements

GLib 2.28

However, the official Waterfox Current 2020.01.1 Linux build doesn't run even in CentOS 8 -

XPCOMGlueLoad error for file /opt/waterfox/libmozsandbox.so:
/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /opt/waterfox/libmozsandbox.so)
Couldn't load XPCOM.

@MrAlex94
Copy link
Collaborator

MrAlex94 commented Feb 5, 2020

So I went back to Ubuntu 16 LTS to compile Waterfox for 2020.01.1. This is so frustrating, the dev experience is not optimal on Linux, can't believe it's so complicated to have a portable application.

I'll see what I can do for the next build, but it's taking up so much time.

@jcea
Copy link

jcea commented Feb 6, 2020

So I went back to Ubuntu 16 LTS to compile Waterfox for 2020.01.1. This is so frustrating, the dev experience is not optimal on Linux, can't believe it's so complicated to have a portable application.

I'll see what I can do for the next build, but it's taking up so much time.

May I suggest a virtual machine to compile the release build? Ideally, it should be simply "git checkout", "make build", "make publish".

You don't need to develop Waterfox in Ubuntu 16.04, only compile there the release build.

Let me know if you need help to set this up.

@laniakea64
Copy link
Author

laniakea64 commented Feb 6, 2020

So I went back to Ubuntu 16 LTS to compile Waterfox for 2020.01.1.

This solved this problem for Classic 2020.01.1. But did not work for Current 2020.01.1? 😕

Are you using the same build machine for both Waterfoxes?

@ilu33
Copy link

ilu33 commented Feb 13, 2020

On debian stable it does not work for classic see #1356 (comment) It seems that Ubuntu 16.04 is not conservative enough (no surprise really).

I did not test current. Edit: Same with current

@laniakea64
Copy link
Author

Official Waterfox Current 2020.02 Linux build works for me in Xubuntu 18.04 after running sudo apt-get install libc++1 🎉
Same for Debian 10.3 live CD.

It also works in Xubuntu 16.04 after also installing libc++abi1.

@ilu33
Copy link

ilu33 commented Feb 14, 2020

libc++1-7 and libc++abi1-7 were already installed. additionally installing libc++1 and libc++abi1 did not help, these packages do not contain anything (see https://packages.debian.org/buster/amd64/libc++1/filelist and https://packages.debian.org/buster/amd64/libc++abi1/filelist).

There must be something else. Which debian live CD did you use?

@laniakea64
Copy link
Author

Which debian live CD did you use?

Debian 10.3.0 amd64 XFCE live CD from https://www.debian.org/CD/live/

@ViniciusBRodrigues
Copy link

ViniciusBRodrigues commented Nov 17, 2021

I'm having the same issue on the linux mint debbie.

 ./waterfox
XPCOMGlueLoad error for file /home/viniciusbr/Downloads/waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.30 not found (required by /home/viniciusbr/Downloads/waterfox/libnspr4.so)
Couldn't load XPCOM.
sudo apt install libnspr4
libnspr4 is already the newest version (2:4.20-1).
sudo apt install libc6
libc6 is already the newest version (2.28-10).

@cocoa1231
Copy link

Same issue here on LMDE

$ ./waterfox   
XPCOMGlueLoad error for file /home/cocoa/Applications/waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /home/cocoa/Applications/waterfox/libnspr4.so)
Couldn't load XPCOM.

@tcreek
Copy link

tcreek commented Nov 19, 2021

I'm having the same issue on the linux mint debbie.

 ./waterfox
XPCOMGlueLoad error for file /home/viniciusbr/Downloads/waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.30 not found (required by /home/viniciusbr/Downloads/waterfox/libnspr4.so)
Couldn't load XPCOM.
sudo apt install libnspr4
libnspr4 is already the newest version (2:4.20-1).
sudo apt install libc6
libc6 is already the newest version (2.28-10).

You seem to be misreading the output it is giving you

: version GLIBC_2.30 not found

libc6 is already the newest version (2.28-10).

Since I doubt your skill level is sufficient to put version 2.30+ on your system, you are going to have to upgrade to a newer distro

@AngborTim
Copy link

The same issue

Linux Big 5.4.0-72-lowlatency #80-Ubuntu SMP PREEMPT Mon Apr 12 18:37:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
ldd (Ubuntu GLIBC 2.31-0ubuntu9.3) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

./waterfox
Illegal instruction

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented Jan 6, 2022

@AngborTim From your log, seems that's rather different problem. Official Waterfox G4 requires SSE4.2 instruction support in CPU and seems that your CPU doesn't support that. However there is solution for you other than buying new CPU => just use one of my packages following https://github.com/hawkeye116477/waterfox-deb-rpm-arch-AppImage/blob/master/README.md.

@AngborTim
Copy link

@AngborTim From your log, seems that's rather different problem. Official Waterfox G4 requires SSE4.2 instruction support in CPU and seems that your CPU doesn't support that. However there is solution for you other than buying new CPU => just use one of my packages following https://github.com/hawkeye116477/waterfox-deb-rpm-arch-AppImage/blob/master/README.md.

thanx, I'll check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests