https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70872
Bug ID: 70872
Summary: c++ regression malloc not found c++ 5.3.0 compiles
fine
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zeccav at gmail dot com
Target Milestone: ---
c++ fails to compile some mozilla firefox version 42 cc files
c++ 5.3.0 compiles fine
firefox configured with
../configure --disable-gconf
then run
make
As in:
c++ -o Unified_cpp_src_common_linux0.o -c -I../../../../../../dist/stl_wrappers
-I../../../../../../dist/system_wrappers -include
/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/config/gcc_hidden.h
-DNO_STABS_SUPPORT -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API
-DIMPL_LIBXUL -DAB_CD=en-US -DNO_NSPR_10_SUPPORT
-I/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/toolkit/crashreporter/google-breakpad/src/common/linux
-I.
-I/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/toolkit/crashreporter/google-breakpad/src
-I../../../../../../dist/include
-I/home/vitti/rpmbuild/SOURCES/firefox-42.0/firefox-obj/dist/include/nspr
-I/home/vitti/rpmbuild/SOURCES/firefox-42.0/firefox-obj/dist/include/nss
-fPIC -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -MD -MP
-MF .deps/Unified_cpp_src_common_linux0.o.pp -Wall -Wempty-body
-Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof
-Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
-fno-math-errno -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g
-freorder-blocks -Os -fomit-frame-pointer
/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/firefox-obj/toolkit/crashreporter/google-breakpad/src/common/linux/Unified_cpp_src_common_linux0.cpp
In file included from ../../../../../../dist/stl_wrappers/cstdlib:34:0,
from
/home/vitti/1tb/vitti/local/gcc-6.1.0/include/c++/6.1.0/stdlib.h:36,
from ../../../../../../dist/system_wrappers/stdlib.h:3,
from
/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/toolkit/crashreporter/google-breakpad/src/common/linux/guid_creator.cc:35,
from
/home/vitti/1tb/vitti/rpmbuild/SOURCES/firefox-42.0/firefox-obj/toolkit/crashreporter/google-breakpad/src/common/linux/Unified_cpp_src_common_linux0.cpp:11:
../../../../../../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);
^