Closed
Bug 647458
Opened 13 years ago
Closed 12 years ago
Elfhack fails to build with link-time optimization (gcc 4.6.0)
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 649965
People
(Reporter: octoploid, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.2a1pre) Gecko/20100101 Firefox/4.2a1pre Build Identifier: elfhack doesn't build with -flto using gcc-4.6.0 with gold: c++ -o elfhack -fno-rtti -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 -Wno-long-long -march=native -fpermissive -flto=4 -fuse-linker-plugin -fwhole-program -fno-strict-aliasing -fshort-wchar -pthread -pipe -fexceptions -DNDEBUG -DTRIMMED -g -O3 -lpthread -Wl,-O1,--hash-style=gnu,--as-needed,--no-keep-memory -Wl,-rpath-link,/var/tmp/mozilla-central/moz-build-dir/dist/bin -Wl,-rpath-link,/usr/lib host_elf.o host_elfhack.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/ccGQbukN.ltrans3.ltrans.o: in function _ZN8Elf_Ehdr9serializeERSt14basic_ofstreamIcSt11char_traitsIcEEcc.local.402:/var/tmp/mozilla-central/build/unix/elfhack/elfxx.h:239: error: undefined reference to 'void Elf_Ehdr_Traits::swap<big_endian, Elf64_Ehdr, serializable<Elf_Ehdr_Traits> >(serializable<Elf_Ehdr_Traits>&, Elf64_Ehdr&)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/ccGQbukN.ltrans3.ltrans.o: in function _ZN8Elf_Ehdr9serializeERSt14basic_ofstreamIcSt11char_traitsIcEEcc.local.402:/var/tmp/mozilla-central/build/unix/elfhack/elfxx.h:228: error: undefined reference to 'void Elf_Ehdr_Traits::swap<big_endian, Elf32_Ehdr, serializable<Elf_Ehdr_Traits> >(serializable<Elf_Ehdr_Traits>&, Elf32_Ehdr&)' collect2: ld returned 1 exit status make[7]: *** [elfhack] Error 1 or with gnu-ld: In function `serialize': /var/tmp/mozilla-central/build/unix/elfhack/elfxx.h:239: undefined reference to `void Elf_Ehdr_Traits::swap<big_endian, Elf64_Ehdr, serializable<Elf_Ehdr_Traits> >(serializable<Elf_Ehdr_Traits>&, Elf64_Ehdr&)' /var/tmp/mozilla-central/build/unix/elfhack/elfxx.h:228: undefined reference to `void Elf_Ehdr_Traits::swap<big_endian, Elf32_Ehdr, serializable<Elf_Ehdr_Traits> >(serializable<Elf_Ehdr_Traits>&, Elf32_Ehdr&)' collect2: ld returned 1 exit status Reproducible: Always
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 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
•