-
Notifications
You must be signed in to change notification settings - Fork 31
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
How do I build this? #216
Comments
Just check here => https://github.com/WaterfoxCo/Waterfox-Classic/blob/classic/.github/workflows/build.yml#L60 how it's done on GitHub Actions. Besides those you may also need Windows 10 SDK. However maybe you will need to try some lower versions of depends. |
I tried installing those, but I get the same error. |
Only installing isn't enough, you may need to set environment variables and start mozilla-build shell, almost everything same as in linked URL. |
I checked the environment variables, and they matched outside of mine being installed in different paths. I even rebooted since environment variables sometimes require that. |
So check if you can execute |
So I have clang in my path, I can run it with normal CMD. However I always get command not found in MozillaBuild. |
So as I said, you need to edit that mozilla-build batch file, find line with |
After dealing with a few other issues and manually upgrading watchman, now I get this. ` 1:38.22 DEBUG: configure(2205,1): error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1:38.22 DEBUG: 2205 | main(){return(0);} 1:38.22 DEBUG: | ^ 1:38.23 DEBUG: | int 1:38.23 DEBUG: 1 error generated. 1:38.23 DEBUG: configure: failed program was: 1:38.23 DEBUG: 1:38.23 DEBUG: #line 2203 "configure" 1:38.23 DEBUG: #include "confdefs.h" 1:38.23 DEBUG: 1:38.23 DEBUG: main(){return(0);} 1:38.23 DEBUG: configure: error: installation or configuration problem: C compiler cannot create executables. 1:38.24 ERROR: old-configure failed` |
You need to try some older version of LLVM/Clang and maybe some other depends will also need different version if you'll still see errors. I don't remember which versions of these tools are good for Classic. |
Kind of off-topicPersonally, I would be especially grateful if someone could implement the following missing features.
As such features don't seem to be properly provided by an extension like Polly+. |
Hmm, I might try getting everything I need to build Mypal68, and once or if I get that working, I try seeing if I can also build Waterfox Classic. If I still can't I'll try this, I'll look into those. |
workflows are outdated and don't work properly. |
You can use current clang if you can find where you need to add cflag -Wno-error=implicit-function-declaration |
In general, Firefox-based browsers usually include an about:buildconfig page with information about build configuration. This is linked on the about:support page. |
I tried replicating the setup I use to build my UXP based stuffs and adding Rust, however that gives an error when trying to build.
Full config.log
|
@K4sum1 UXP uses other compiler, just go to |
If I wanted to force MSVC, how would I bypass the error? |
Making this a separate issue because I don't want to fill up a unrelated issue.
So far I've installed Mozillabuild 3.4, but not sure what else to do. ./mach bootstrap doesn't work so I just tried to ./mach build. Gave an error about not having Visual Studio 2017, so I installed it, and now I have ERROR: Cannot find the target C compiler, and I'm not sure how to fix it. It mentions mingw32, so I tried grabbing that, but I have no idea what to pick in the installer, if I even found the right installer. What do I do?
Also pinging @hawkeye116477 since he seems to have the most knowledge about this.
The text was updated successfully, but these errors were encountered: