Request for help building PM

Talk about code development, features, specific bugzilla bugs, enhancements, patches, and other highly technical things.

Moderator: satrow

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 referenced Bugzilla bugs, mercurial, 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. Most "bug reports" do not belong in this board and should initially be posted in Community Support or other relevant support boards.

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.
User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Request for help building PM

Unread post by SamSpeed » 2019-02-02, 00:22

Been trying to build PM, think I've done all the right things according to the instructions. But have run into this error at the "./mach build" part. See
mach_error.jpg
Does this mean anything to anyone? A Python issue?

Some years back I managed to build FireFox -- a 'hello world' version so to speak, so I know it can be a challenge

Thanks in advance for help or suggestions.
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

User avatar
adesh
Astronaut
Astronaut
Posts: 664
Joined: 2017-06-06, 07:38

Re: Request for help building PM

Unread post by adesh » 2019-02-02, 12:29

Just a guess, but probably Python is not able to find the correct module because backtrace shows mixed directory delimeters - "/" and "\" in the file path. That raises another question - why are using MinGW? I don't think that is the supported configuration. Better to stick with documented Visulal Studio method while on Windows.
Last edited by adesh on 2019-02-02, 12:47, edited 1 time in total.

User avatar
Fedor2
Astronaut
Astronaut
Posts: 649
Joined: 2016-04-11, 01:26

Re: Request for help building PM

Unread post by Fedor2 » 2019-02-02, 12:46

Do not confuse, MinGW was come form the mozzila build tools, nothing to do with it.

Suggest make sure that source code is downloaded properly, then change directory to more simple no dots and dash (uxp for example), and for exclude possible mess inside mozconfig, remove it at all and try.

User avatar
New Tobin Paradigm
Off-Topic Sheriff
Off-Topic Sheriff
Posts: 5585
Joined: 2012-10-09, 19:37
Location: Sector 001

Re: Request for help building PM

Unread post by New Tobin Paradigm » 2019-02-02, 15:04

Image
- So then, "mono" means one, and "rail" means rail! -
And that concludes our intensive three-week course.
http://binaryoutcast.com/ | http://thereisonlyxul.org/

User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Re: Request for help building PM

Unread post by SamSpeed » 2019-02-03, 21:38

Indeed! There was wrongness at the source code level. The zipfile(s) that I downloaded all seemed to be corrupt in some way. Naturally I ignored the errors hoping for the best. Depending on the zip tool (7zip, IZARC, etc) I will see errors like invalid header or CRC error -- Carumba. This occurred even downloading the zip from Github.

For example, UXP-PM28.2.0_Release zipfile was missing the file 'mach', which seems to be kindof important for building.

Any way after cloning the repository, things are looking much better and it's been a fun adventure so far reading and debugging python (which is new to me).

The bad news I'm stuck with an _MSC_VER issue -- looks like the installer failed to make all the updates -- but that's between me and microsoft :)
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

Lurker_01
Apollo supporter
Apollo supporter
Posts: 35
Joined: 2015-06-12, 14:59
Location: Uruguay

Re: Request for help building PM

Unread post by Lurker_01 » 2019-02-04, 00:55

The build docs are incomplete apart of requiring Visual Studio 2015 Update 3 it also requires kb3165756 update over it, otherwise i believe it causes _MSC_VER issue.
You also may just modify that restriction in one of the source files but Firefox people said that this is the Min version that they believe that doesn't cause compile bugs.
Also the build requires 8.3 filenames with i had disabled on my SSD i believe this restriction is lifted in one of the Firefox bugs and i don't remember it's number.

User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Re: Request for help building PM

Unread post by SamSpeed » 2019-02-04, 20:55

Lurker, the build docs do say to get all the updates for msvc -- the trouble was the updates fail for reasons only ms tech reps can understand. So I took your advice and changed the min version down a couple of notches to 19.00.24210 -- justa global search and replace. And she's off and running.

Until ms strikes again -- application experience services were disabled and the linker could not write conftest.exe. This file is built many times in rapid succession and AES does not like that. Apparently it always loads and even if disabled, has some behaviours. It took a bit of googling to find that solution.

So it ran and ran and it finally says, "Sorry it took so long" and that made me laugh.

Now XPCOM will not load when I invoke 'mach run'. I tried 'mach rage' and that did not help, but ain't gonna give up :)
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23944
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Request for help building PM

Unread post by Moonchild » 2019-02-04, 20:59

Step 1 for successfully building Pale Moon:

Get yourself a stable workstation with a stable and reliable internet (broadband) connection. otherwise you're electing the way of pain.
City of Heroes public server: https://www.moonshard.org/ -- Vote for it on cohservers.com

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Re: Request for help building PM

Unread post by SamSpeed » 2019-02-04, 21:59

Moonchild -- sound advice sir, thank you.

Actually my workstation is very much like a stable. One that has not been cleaned in a long time. I've got versions of xpcom.dll going back to 2009.

Seriously, would you blame a broadband connection for corrupt downloaded zip files? I've never seen such but there's lots I've never seen.
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 23944
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Request for help building PM

Unread post by Moonchild » 2019-02-04, 22:46

SamSpeed wrote:Seriously, would you blame a broadband connection for corrupt downloaded zip files?
A bad internet connection is the #1 reason for corrupt downloads. If connections get interrupted or simply cut off, you end up with corrupt archives that won't unpack properly and have files missing. Contrary to what you seem to believe, you in fact DO need every single file in the source archive to be unpacked and in good order.
"Ignoring crc errors and hoping things will work" is... well... let's just say with that approach you'll never be able to build.

I'm not sure if you're joking here or not, but in all seriousness: stable as in an adjective, not a noun.
City of Heroes public server: https://www.moonshard.org/ -- Vote for it on cohservers.com

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Lurker_01
Apollo supporter
Apollo supporter
Posts: 35
Joined: 2015-06-12, 14:59
Location: Uruguay

Re: Request for help building PM

Unread post by Lurker_01 » 2019-02-05, 00:07

SamSpeed wrote:Lurker, the build docs do say to get all the updates for msvc -- the trouble was the updates fail for reasons only ms tech reps can understand. So I took your advice and changed the min version down a couple of notches to 19.00.24210 -- justa global search and replace. And she's off and running.
Yeah my problem was that after installing no updates were appealing as available.
If you want the kb3165756 update i can PM you.
SamSpeed wrote: Until ms strikes again -- application experience services were disabled and the linker could not write conftest.exe. This file is built many times in rapid succession and AES does not like that. Apparently it always loads and even if disabled, has some behaviours. It took a bit of googling to find that solution.
I had this problem on 27.x Build and this is another hidden requirement to have this service running, mine just failed the build outright with the service disabled.
SamSpeed wrote: So it ran and ran and it finally says, "Sorry it took so long" and that made me laugh.
With my FX6300 the build takes around 40 minutes and 30 minutes of Linker with 4GB linker memory usage.

User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Re: Request for help building PM

Unread post by SamSpeed » 2019-02-10, 06:22

Moonchild wrote:[quote="I'm not sure if you're joking here or not, but in all seriousness: stable as in an adjective, not a noun.
I'm not sure if you're joking here or not, but in all seriousness: stable as in an adjective, not a noun.[/quote wrote:
Moonchild you are really right about workstations -- and my comment was in a jocular vein. The workstation I use most is very stable (in the barnyard sense). But in another sense she is well experienced. She has seen a plethora of visual studio editions and usually comes out of the murk successfully. And she has lots of other resources available, lots of old songs to sing.

But realizing that she is in fact an old boat, maybe running out of new songs, I've moved on to a far less experienced workstation may become yet more fruitful.
Thanks
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

User avatar
SamSpeed
Hobby Astronomer
Hobby Astronomer
Posts: 24
Joined: 2017-11-03, 23:58

Re: Request for help building PM

Unread post by SamSpeed » 2019-02-22, 01:53

Well folks, I claim success. And I don't know where it came from -- I can take no credit.

I've been away from this effort to build for a while. But today, I got the latest update from source control, said, "mach clobber" and then "mach build", and then "mach run", and lo and behold there she was -- a New Moon -- right there in front of me. Mind you these things I've done before to no good effect. I've changed nothing other than refreshing sources for the nth time.

Now I get to have fun reading code, debugging, scratching my head and perhaps to dream of contributing.
Scientists and engineers stand on each others shoulders.
Programmers step on each others toes.

Post Reply