Closed
Bug 1272378
Opened 8 years ago
Closed 8 years ago
build failure when using gcc6 (6.1.0)
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1245076
People
(Reporter: u403884, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160317220330 Steps to reproduce: Try to rebuild firefox version 45.0.1 (it used to build fine with gcc version 5.3.0). Actual results: The build fails when using gcc6 (version 6.1.0, latest): make[3]: ingresso nella directory "/home/guido/new/build-firefox-45.0.1/xpcom/glue" Unified_cpp_xpcom_glue0.o c++ -o Unified_cpp_xpcom_glue0.o -c -I/home/guido/new/build-firefox-45.0.1/dist/stl_wrappers -I/home/guido/new/build-firefox-45.0.1/dist/system_wrappers -include /home/guido/new/firefox-45.0.1/config/gcc_hidden.h -I/home/guido/new/firefox-45.0.1/xpcom/glue -I. -I/home/guido/new/firefox-45.0.1/xpcom/build -I/home/guido/new/firefox-45.0.1/xpcom/threads -I../../dist/include -I/usr/include/nspr -I/usr/include/nss3 -I/usr/include/pixman-1 -fPIC -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_xpcom_glue0.o.pp -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -O2 -march=core2 -mtune=core2 -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -DDEBUG -DTRACING -g -freorder-blocks -Os -fno-omit-frame-pointer -Wshadow /home/guido/new/build-firefox-45.0.1/xpcom/glue/Unified_cpp_xpcom_glue0.cpp In file included from /home/guido/new/build-firefox-45.0.1/dist/stl_wrappers/cstdlib:34:0, from /usr/include/c++/6.1.0/stdlib.h:36, from /home/guido/new/build-firefox-45.0.1/dist/system_wrappers/stdlib.h:3, from ../../dist/include/mozilla/mozalloc.h:8, from ../../dist/include/nscore.h:20, from ../../dist/include/mozilla/AppData.h:11, from /home/guido/new/firefox-45.0.1/xpcom/glue/AppData.cpp:7, from /home/guido/new/build-firefox-45.0.1/xpcom/glue/Unified_cpp_xpcom_glue0.cpp:2: ../../dist/include/mozilla/mozalloc.h: In function ‘void* operator new(size_t, const std::nothrow_t&)’: ../../dist/include/mozilla/mozalloc.h:203: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:215: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:221:25: error: ‘free’ was not declared in this scope return free_impl(ptr); ^ ../../dist/include/mozilla/mozalloc.h:221: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:227:25: error: ‘free’ was not declared in this scope return free_impl(ptr); ^ ../../dist/include/mozilla/mozalloc.h:227: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:233:25: error: ‘free’ was not declared in this scope return free_impl(ptr); ^ ../../dist/include/mozilla/mozalloc.h:233: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:239:25: error: ‘free’ was not declared in this scope return free_impl(ptr); ^ ../../dist/include/mozilla/mozalloc.h:239: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:265: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:271: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:277: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:283: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:321:23: error: ‘free’ was not declared in this scope free_impl(aPtr); ^ /home/guido/new/firefox-45.0.1/config/rules.mk:956: set di istruzioni per l'obiettivo "Unified_cpp_xpcom_glue0.o" non riuscito make[3]: *** [Unified_cpp_xpcom_glue0.o] Errore 1 make[3]: uscita dalla directory "/home/guido/new/build-firefox-45.0.1/xpcom/glue" /home/guido/new/firefox-45.0.1/config/recurse.mk:71: set di istruzioni per l'obiettivo "xpcom/glue/target" non riuscito make[2]: *** [xpcom/glue/target] Errore 2 make[2]: uscita dalla directory "/home/guido/new/build-firefox-45.0.1" /home/guido/new/firefox-45.0.1/config/recurse.mk:32: set di istruzioni per l'obiettivo "compile" non riuscito make[1]: *** [compile] Errore 2 make[1]: uscita dalla directory "/home/guido/new/build-firefox-45.0.1" /home/guido/new/firefox-45.0.1/config/rules.mk:547: set di istruzioni per l'obiettivo "default" non riuscito make: *** [default] Errore 2 Expected results: The build should not have failed (it used to build fine with gcc5).
Previously this issue has been reported as a bug against gcc6, but later it has been marked as an invalid gcc bug: see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70872
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•