[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FTBS of libqt4-ruby on HPPA and -ffunction-sections



  Hello,

  I am the maintainer of libqt4-ruby, and it has shown problems recently
building on HPPA. It is based on cmake, and the latter seems to fail to
understand the presence of Qt4 on HPPA (while the same code works on
amd64 - see bug #434584). I got around this problem (make || make works
in that case) and the build logs go further, but then I am stuck with
the following error:

[  4%] Building CXX object smoke/qt/CMakeFiles/smokeqt4.dir/smokedata.o
[  6%] Building CXX object smoke/qt/CMakeFiles/smokeqt4.dir/x_1.o
[  9%] Building CXX object smoke/qt/CMakeFiles/smokeqt4.dir/x_2.o
[ 11%] Building CXX object smoke/qt/CMakeFiles/smokeqt4.dir/x_3.o
<...>
[ 51%] Building CXX object smoke/qt/CMakeFiles/smokeqt4.dir/x_20.o
Linking CXX shared library libsmokeqt4.so
/usr/bin/ld:
CMakeFiles/smokeqt4.dir/x_1.o(.text._ZN21x_QAbstractFileEngine4x_69EPN5Smoke9StackItemE[x_QAbstractFileEngine::x_69(Smoke::StackItem*)]+0x2c):
cannot reach 00002138__ZN19QAbstractFileEngine12endEntryListEv+0,
recompile with -ffunction-sections
/usr/bin/ld:
CMakeFiles/smokeqt4.dir/x_1.o(.text._ZN21x_QAbstractFileEngine4x_69EPN5Smoke9StackItemE[x_QAbstractFileEngine::x_69(Smoke::StackItem*)]+0x2c):
cannot handle R_PARISC_PCREL17F for QAbstractFileEngine::endEntryList()
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

(see
http://buildd.debian.org/fetch.cgi?&pkg=libqt4-ruby&ver=1.4.9-3&arch=hppa&stamp=1185323133&file=log)

  Then I recompiled on paer with -ffunction-sections as requested, and
the same error appears, though admittedly later in the linking process:

/usr/bin/ld:
CMakeFiles/smokeqt4.dir/x_3.o(.text._ZN8x_QColor4x_73EPN5Smoke9StackItemE[x_QColor::x_73(Smoke::StackItem*)]+0x8c):
cannot reach 0000311e__ZN6QColor8setCmykFEddddd+0, recompile with
-ffunction-sections
/usr/bin/ld:
CMakeFiles/smokeqt4.dir/x_3.o(.text._ZN8x_QColor4x_73EPN5Smoke9StackItemE[x_QColor::x_73(Smoke::StackItem*)]+0x8c):
cannot handle R_PARISC_PCREL17F for QColor::setCmykF(double, double,
double, double, double)
/usr/bin/ld: final link failed: Bad value

  It now chokes on the third file, and not the first one as before.
Please note that the unreachable functions are from qt4, not from
libqt4-ruby. I found a similar case a long time ago[1], where the
conclusion seemed to be that the package's main dependency should have
also been compiled with -ffunction-sections. Does that mean that qt4
should also be compiled with -ffunction-sections on hppa ? Should I file
a bug for qt4 ?

[1]: http://lists.debian.org/debian-hppa/2002/04/msg00029.html

  For the record, the previous version of libqt4-ruby, that used
autoconf/automake, did not FTBS on hppa.

  Thanks a lot !

	Vincent

Please CC me, I am not subscribed
-- 
Vincent Fourmond, Debian Developer
http://vincent.fourmond.neuf.fr/
-- pretty boring signature, isn't it ?



Reply to: