trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2011

tqt3 FTBFS with uic segmentation fault

From: Laurent Dard <f.couperin@...>
Date: Sun, 11 Dec 2011 19:02:27 +0100
Tqt3 (from git) fails to build because of uic that segfaults with listboxeditor.ui.

I'm cross compiling (gcc -m32 & g++ -m32), on Linux From Scratch.

What's wrong?

Commands (qt3-3.3.8d compiled well with the same commands):

  patch --verbose -Np1 -i /sources/tqt3-git-libpng15-1.patch &&
  export PATH=$PWD/bin:$PATH &&
  export LD_LIBRARY_PATH=$PWD/lib &&
  export QMAKESPEC=linux-g++-32 &&
  echo yes | ./configure -prefix /usr \
    -docdir /usr/share/doc/tqt3 \
    -headerdir /usr/include/qt \
    -datadir /usr/lib/qt \
    -plugindir /usr/lib/qt/plugin \
    -translationdir /usr/share/qt/translations \
    -sysconfdir /etc/qt \
    -qt-gif \
    -system-zlib \
    -system-libpng \
    -system-libjpeg \
    -system-libmng \
    -plugin-imgfmt-png \
    -plugin-imgfmt-jpeg \
    -plugin-imgfmt-mng \
    -no-exceptions \
    -thread \
    -tablet \
    -plugin-sql-mysql \
    -I/usr/include/mysql \
    -plugin-sql-sqlite \
    -I/usr/include/freetype2 \
    -lfontconfig &&
  find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g"

  export PATH=$PWD/bin:$PATH &&
  export LD_LIBRARY_PATH=$PWD/lib &&
  export QMAKESPEC=linux-g++-32 &&
  make


Log:

g++ -c -m32 -pipe -I/usr/include/mysql -I/usr/include/freetype2 -fno-exceptions -fPIC -Wall -W -O2 -D_REENTRANT  -DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/tmp/tqt3/mkspecs/linux-g++-32 -I. -I/usr/include/freetype2 -I../shared -I../uilib -I../../../include -I/usr/X11R7/include -I.moc/release-shared-mt/ -o ./tableeditorimpl.o tableeditorimpl.cpp
In file included from ../../../include/qdragobject.h:50:0,
                 from actiondnd.h:38,
                 from formwindow.h:40,
                 from tableeditorimpl.cpp:38:
../../../include/qimage.h: In member function ‘bool TQImageTextKeyLang::operator<(const TQImageTextKeyLang&) const’:
../../../include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
/tmp/tqt3/bin/uic -L /tmp/tqt3/plugins listboxeditor.ui -i listboxeditor.h -o listboxeditor.cpp
make[4]: *** [listboxeditor.cpp] Segmentation fault
make[4]: *** Deleting file `listboxeditor.cpp'


$ gdb bin/uic tools/designer/designer/core
GNU gdb (GDB) 7.3.50.20110816
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/tqt3/bin/uic...(no debugging symbols found)...done.
[New LWP 20544]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/tmp/tqt3/bin/uic -L /tmp/tqt3/plugins listboxeditor.ui -i listboxeditor.h -o l'.
Program terminated with signal 11, Segmentation fault.
#0  0xf60fbc30 in ?? ()
(gdb) bt
#0  0xf60fbc30 in ?? ()
#1  0xf7228ef0 in TQApplication::~TQApplication() () from /tmp/tqt3/lib/libtqt-mt.so.3
#2  0x0804ebb3 in main ()


$ ldd bin/uic
        linux-gate.so.1 =>  (0xf778a000)
        libtqt-mt.so.3 => /tmp/tqt3/lib/libtqt-mt.so.3 (0xf702a000)
        libz.so.1 => /lib/libz.so.1 (0xf6fef000)
        libGLU.so.1 => /usr/X11R7/lib/libGLU.so.1 (0xf6f6e000)
        libGL.so.1 => /usr/X11R7/lib/libGL.so.1 (0xf6f04000)
        libXmu.so.6 => /usr/X11R7/lib/libXmu.so.6 (0xf6eea000)
        libXi.so.6 => /usr/X11R7/lib/libXi.so.6 (0xf6edb000)
        libXrender.so.1 => /usr/X11R7/lib/libXrender.so.1 (0xf6ed1000)
        libXrandr.so.2 => /usr/X11R7/lib/libXrandr.so.2 (0xf6ec8000)
        libXcursor.so.1 => /usr/X11R7/lib/libXcursor.so.1 (0xf6ebd000)
        libXinerama.so.1 => /usr/X11R7/lib/libXinerama.so.1 (0xf6eb9000)
        libXft.so.2 => /usr/X11R7/lib/libXft.so.2 (0xf6ea2000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf6e10000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xf6dd1000)
        libXext.so.6 => /usr/X11R7/lib/libXext.so.6 (0xf6dbc000)
        libX11.so.6 => /usr/X11R7/lib/libX11.so.6 (0xf6c75000)
        libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xf6c6d000)
        libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xf6c53000)
        libdl.so.2 => /lib/libdl.so.2 (0xf6c4e000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf6c33000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf6b3b000)
        libm.so.6 => /lib/libm.so.6 (0xf6b10000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xf6af3000)
        libc.so.6 => /lib/libc.so.6 (0xf695e000)
        libXdamage.so.1 => /usr/X11R7/lib/libXdamage.so.1 (0xf695b000)
        libXfixes.so.3 => /usr/X11R7/lib/libXfixes.so.3 (0xf6956000)
        libXxf86vm.so.1 => /usr/X11R7/lib/libXxf86vm.so.1 (0xf694f000)
        libX11-xcb.so.1 => /usr/X11R7/lib/libX11-xcb.so.1 (0xf694d000)
        libxcb-glx.so.0 => /usr/X11R7/lib/libxcb-glx.so.0 (0xf6938000)
        libxcb.so.1 => /usr/X11R7/lib/libxcb.so.1 (0xf6919000)
        libdrm.so.2 => /usr/X11R7/lib/libdrm.so.2 (0xf690d000)
        libXt.so.6 => /usr/X11R7/lib/libXt.so.6 (0xf68aa000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xf68a5000)
        libXau.so.6 => /usr/X11R7/lib/libXau.so.6 (0xf68a2000)
        libXdmcp.so.6 => /usr/X11R7/lib/libXdmcp.so.6 (0xf689c000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xf6872000)
        /lib/ld-linux.so.2 (0xf778b000)
        librt.so.1 => /lib/librt.so.1 (0xf6867000)


Linux x86_64 GNU/Linux
GNU C Library (EGLIBC) stable release version 2.14, by Roland McGrath et al.
gcc (GCC) 4.6.1
GNU ld (Linux/GNU Binutils) 2.21.52.0.2.20110610

-- 
Laurent Dard