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

Building fails on Linux #565

Closed
Toromino opened this issue May 16, 2018 · 18 comments
Closed

Building fails on Linux #565

Toromino opened this issue May 16, 2018 · 18 comments

Comments

@Toromino
Copy link

I'm currently not able to build Waterfox on Linux...

  • The first issue occured, when mach tried to compile 'simd'. 'x86::sse2' is an unresolved import in third_party/rust/simd/src/common.rs:17:10. Could prevent this error by removing "ac_add_options --enable-rust-simd" in .mozconfig
    screenshot_1

  • Then it seemed to be compiling for a while, when building failed again at:
    screenshot_2

  • When I acutally add "--disable-elf-hack" as an option, building just fails without any error output

I've already tried it on a variety on distros (Fedora, Debian and Ubuntu) and always stumbled upon the same errors. Nothing changed when I tried to build the newest tagged release instead of 'master'.

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented May 16, 2018

I tried to build and no errors, but I compiled it on Manjaro Linux with Rust 1.25 😄. What's your Rust version?

@Toromino
Copy link
Author

My main distro (Fedora) runs rustc 1.25.0, but I also tried it with older Rust versions on Debian.

@MrAlex94
Copy link
Collaborator

MrAlex94 commented May 16, 2018 via email

@Toromino
Copy link
Author

I tried to build again after doing a clobber. Now I'm back to this output:
image

@jbeich
Copy link
Contributor

jbeich commented May 16, 2018

'x86::sse2' is an unresolved import in third_party/rust/simd/src/common.rs:17:10

See rust-lang/rust#46181. Upgrade Rust to 1.26 or build Rust against bundled LLVM.

@alekksander
Copy link

alekksander commented May 17, 2018

i can't even get it started under ubuntu 16.04. giving me:

~$ waterfox
XPCOMGlueLoad error for file /opt/waterfox/liblgpllibs.so:
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /opt/waterfox/liblgpllibs.so)
Couldn't load XPCOM.

@Toromino
Copy link
Author

@alekksander Did you make sure, that libc6 is installed? You might wanna install it using: apt-get install libc6

@hawkeye116477
Copy link
Contributor

@alekksander Have you waterfox or waterfox-kde?

@alekksander
Copy link

@Toromino „libc6 is already the newest version (2.23-0ubuntu10).”
@hawkeye116477 indeed it is Your build (waterfox-kde), i completely forgot!

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented May 18, 2018

@alekksander That's the problem. I have newer libs, Clang (6), Llvm than Alex and something probably broke compiling with statically linked libstdc++ and I later noticed same error about elf-hack as @Toromino. I will publish fixed version when I find fix for this, cuz I unfortunately for now don't have that distro with that old tools 😄. Previous version I compiled with Clang/Llvm 5, so maybe it's issue with Clang/Llvm 6...

@Toromino
Copy link
Author

I managed to get rid of the errors, that I mentioned earlier by using Arch Linux this time. But now I get this error, when I try to run ./mach bootstrap
image

@hawkeye116477
Copy link
Contributor

hawkeye116477 commented May 19, 2018

@Toromino Are you sure that you have Clang installed? Just do sudo pacman -S clang 😄

@Toromino
Copy link
Author

Yep it is installed.
image

@hawkeye116477
Copy link
Contributor

@Toromino Ok, so probably something else is missing. Check if you have everything that requires waterfox-git package from AUR.

@Toromino
Copy link
Author

Toromino commented May 19, 2018

The dependency ffmpeg2.8 (although I do have ffmpeg installed) is missing when I try to user Waterfox-git. But I don't think it has anything to do with my current error.

I also just tried the same mach command with Firefox's source and it worked fine.

@jbeich
Copy link
Contributor

jbeich commented May 19, 2018

@Toromino, in ./mach bootstrap choose 2. Firefox for Desktop as artifact mode is not supported by Waterfox.

@Toromino
Copy link
Author

@jbeich
The thing is, I've never chosen artifact mode. I always chose "2. Firefox for Desktop". :/

@Toromino
Copy link
Author

Toromino commented May 19, 2018

Okay folks, apparently Waterfox does build fine now!
Although mach shows that building failed, the built version works fine. o_O

EDIT: I guess I can close this issue as building Waterfox on my Linux machine works fine now.

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

5 participants