Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35568 - [qt4] 32bit build is broken on x86_64

Attached to Project: Arch Linux
Opened by kuba2 (7ymekk2) - Friday, 31 May 2013, 14:26 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 02 July 2013, 11:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:


Additional info:
* package version(s) multilib/lib32-qt4 4.8.4-5 [installed]
* config and/or log files etc.


Steps to reproduce:

create file:
-----------------------
#include <QApplication>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);

return a.exec();
}
--------------------------
qmake -project .

qmake-qt4 <file>.pro -spec linux-g++-32

make

g++ -c -m32 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-32 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o dupa.o dupa.cpp
g++ -m32 -Wl,-O1,--sort-common,--as-needed,-z,relro -Wl,-O1 -o dupa dupa.o -L/usr/lib -lQtGui -lQtCore -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libQtGui.so when searching for -lQtGui
/usr/bin/ld: skipping incompatible /usr/lib/libQtCore.so when searching for -lQtCore
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s


ldd /usr/lib32/libQtCore.so.4.8.4
/usr/bin/ldd: line 116: 12426 Segmentation fault LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$@"
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 02 July 2013, 11:12 GMT
Reason for closing:  Implemented
Additional comments about closing:  qt4 4.8.5-1
Comment by Dave Reisner (falconindy) - Friday, 31 May 2013, 14:34 GMT
Looks like you're missing lib32-gcc-libs ...
Comment by Laurent Carlier (lordheavy) - Friday, 31 May 2013, 20:36 GMT
lib32-qt4 provide pkgconfig files (and PKGCONFIG_PATH should be set to /usr/lib32/pkgconfig). I don't know if qmake uses pkgconfig to retrieve Qt4 dependencies.
Comment by Laurent Carlier (lordheavy) - Friday, 31 May 2013, 21:06 GMT
just tested PKG_CONFIG_PATH without success, problem is in Qt4 package, especially the linux-g++-32 that doesn't set /usr/lib32 as lib path
Comment by Laurent Carlier (lordheavy) - Friday, 31 May 2013, 21:27 GMT
Fixed in creating a file linux32.conf based on linux.conf in /usr/share/qt4/mkspec/common but with QMAKE_LIBDIR_QT set to /usr/lib32
then edit /usr/share/qt4/mkspec/linux-g++-32/qmake.conf and set include(../common/linux.conf) to include(../common/linux32.conf)
Comment by kuba2 (7ymekk2) - Monday, 03 June 2013, 06:36 GMT
Thank You LC. It Works!

Loading...