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.
Site crashing Pale Moon Topic is solved
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!
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!
- stevenpusser
- Project Contributor
- Posts: 903
- Joined: 2015-08-01, 18:33
-
- Astronaut
- Posts: 650
- Joined: 2015-07-30, 20:29
- Location: Vaughan, ON, Canada
Re: Site crashing Pale Moon
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/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.
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
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
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
There's a wrong way
And then there's my way
- stevenpusser
- Project Contributor
- Posts: 903
- Joined: 2015-08-01, 18:33
Re: Site crashing Pale Moon
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.
Are there any test results as to how these optimizations help Pale Moon? I also saw something about -03 optimization automatically enabling vectorization.
-
- Astronaut
- Posts: 650
- Joined: 2015-07-30, 20:29
- Location: Vaughan, ON, Canada
Re: Site crashing Pale Moon
Do NOT use "-O3". Even us "Gentoo Ricers" stay away from it. Except in very limited circumstances, it creates very crashy binaries.stevepusser wrote:I also saw something about -03 optimization automatically enabling vectorization.
There's a right way
There's a wrong way
And then there's my way
There's a wrong way
And then there's my way