This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jun 2011 10:32:35 +0000
- Subject: [Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO
- Auto-submitted: auto-generated
- References: <bug-45375-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #99 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-06-15 10:32:08 UTC ---
New build failure with "gold" and gcc 4.7.0 20110615:
ake[6]: Entering directory
`/var/tmp/mozilla-central/moz-build-dir/js/src/shell'
js.cpp
c++ -o js.o -c -I../../../dist/system_wrappers_js -include
/var/tmp/mozilla-central/js/src/config/gcc_hidden.h -DEXPORT_JS_API
-DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -I/var/tmp/mozilla-central/js/src -I..
-I/var/tmp/mozilla-central/js/src/shell -I. -I../../../dist/include
-I../../../dist/include/nsprpub
-I/var/tmp/mozilla-central/moz-build-dir/dist/include/nspr -fPIC -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -march=native
-ffunction-sections -fdata-sections -fno-strict-aliasing -pthread -pipe
-DNDEBUG -DTRIMMED -fprofile-generate -O3 -DMOZILLA_CLIENT -include
../js-confdefs.h -MD -MF .deps/js.pp
/var/tmp/mozilla-central/js/src/shell/js.cpp
jsworkers.cpp
c++ -o jsworkers.o -c -I../../../dist/system_wrappers_js -include
/var/tmp/mozilla-central/js/src/config/gcc_hidden.h -DEXPORT_JS_API
-DOSTYPE=\"Linux3.0\" -DOSARCH=Linux -I/var/tmp/mozilla-central/js/src -I..
-I/var/tmp/mozilla-central/js/src/shell -I. -I../../../dist/include
-I../../../dist/include/nsprpub
-I/var/tmp/mozilla-central/moz-build-dir/dist/include/nspr -fPIC -fno-rtti
-fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -march=native
-ffunction-sections -fdata-sections -fno-strict-aliasing -pthread -pipe
-DNDEBUG -DTRIMMED -fprofile-generate -O3 -DMOZILLA_CLIENT -include
../js-confdefs.h -MD -MF .deps/jsworkers.pp
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp: In member function âvoid
js::workers::MainQueue::destroy(JSContext*)â:
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp:371:16: warning: deleting
object of polymorphic class type âjs::workers::MainQueueâ which has non-virtual
destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp: In member function âbool
js::workers::ThreadPool::start(JSContext*)â:
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp:511:20: warning: deleting
object of polymorphic class type âjs::workers::WorkerQueueâ which has
non-virtual destructor might cause undefined behaviour
[-Wdelete-non-virtual-dtor]
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp: In member function âvoid
js::workers::ThreadPool::shutdown(JSContext*)â:
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp:548:16: warning: deleting
object of polymorphic class type âjs::workers::WorkerQueueâ which has
non-virtual destructor might cause undefined behaviour
[-Wdelete-non-virtual-dtor]
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp: In static member function
âstatic void js::workers::Worker::jsFinalize(JSContext*, JSObject*)â:
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp:690:20: warning: deleting
object of polymorphic class type âjs::workers::Workerâ which has non-virtual
destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp: In static member function
âstatic js::workers::Worker* js::workers::Worker::create(JSContext*,
js::workers::WorkerParent*, JSString*, JSObject*)â:
/var/tmp/mozilla-central/js/src/shell/jsworkers.cpp:1073:16: warning: deleting
object of polymorphic class type âjs::workers::Workerâ which has non-virtual
destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
In file included from /var/tmp/mozilla-central/js/src/shell/js.cpp:97:0:
/var/tmp/mozilla-central/js/src/jsobjinlines.h: In member function âvoid
JSObject::setArrayLength(uint32)â:
/var/tmp/mozilla-central/js/src/jsobjinlines.h:367:24: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
/usr/bin/python2.7 /var/tmp/mozilla-central/js/src/config/pythonpath.py
-I../config /var/tmp/mozilla-central/js/src/config/expandlibs_exec.py --uselist
-- c++ -o js -fno-rtti -fno-exceptions -Wall -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type
-pedantic -Wno-long-long -march=native -ffunction-sections -fdata-sections
-fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -fprofile-generate -O3
js.o jsworkers.o -lpthread -fprofile-generate -Wl,-rpath-link,/bin
-Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/lib
-L../../../dist/bin -L../../../dist/lib
-L/var/tmp/mozilla-central/moz-build-dir/dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl ../editline/libeditline.a ../libjs_static.a -ldl
/var/tmp/mozilla-central/moz-build-dir/js/src/shell/jsworkers.o:jsworkers.cpp:function
js::workers::Worker::processOneEvent(): warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoRequest::~JSAutoRequest()' is not defined locally
/var/tmp/mozilla-central/moz-build-dir/js/src/shell/jsworkers.o:jsworkers.cpp:function
js::workers::ThreadPool::start(JSContext*): warning: relocation refers to
discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoSuspendRequest::JSAutoSuspendRequest(JSContext*)'
is not defined locally
../libjs_static.a(jsapi.o):jsapi.cpp:function StopRequest(JSContext*): warning:
relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'js::AutoLockGC::~AutoLockGC()' is not defined locally
../libjs_static.a(jsapi.o):jsapi.cpp:function JS_ConvertArgumentsVA: warning:
relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
../libjs_static.a(jsapi.o):jsapi.cpp:function JS_New: warning: relocation
refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
../libjs_static.a(jsarray.o):jsarray.cpp:function array_toSource(JSContext*,
unsigned int, js::Value*): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'js::StringBuffer::StringBuffer(JSContext*)' is not
defined locally
../libjs_static.a(jsarray.o):jsarray.cpp:function
array_toString_sub(JSContext*, JSObject*, int, JSString*, js::Value*): warning:
relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'js::StringBuffer::StringBuffer(JSContext*)' is not
defined locally
../libjs_static.a(jsemit.o):jsemit.cpp:function BindNameToSlot(JSContext*,
JSCodeGenerator*, JSParseNode*): warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
../libjs_static.a(jsemit.o):jsemit.cpp:function BindNameToSlot(JSContext*,
JSCodeGenerator*, JSParseNode*): warning: relocation refers to discarded
section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
../libjs_static.a(jsfun.o):jsfun.cpp:function Function(JSContext*, unsigned
int, js::Value*): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
../libjs_static.a(jsfun.o):jsfun.cpp:function Function(JSContext*, unsigned
int, js::Value*): warning: relocation refers to discarded section
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: hidden symbol 'JSAutoByteString::~JSAutoByteString()' is not defined
locally
...
Using the bfd linker instead of "gold" seems to work.
gcc-4.6.1 also works fine.