Problem building PM 28.1.0 on Win 7

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Tony0945

Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-01, 02:54

I have built several versions of PM 27 successfully on this system using VC++ 2013. Tried to build PM 28.1.0 and got an error that VC++ 2015 was required. Download and installed VC 2015 and got this:

Code: Select all

[0DEC:0ED8][2018-10-31T21:30:53]i001: Burn v3.7.3813.0, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\tony\Downloads\vc_redist.x64.exe, cmdline: '-burn.unelevated BurnPipe.{2CC64FA0-3DB9-404E-A90A-9F68233D0EC8} {95DE9291-7F11-430B-8773-8C2EAF79481F} 3092'
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\tony\AppData\Local\Temp\dd_vcredist_amd64_20181031213053.log'
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\tony\Downloads\vc_redist.x64.exe'
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\tony\Downloads\'
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.24123'
[0DEC:0ED8][2018-10-31T21:30:53]i100: Detect begin, 10 packages
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.10586.788'
[0DEC:0ED8][2018-10-31T21:30:53]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[0DEC:0ED8][2018-10-31T21:30:53]i102: Detected related bundle: {e2ee15e2-a480-4bc5-bfb7-e9803d1d9823}, type: Upgrade, scope: PerMachine, version: 14.12.25810.0, operation: Downgrade
[0DEC:0ED8][2018-10-31T21:30:53]i108: Detected compatible package: vcRuntimeMinimum_x64, provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14, installed: {C99E2ADC-0347-336E-A603-F1992B09D582}, version: 14.12.25810, chained: {FDBE9DB4-7A91-3A28-B27E-705EF7CFAE57}
[0DEC:0ED8][2018-10-31T21:30:53]i103: Detected related package: {C99E2ADC-0347-336E-A603-F1992B09D582}, scope: PerMachine, version: 14.12.25810.0, language: 0 operation: Downgrade
[0DEC:0ED8][2018-10-31T21:30:53]i108: Detected compatible package: vcRuntimeAdditional_x64, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14, installed: {2CD849A7-86A1-34A6-B8F9-D72F5B21A9AE}, version: 14.12.25810, chained: {21134089-9B59-34C8-BE11-929D26AD5207}
[0DEC:0ED8][2018-10-31T21:30:53]i103: Detected related package: {2CD849A7-86A1-34A6-B8F9-D72F5B21A9AE}, scope: PerMachine, version: 14.12.25810.0, language: 0 operation: Downgrade
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to true.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: vcRuntimeMinimum_x64, state: Obsolete, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: vcRuntimeAdditional_x64, state: Obsolete, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows81_x86, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows81_x64, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows8_x86, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows8_x64, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: Windows7_MSU_x64, state: Present, cached: Complete
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[0DEC:0ED8][2018-10-31T21:30:53]i052: Condition 'VersionNT64 >= v6.0 OR (VersionNT64 = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[0DEC:0ED8][2018-10-31T21:30:53]i199: Detect complete, result: 0x0
[0DEC:0F84][2018-10-31T21:30:58]e000: Error 0x80070666: Cannot install a product when a newer version is installed.
Really fed up with building on slow balky horrible Win 7. I have successfully built 28.1.0 on Linux and it is running well. Can you give me any help on running the linux version with Mingw which I have installed in Windows and runs other programs well. I know Moonchild said in the past that this was a horrible way to go, but I'd like to try it. Win 7 is NOT a professional build platform. IMHO, it is a toy OS.

roytam1

Re: Problem building PM 28.1.0 on Win 7

Unread post by roytam1 » 2018-11-01, 06:20

did you try uninstalling all VC 2015 and 2017 runtimes and install VS2015 again?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35572
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problem building PM 28.1.0 on Win 7

Unread post by Moonchild » 2018-11-01, 07:03

Cannot install a product when a newer version is installed.
Your installed VC runtime libraries are newer than what comes with VS2015. It will abort as a result.
Make sure you are using the latest VS2015 installer with updates, and if still no go remove the runtime packages befre installing, as suggested.

I understand you're upset but this has nothing to do with actually building the browser, or "slow and balky Win 7". It has everything to do with your build environment and setting it up. You're not at the building stage yet, so the title of this topic is a misnomer.
Also begs the question: Why are you building on Windows, or building from source to begin with, for that matter, if you prefer to use Linux anyway?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-01, 22:43

Well, I've successfully built four versions of v27.x in that environment.

Building from source using Feodor's patches because you don't provide an XP binary anymore. Your choice, of course.
I'd rather cut my throat than use that Win 7 interface for day to day operations. I only bought the license on sale because TurboTax won't install on XP anymore. Don't think I'll be using TT anymore anyway. Every other mouse click they pop up an ad for some extension. The file system is a labyrinth and the file find requires an exact match. Lately, 27.9.4 has problems on my banking sites so I'm using Firefox there. I'd much rather pay for a PM XP subscription.

BTW, both the binary and source versions installed and built on Linux. Thank you for that.

Wasn't going to mention XP per your desires. In any case, the unpatched PM 28.x should build on Win 7. Hate using that MS software. Thanks for supporting gcc 7.3 on Linux.

Angry because I spent 5 hours trying to get the build environment set up only to have the build fail. I eventually had to download Win source on Linux and unzip it there, burning it onto a DVD to get it into Win 7 which takes forever to move files and doesn't allow me to pick the target directory like XP does.
Last edited by Tony0945 on 2018-11-01, 22:47, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35572
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problem building PM 28.1.0 on Win 7

Unread post by Moonchild » 2018-11-02, 01:26

v27 uses VS2013, not VS2015. As such you're also looking at a different set of runtime libs.
Once again you're looking at the build environment setup, not the actual build process there.

Your overall tone is also not conducive to actually getting help, from me or others.
If setting up the env and building frustrates you to the level it seems to, then please do everyone a favor and leave it to others who enjoy the challenges involved -- it's better for your nerves :)
I'm also not sure about the build state of XP efforts at the moment but I'm assuming people are providing binaries for you to use... So that once again begs the question why you're trying to build it yourself. Does your Win 7 system even have the required minimum specs to build?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Fedor2

Re: Problem building PM 28.1.0 on Win 7

Unread post by Fedor2 » 2018-11-04, 16:46

Tony0945

Read viewtopic.php?f=61&t=17535

Mine never had visual 2015 installed and keep normally building all this stuff.

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-26, 21:02

Moonchild wrote:Your overall tone is also not conducive to actually getting help, from me or others.
I am sorry if I offended you. Please chalk it up to cultural differences. Sometimes your tone has offended me. I just pretend you are from New Jersey instead of the UK. Cultural differences.
My anger is entirely directed against Microsoft. Not you or Tobin or anyone else here.
Moonchild wrote: If setting up the env and building frustrates you to the level it seems to, then please do everyone a favor and leave it to others who enjoy the challenges involved -- it's better for your nerves :)
I have gone back to Firefox on Windows XP for many sites because of annoying Capcha's that don't appear in Firefox v52.9.0 but I really prefer Palemoon and Palemoon for Linux installs well, whether by binary download or by build. Building on Linux is preferred because it produces a smaller binary and loads slightly faster (probably because the executable is smaller). I don't have this problem on Win 7 or Linux so I assume that it is due to XP being v27 and the others being v28.
Moonchild wrote: I'm also not sure about the build state of XP efforts at the moment but I'm assuming people are providing binaries for you to use... So that once again begs the question why you're trying to build it yourself. Does your Win 7 system even have the required minimum specs to build?
No, I have been building it myself since you stopped offering it for XP. I have tried Feodor's Mypal and it is a good product but I prefer to keep closer to mainline Palemoon, so I use Feodor's XP patch (only). v27 built fine. v28 had the problem. I know you don't support XP so when it failed I tried to build the unpatched code and that is what my initial post was about. I regarded that as a legitimate support post. If the software built unmodified but not when modified, I would not have asked here, knowing your prejudice against XP. I don't blame you for not making the effort to support an older OS and thank you for supporting it as long as you did and especially for supporting Linux. I don't know if you or one of your team provides the palemoon-overlay for Gentoo, but I thank whoever that is too and I thank Feodor2 for the tremendous effort of maintaining the Mypal site on github. I assume that at some point you will stop supporting Win 7 also.

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-26, 21:27

Fedor2 wrote:Tony0945

Read viewtopic.php?f=61&t=17535

Mine never had visual 2015 installed and keep normally building all this stuff.
Instead of my licensed Win 7, I installed virtualbox on my Linux machine that has 16G memory. The Win7 machine has only 4G. This sufficed for building v27 but may not be enough for v28.

With some trial and error, I found this combination to work:
1. Virtual C drive of 48G, only 5G are left so I really recommend a virtual of 64G. The real drive is a 250G Western Digital Velociraptor 10,000 RPM drive, but it has Linux and a considerable amount of applications and files on it. I ordered a Crucial MX500 500GB SATA SSD Fiday to replace it.
2. Virtual B drive of 128G on a 7,200 RPM 2T WD Black drive that is primarily for video storage. I could spare the space there but nowhere near that is needed for the build directory.
3. Allocation of 10G memory to virtualbox. 12G was too much and the whole system ran very slow just booting. 8GB worked but from listening to the edrive clanking I think a lot of swap was going on. 10G seems to be the sweet spot.

I think the original problem was due to automatic Windows Update updating my VC beyond 2015. On the virtualbox, I have automatic updates turned off and only updated the non-security updates. I still have 154 security updates not installed. When I tried originally to install all updates the system crashed on installing update 168 of 170 and I lost them all. I only use the virtual system for building Palemoon and only access the forum, the Mypal site and Microsoft sites.

I followed your linked instructions to the letter and successfully built Basilisk using the v28.2.1 At this moment I am building Palemoon using this mozconfig https://developer.palemoon.org/Developer_Guide:Build_Instructions/Pale_Moon/Windows. If successful then I will apply your XP patches, but of course, if the baseline build succeeds and the patched build doesn't, I will ask for support on your site. Thank you for that effort and your always helpful replies here.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35572
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problem building PM 28.1.0 on Win 7

Unread post by Moonchild » 2018-11-26, 21:30

Tony0945 wrote:I am sorry if I offended you.
Don't worry, you didn't -- I was merely making an observation about your approach.
Tony0945 wrote:I assume that at some point you will stop supporting Win 7 also.
I see no reason to for the foreseeable future. Windows 7 and later are all 'on the level" as far as our code base is concerned so there is no real reason to stop supporting Windows 7 even after the O.S. becomes EoL for Microsoft. Windows XP is simply a different class O.S. building on a different generation of the kernel and significantly different O.S. architecture premises. Windows 7, 8 8.1 and WaaS (Windows 10) all build on the same generation of O.S. architecture. I have already explained all of this many times before so I'll keep this brief here.

In addition, this is the range which UXP targets because of lifetime overlap; also the reason why Vista after brief consideration was dropped from the support table (in addition to being considered a prerelease state O.S.).
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Problem building PM 28.1.0 on Win 7

Unread post by New Tobin Paradigm » 2018-11-27, 03:47

Why am I cited in this thread?

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-27, 09:36

New Tobin Paradigm wrote:Why am I cited in this thread?
Only in passing as a member of Moonchild's team.
BTW, should this thread be in "technical chat"?

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-27, 09:47

The Palemoon build for Windows ran and showed no errors. However there is no executable built and no installer built. The last thing that "mach installer" said referenced file 7zSD.sfx which does exist. Recall that Basilisk did build on this system. Two runs were made one using this mozconfig and one using a mozconfig without the last line.

Code: Select all

ac_add_options --enable-application=palemoon
ac_add_options --enable-optimize="-O2"
ac_add_options --enable-jemalloc
ac_add_options --disable-eme
ac_add_options --disable-webrtc
ac_add_options --enable-devtools
ac_add_options --disable-gamepad
ac_add_options --disable-parental-controls 
 
WIN32_REDIST_DIR=$VCINSTALLDIR/redist/x86/Microsoft.VC140.CRT
WIN_UCRT_REDIST_DIR="C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x86"
ac_add_options --disable-tests
???????????

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35572
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Problem building PM 28.1.0 on Win 7

Unread post by Moonchild » 2018-11-27, 11:18

7zsd.sfx is part of the source tree. If you don't have it, then your checkout of the source was incomplete.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Tony0945

Re: Problem building PM 28.1.0 on Win 7

Unread post by Tony0945 » 2018-11-27, 17:46

Finally, success! Re-reading Feodor's link I see that the build options are available by putting "about:" in the address bar. Comparing that for the binary download to the build instructions, I modified the .mozconfig. The successful .mozconfig is:

Code: Select all

ac_add_options --enable-application=application/palemoon
ac_add_options --enable-optimize="-O2 -GS- -favor:AMD64"
ac_add_options --enable-jemalloc
ac_add_options --disable-eme
ac_add_options --disable-webrtc
ac_add_options --enable-devtools
ac_add_options --disable-gamepad
ac_add_options --disable-parental-controls 
ac_add_options --enable-update-channel=release
ac_add_options --disable-accessibility
ac_add_options --enable-official-branding
ac_add_options --enable-strip
ac_add_options --disable-tests

 
WIN32_REDIST_DIR=$VCINSTALLDIR/redist/x86/Microsoft.VC140.CRT
WIN_UCRT_REDIST_DIR="C:/Program Files (x86)/Windows Kits/10/Redist/ucrt/DLLs/x86"
I think the -GS- made the difference but that's just my guess.
Anyway. The original problem is solved. My next task is to modify the build (and disabling official branding), but that is beyond the scope of this forum, so I'm on my own.

Locked