"--disable-precompiled-startupcache" rejected?

This board is for discussions, bug reports, etc. for pre-releases of the v28 milestone building on UXP.
Walter Dnes
Astronaut
Astronaut
Posts: 652
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

"--disable-precompiled-startupcache" rejected?

Unread post by Walter Dnes » 2018-05-30, 21:35

Unless things have changed with v28, "--disable-precompiled-startupcache" is necessary if you want to optimize for an Intel/AMD cpu whose code won't run on the build machine. Assume that you're building on an Intel desktop. As part of the packaging process, some of the code, compiled for the target machine is executed on the build machine, unless you set "--disable-precompiled-startupcache". Trying to run AMD code (with 3dNOW! instruction set) or Atom code (with MOVBE instruction set) will obviously fail on a bog standard Intel desktop.

With the option enabled, the build fails early on with...
0:08.26 mozbuild.configure.options.InvalidOptionError: Unknown option: --disable-precompiled-startupcache

On a side note, which branch should I be using? This morning I ran...

git clone -b master --depth 1 https://github.com/MoonchildProductions/UXP.git pmsrc

...and the resulting build still has startup options not working (supposedly fixed already) and the (not quite) fullscreen problem. Is there a more bleeding edge branch, or do I simply have to wait for the fixes to be merged? Other than the 2 problems, v28 appears to run OK on Youtube, etc. I'm running up-to-date 32-bit Gentoo, with GCC 6.4.0.
There's a right way
There's a wrong way
And then there's my way

JustOff

Re: "--disable-precompiled-startupcache" rejected?

Unread post by JustOff » 2018-05-31, 10:17

Walter Dnes wrote:mozbuild.configure.options.InvalidOptionError: Unknown option: --disable-precompiled-startupcache
See https://github.com/MoonchildProductions/UXP/issues/418.
resulting build still has startup options not working (supposedly fixed already) and the (not quite) fullscreen problem
Can you reproduce these issues using the official unstable? Please be more specific, if it's so.

Walter Dnes
Astronaut
Astronaut
Posts: 652
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: "--disable-precompiled-startupcache" rejected?

Unread post by Walter Dnes » 2018-05-31, 16:40

JustOff wrote:Can you reproduce these issues using the official unstable? Please be more specific, if it's so.
This s a 32-bit desktop, and only 64-bit official build is available, so I have to do my own build. I'm currently using the "--depth 1" option to minimize the amount of downloading during "git clone". This cuts out history, etc. It won't work for people submitting code, but it is supposed to be sufficient to build the program. I'll try a full-blown "git clone" to be certain this is not the problem. I'll get back to you after that.
There's a right way
There's a wrong way
And then there's my way

Walter Dnes
Astronaut
Astronaut
Posts: 652
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: "--disable-precompiled-startupcache" rejected?

Unread post by Walter Dnes » 2018-05-31, 20:25

Still getting the same problems even with a full git clone. Am I getting a stale branch from git? My test setup...
Fento 32-bit
regular user account "waltdnes" and another account "user2"
  • tar up ".moonchild productions" and copy it to /dev/shm
  • copy Pale Moon tarball to /dev/shm
  • open an xterm
  • xhost + si:localuser:user2 (to allow that account to access X in waltdnes account)
  • su - user2
  • copy tarballs from /dev/shm and extract
I can launch v28 from the commandline as "user2", without stomping over the profiles in my main account. I can even run v27 and v28 side-by-side. My mozconfig follows. The last 4 or 5 items are to accomadate that I don't have certain libs on my machine. V27 works OK. I've even commented out size optimization in CFLAGS/CXXFLAGS

Code: Select all

mk_add_options AUTOCLOBBER=1
mk_add_options MOZ_MAKE_FLAGS="-j${cpucount}"
mk_add_options MOZ_OBJDIR=${builddir}
ac_add_options --enable-application=palemoon

ac_add_options --enable-optimize
# export CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
export CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
export CXXFLAGS="${CFLAGS}"

ac_add_options --with-branding=application/palemoon/branding/unofficial

# Pale Moon only options:
export MC_PALEMOON=1
ac_add_options --enable-default-toolkit=cairo-gtk2

# Disable add-ons signing
# Disable checking that add-ons are signed by the trusted root
MOZ_ADDON_SIGNING=
# Disable enforcing that add-ons are signed by the trusted root
MOZ_REQUIRE_SIGNING=
ac_add_options --enable-jemalloc
ac_add_options --enable-strip
ac_add_options --with-pthreads

ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-eme
ac_add_options --disable-parental-controls
ac_add_options --disable-accessibility
ac_add_options --disable-webrtc
ac_add_options --disable-gamepad
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater

# Disable telemetry reporting
export MOZ_TELEMETRY_REPORTING=

ac_add_options --x-libraries=/usr/lib


ac_add_options --disable-dbus
ac_add_options --disable-gconf
ac_add_options --disable-gio
ac_add_options --disable-official-branding
ac_add_options --disable-pulseaudio
There's a right way
There's a wrong way
And then there's my way

Walter Dnes
Astronaut
Astronaut
Posts: 652
Joined: 2015-07-30, 20:29
Location: Vaughan, ON, Canada

Re: "--disable-precompiled-startupcache" rejected?

Unread post by Walter Dnes » 2018-05-31, 21:49

Just to confitm; in the source dir, the command "git branch" returns "* master".
There's a right way
There's a wrong way
And then there's my way