Le 12/06/2016 à 17:25, Ken Moffat a écrit :
On Sun, Jun 12, 2016 at 12:16:57PM +0200, Pierre Bechetoille wrote:
Hi Ken,

I have not yet upgraded firefox to release 47 (need to install autoconf
2.13) but I also encountered segfaults on youtube with firefox 46: see my
previous post last month 
(http://lists.linuxfromscratch.org/pipermail/blfs-support/2016-May/077943.html)
and I solved it adding -fno-schedule-insns2 to CFLAGS and CXXFLAGS.

Archlinux uses those flags and others to compile firefox 47 (see 
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/firefox):

|# GCC 6 CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse
-fno-schedule-insns2" CXXFLAGS+=" -fno-delete-null-pointer-checks
-fno-lifetime-dse -fno-schedule-insns2"|


Did you try that ?

Pierre
Hi Pierre,

I could have sworn I was doing that, but now that I've gone to my
script to check I see that I am not using it.  Stupid Ken!

I'm also using the two patches which both Arch and fedora use,
mozilla-1245076-1.patch and mozilla-1245076.patch.

And I'm only using the additions for c++, I mistakenly thought there
was no invocation of gcc, only g++ - but I've just found one in my
log.

What I had been doing was:
export CXX='g++ -std=c++11 -fno-lifetime-dse -fno-delete-null-pointer-checks'

As well as adding -fno-schedule-insns2 I'd better do the same for CC
or switch back to adding to CFLAGS.

For autoconf-2.13 I've uploaded a patch to
http://www.linuxfromscratch.org/patches/downloads/autoconf/autoconf-2.13-consolidated_fixes-1.patch
and I build it with:

apply the patch

mv -v autoconf.texi autoconf213.texi
rm autoconf.info

./configure --prefix=/usr --program-suffix=-2.13

make ${MAKEFLAGS}

I then run the tests (needs dejagnu) :

make check
(all 253 tests should pass - one of the fedora patches allowed a few
to run, the rest were fixed by changing where mktemp is looked for.)

make install
install -v -m644 autoconf213.info /usr/share/info
install-info --info-dir=/usr/share/info/ autoconf213.info

Many Thanks for making me review what I've been doing.  I'll give it
another go.  Cheers.

ĸen

Hi Ken,

Thanks for your instructions for autoconf-2.13.
I installed it and successfully compiled firefox 47.0 with:
CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" CXX='g++ -std=c++11' make -f client.mk

No crash until now. Youtube plays fine.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to