Bug#822716: firefox: FTBFS with GCC 6: 'malloc' was not declared in this scope

Martin Michlmayr tbm at hpe.com
Tue Apr 26 18:35:44 UTC 2016


Package: firefox
Version: 45.0.2-1
Severity: normal
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but will probably come out this week.

You can find GCC 6 in unstable (gcc-6).  To build with
GCC 6, you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> mkdir lib
> In file included from /<<PKGBUILDDIR>>/build-browser/dist/stl_wrappers/cstdlib:34:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from /<<PKGBUILDDIR>>/build-browser/dist/system_wrappers/stdlib.h:3,
>                  from /usr/lib/gcc/x86_64-linux-gnu/6/include/mm_malloc.h:27,
>                  from /usr/lib/gcc/x86_64-linux-gnu/6/include/xmmintrin.h:34,
>                  from /usr/lib/gcc/x86_64-linux-gnu/6/include/emmintrin.h:31,
>                  from /<<PKGBUILDDIR>>/intl/uconv/nsUTF8ToUnicodeSSE2.cpp:8:
> ../../dist/include/mozilla/mozalloc.h: In function 'void* operator new(size_t, const std::nothrow_t&)':
> ../../dist/include/mozilla/mozalloc.h:192:28: error: 'malloc' was not declared in this scope
>      return malloc_impl(size);
>                             ^
> ../../dist/include/mozilla/mozalloc.h: In function 'void* operator new [](size_t, const std::nothrow_t&)':
> ../../dist/include/mozilla/mozalloc.h:204:28: error: 'malloc' was not declared in this scope
>      return malloc_impl(size);
>                             ^
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete(void*)':
> ../../dist/include/mozilla/mozalloc.h:210:25: error: 'free' was not declared in this scope
>      return free_impl(ptr);
>                          ^
> ../../dist/include/mozilla/mozalloc.h:210:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete(void*, const std::nothrow_t&)':
> ../../dist/include/mozilla/mozalloc.h:216:25: error: 'free' was not declared in this scope
>      return free_impl(ptr);
>                          ^
> ../../dist/include/mozilla/mozalloc.h:216:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete [](void*)':
> ../../dist/include/mozilla/mozalloc.h:222:25: error: 'free' was not declared in this scope
>      return free_impl(ptr);
>                          ^
> ../../dist/include/mozilla/mozalloc.h:222:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete [](void*, const std::nothrow_t&)':
> ../../dist/include/mozilla/mozalloc.h:228:25: error: 'free' was not declared in this scope
>      return free_impl(ptr);
>                          ^
> ../../dist/include/mozilla/mozalloc.h:228:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
> ../../dist/include/mozilla/mozalloc.h: In function 'void* operator new(size_t, const mozilla::fallible_t&)':
> ../../dist/include/mozilla/mozalloc.h:254:28: error: 'malloc' was not declared in this scope
>      return malloc_impl(size);
>                             ^
> ../../dist/include/mozilla/mozalloc.h: In function 'void* operator new [](size_t, const mozilla::fallible_t&)':
> ../../dist/include/mozilla/mozalloc.h:260:28: error: 'malloc' was not declared in this scope
>      return malloc_impl(size);
>                             ^
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete(void*, const mozilla::fallible_t&)':
> ../../dist/include/mozilla/mozalloc.h:266:18: error: 'free' was not declared in this scope
>      free_impl(ptr);
>                   ^
> ../../dist/include/mozilla/mozalloc.h: In function 'void operator delete [](void*, const mozilla::fallible_t&)':
> ../../dist/include/mozilla/mozalloc.h:272:18: error: 'free' was not declared in this scope
>      free_impl(ptr);
>                   ^
> ../../dist/include/mozilla/mozalloc.h: In member function 'void InfallibleAllocPolicy::free_(void*)':
> ../../dist/include/mozilla/mozalloc.h:310:23: error: 'free' was not declared in this scope
>          free_impl(aPtr);
>                        ^
> /bin/bash /<<PKGBUILDDIR>>/intl/icu/source/mkinstalldirs bin
> mkdir bin
> make[6]: Making `all' in `stubdata'
> /<<PKGBUILDDIR>>/config/rules.mk:956: recipe for target 'nsUTF8ToUnicodeSSE2.o' failed
> make[5]: *** [nsUTF8ToUnicodeSSE2.o] Error 1
> make[5]: *** Waiting for unfinished jobs....

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the pkg-mozilla-maintainers mailing list