Bug#731007: iceape: FTBFS on arm*: elfhack problems

Andreas Beckmann anbe at debian.org
Sat Nov 30 22:38:01 UTC 2013


Package: iceape
Version: 2.7.12-1
Severity: serious
Tags: jessie sid
Justification: fails to build from source (but built successfully in the past)

Hi,

iceape fails to build on armel/armhf:

https://buildd.debian.org/status/fetch.php?pkg=iceape&arch=armel&ver=2.7.12-1%2Bb1&stamp=1377309045
https://buildd.debian.org/status/fetch.php?pkg=iceape&arch=armhf&ver=2.7.12-1%2Bb1&stamp=1384983954

armhf:

make -C unix libs
make[7]: Entering directory `/«PKGBUILDDIR»/build-iceape/mozilla/build/unix'
make -C elfhack libs
make[8]: Entering directory `/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack'
elf.cpp
g++ -o host_elf.o -c -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss     -I/usr/include/nspr /«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp: In member function 'void ElfDynamic_Section::setValueForType(unsigned int, ElfValue*)':
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp:669:28: warning: deleting object of polymorphic class type 'ElfValue' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
             delete dyns[i].value;
                            ^
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp: In destructor 'virtual ElfDynamic_Section::~ElfDynamic_Section()':
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp:783:24: warning: deleting object of polymorphic class type 'ElfValue' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
         delete dyns[i].value;
                        ^
elfhack.cpp
g++ -o host_elfhack.o -c -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss     -I/usr/include/nspr /«PKGBUILDDIR»/mozilla/build/unix/elfhack/elfhack.cpp
g++ -o elfhack -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer -Wl,--as-needed -lpthread    -Wl,-rpath-link,/«PKGBUILDDIR»/build-iceape/mozilla/dist/bin -Wl,-rpath-link,/usr/lib  host_elf.o host_elfhack.o  
/usr/bin/ld: warning: host_elf.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/bin/ld: warning: host_elfhack.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
test.c
cc -o test.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O0  -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/test.pp /«PKGBUILDDIR»/mozilla/build/unix/elfhack/test.c
/«PKGBUILDDIR»/build-iceape/mozilla/config/nsinstall -D inject
cp ../../../../../mozilla/build/unix/elfhack/inject.c inject/arm.c
arm.c
cc -o inject/arm.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux -DBITS=32  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O2 -fno-stack-protector   -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/arm.pp /«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/inject/arm.c
cp ../../../../../mozilla/build/unix/elfhack/inject.c inject/arm-noinit.c
arm-noinit.c
cc -o inject/arm-noinit.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux -DBITS=32 -DNOINIT  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O2 -fno-stack-protector   -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/arm-noinit.pp /«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/inject/arm-noinit.c
dummy.c
cc -o dummy.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -D_FORTIFY_SOURCE=2 -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -W -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -pthread -ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/dummy.pp /«PKGBUILDDIR»/mozilla/build/unix/elfhack/dummy.c
g++ -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,test.so -o test.so -Wl,--as-needed -lpthread    -Wl,-rpath-link,/«PKGBUILDDIR»/build-iceape/mozilla/dist/bin -Wl,-rpath-link,/usr/lib  test.o
===
=== If you get failures below, please file a bug describing the error
=== and your environment (compiler and linker versions), and use
=== --disable-elf-hack until this is fixed.
===
/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/elfhack -b test.so
test.so: Reduced by 3984 bytes
# Fail if the backup file doesn't exist
[ -f "test.so.bak" ]
# Fail if the new library doesn't contain less relocations
[ $(objdump -R test.so.bak | wc -l) -gt $(objdump -R test.so | wc -l) ]
cc -o dummy dummy.o test.so -Wl,--as-needed -lpthread    -Wl,-rpath-link,/«PKGBUILDDIR»/build-iceape/mozilla/dist/bin -Wl,-rpath-link,/usr/lib 
# Will either crash or return exit code 1 if elfhack is broken
LD_LIBRARY_PATH=/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack /«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/dummy
Segmentation fault
make[8]: *** [libs] Error 139
make[8]: Leaving directory `/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack'


============================================================================================================================
armel:

make -C elfhack libs
make[8]: Entering directory `/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack'
elf.cpp
g++ -o host_elf.o -c -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D__ARM_PCS -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss     -I/usr/include/nspr /«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp: In member function 'void ElfDynamic_Section::setValueForType(unsigned int, ElfValue*)':
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp:669:28: warning: deleting object of polymorphic class type 'ElfValue' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
             delete dyns[i].value;
                            ^
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp: In destructor 'virtual ElfDynamic_Section::~ElfDynamic_Section()':
/«PKGBUILDDIR»/mozilla/build/unix/elfhack/elf.cpp:783:24: warning: deleting object of polymorphic class type 'ElfValue' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
         delete dyns[i].value;
                        ^
elfhack.cpp
g++ -o host_elfhack.o -c -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D__ARM_PCS -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss     -I/usr/include/nspr /«PKGBUILDDIR»/mozilla/build/unix/elfhack/elfhack.cpp
g++ -o elfhack -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D__ARM_PCS -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer -Wl,--as-needed -lpthread    -Wl,-rpath-link,/«PKGBUILDDIR»/build-iceape/mozilla/dist/bin -Wl,-rpath-link,/usr/lib  host_elf.o host_elfhack.o  
/usr/bin/ld: warning: host_elf.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
/usr/bin/ld: warning: host_elfhack.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail
test.c
cc -o test.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O0  -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/test.pp /«PKGBUILDDIR»/mozilla/build/unix/elfhack/test.c
/«PKGBUILDDIR»/build-iceape/mozilla/config/nsinstall -D inject
cp ../../../../../mozilla/build/unix/elfhack/inject.c inject/arm.c
arm.c
cc -o inject/arm.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux -DBITS=32  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O2 -fno-stack-protector   -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/arm.pp /«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/inject/arm.c
cp ../../../../../mozilla/build/unix/elfhack/inject.c inject/arm-noinit.c
arm-noinit.c
cc -o inject/arm-noinit.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux -DBITS=32 -DNOINIT  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -O2 -fno-stack-protector   -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/arm-noinit.pp /«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/inject/arm-noinit.c
dummy.c
cc -o dummy.o -c -fvisibility=hidden -DMOZ_SUITE=1 -DOSTYPE=\"Linux3.2\" -DOSARCH=Linux  -I../../../../../mozilla/build/unix/elfhack -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -D_FORTIFY_SOURCE=2 -Wall -W -Wno-unused -Wpointer-arith -Wdeclaration-after-statement -W -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D__ARM_PCS -fno-strict-aliasing -pthread -ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer  -D_FORTIFY_SOURCE=2 -include ../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/dummy.pp /«PKGBUILDDIR»/mozilla/build/unix/elfhack/dummy.c
g++ -D_FORTIFY_SOURCE=2 -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D__ARM_PCS -fno-strict-aliasing -fshort-wchar -pthread -ffunction-sections -fdata-sections -pipe -fexceptions  -DNDEBUG -DTRIMMED -g -Os -freorder-blocks  -fomit-frame-pointer -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,test.so -o test.so -Wl,--as-needed -lpthread    -Wl,-rpath-link,/«PKGBUILDDIR»/build-iceape/mozilla/dist/bin -Wl,-rpath-link,/usr/lib  test.o
===
=== If you get failures below, please file a bug describing the error
=== and your environment (compiler and linker versions), and use
=== --disable-elf-hack until this is fixed.
===
/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack/elfhack -b test.so
test.so: terminate called after throwing an instance of 'std::runtime_error'
  what():  Unsupported relocation type
make[8]: *** [test.so] Aborted
make[8]: Leaving directory `/«PKGBUILDDIR»/build-iceape/mozilla/build/unix/elfhack'



Andreas



More information about the pkg-mozilla-maintainers mailing list