On Sun, Jun 12, 2016 at 01:17:15PM -0500, Bruce Dubbs wrote:
> Pierre Bechetoille wrote:
>
>
> > 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
>
> I'm not sure the syntax CFLAGS+="..." is valid. It is appropriate inside a
> Makefile, but not as an environment variable.
>
> That said, I did
>
> export CFLAGS="..."
> export CXXFLAGS=$CFLAGS
>
> and it looks like it is being picked up properly. I am trying without the
> -std=c++11' option.
>
> From the log a typical build looks like:
>
> c++ ... -fno-delete-null-pointer-checks -fno-lifetime-dse
> -fno-schedule-insns2 -fno-exceptions -fno-strict-aliasing -fno-rtti
> -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -g
> -freorder-blocks -Os -fomit-frame-pointer ...
>
Some parts use -Os, others use -O3.
> I am not using any patches.
>
> As of right now it is building. I'll reply again after it finishes and I
> can test.
>
> -- Bruce
>
Without the patches, on gcc-6.1 and LFS from 20160527 and BLFS from
20160531 it fails almost immediately -
/scratch/ken/firefox-47.0/firefox-build-dir/_virtualenv/bin/python
/scratch/ken/firefox-47.0/config/expandlibs_gen.py -o
libfallible.a.desc fallible.o
In file included from
/scratch/ken/firefox-47.0/firefox-build-dir/dist/stl_wrappers/cstdlib:34:0,
from /usr/include/c++/6.1.0/stdlib.h:36,
from
/scratch/ken/firefox-47.0/firefox-build-dir/dist/system_wrappers/stdlib.h:3,
from
/scratch/ken/firefox-47.0/firefox-build-dir/dist/include/mozilla/Assertions.h:43,
from
/scratch/ken/firefox-47.0/firefox-build-dir/dist/include/mozilla/ArrayUtils.h:14,
from
/scratch/ken/firefox-47.0/mozglue/misc/StackWalk.cpp:9:
/scratch/ken/firefox-47.0/firefox-build-dir/dist/include/mozilla/mozalloc.h:
In function ‘void* operator new(size_t, const std::nothrow_t&)’:
/scratch/ken/firefox-47.0/firefox-build-dir/dist/include/mozilla/mozalloc.h:192:28:
error: ‘malloc’ was not declared in this scope
return malloc_impl(size);
ĸen
--
I had to walk fifteen miles to school, barefoot in the snow. Uphill both ways.
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page