Site crashing Pale Moon Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
stevenpusser
Project Contributor
Project Contributor
Posts: 903
Joined: 2015-08-01, 18:33

Re: Site crashing Pale Moon

Unread post by stevenpusser » 2017-10-14, 18:40

Well...Ubuntu's gcc-4.9 sure doesn't seem to support Graphite out of the box, unlike Debian's--nothing but build failures. Hey, Ubuntu != Debian. I'll have to try another tack to enable that, otherwise, I'll have to drop those flags.

Update: dropping Graphite for now, as it still causes build failures on the OBS for everything except Debian 8. Can't figure out why the Debian 7 and 9 builds were successful in virtual machines on my own laptop.

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

Re: Site crashing Pale Moon

Unread post by Walter Dnes » 2017-10-15, 00:32

stevepusser wrote:Well...Ubuntu's gcc-4.9 sure doesn't seem to support Graphite out of the box, unlike Debian's--nothing but build failures. Hey, Ubuntu != Debian. I'll have to try another tack to enable that, otherwise, I'll have to drop those flags.

Update: dropping Graphite for now, as it still causes build failures on the OBS for everything except Debian 8. Can't figure out why the Debian 7 and 9 builds were successful in virtual machines on my own laptop.
I run a CentOS 6.5 chroot, with an ancient gcc. I built gcc-4.9.4 manually, as well as python 2.7 and YASM. I've got the gcc build down to a script. The following script will build gcc-4.9.4 with graphite support in $HOME/gcc494/

Code: Select all

#!/bin/bash
#
# Instructions adapted from https://gcc.gnu.org/wiki/InstallingGCC

mkdir gccstuff
cd gccstuff
wget http://ftpmirror.gnu.org/gcc/gcc-4.9.4/gcc-4.9.4.tar.bz2
tar xjf gcc-4.9.4.tar.bz2

#
# To get gmp, mpc, mpfr, and isl libs
# You *MUST* run this script from the top-level GCC source dir

cd gcc-4.9.4
contrib/download_prerequisites

export CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
export CXXFLAGS="${CFLAGS}"
export MAKEOPTS="-j2"

#
# You *MUST NOT* run ./configure from the toplevel GCC source dir

mkdir gcc-build && cd gcc-build

../configure --prefix=$HOME/gcc494 \
             --disable-multilib \
             --enable-libstdcxx-threads \
             --enable-libstdcxx-time \
             --enable-shared \
             --enable-__cxa_atexit \
             --disable-libunwind-exceptions \
             --disable-libada

make -j2

make install
Note that gcc-4.9.4 will NOT be the native gcc compiler on your system. In your build, you must "source" or include the following commands in your build script before launching gcc, to point the build process to the desired gcc version.

Code: Select all

export GCCX_ROOT=$HOME/gcc494
export PATH=$GCCX_ROOT/bin:$PATH
export MANPATH=$GCCX_ROOT/share/man:MANPATH
export INFOPATH=$GCCX_ROOT/share/info:$INFOPATH
export LD_LIBRARY_PATH=$GCCX_ROOT/lib:$GCCX_ROOT/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=$GCCX_ROOT/lib:$GCCX_ROOT/lib:$LD_RUN_PATH
export LIBRARY_PATH=$GCCX_ROOT/lib:$GCCX_ROOT/lib:$LIBRARY_PATH
export INCLUDE_PATH=$GCCX_ROOT/include:$INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$GCCX_ROOT/include:$CPLUS_INCLUDE_PATH
export C_INCLUDE_PATH=$GCCX_ROOT/include:$C_INCLUDE_PATH
To do this with gcc-5.4.0 do a global search+replace on the above 2 sets of commands

Code: Select all

s/4.9.4/5.4.0/
s/494/540/
There's a right way
There's a wrong way
And then there's my way

User avatar
stevenpusser
Project Contributor
Project Contributor
Posts: 903
Joined: 2015-08-01, 18:33

Re: Site crashing Pale Moon

Unread post by stevenpusser » 2017-10-15, 21:05

On the OBS for Debian and Ubuntu, I can't just do manual build from source like that; everything's got to be built into Debian style packages. But I can see if I can change those configurations for at least the the gcc-4.9.4 I added for Debian 9.

Are there any test results as to how these optimizations help Pale Moon? I also saw something about -03 optimization automatically enabling vectorization.

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

Re: Site crashing Pale Moon

Unread post by Walter Dnes » 2017-10-16, 01:18

stevepusser wrote:I also saw something about -03 optimization automatically enabling vectorization.
Do NOT use "-O3". Even us "Gentoo Ricers" stay away from it. Except in very limited circumstances, it creates very crashy binaries.
There's a right way
There's a wrong way
And then there's my way

Locked