Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qt-3.3.8 Bus Error on mips-unknown-linux-gnu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
rhill
Developer
Developer


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sat Feb 16, 2008 7:55 pm    Post subject: qt-3.3.8 Bus Error on mips-unknown-linux-gnu Reply with quote

When building qt-3.3.8 with binutils-2.18-r1 i get the infamous `relocation truncated to fit: R_MIPS_GOT16` error. (I'm pretty sure multiGOT support in our 2.18 ebuild is broken by the mips gnu-hash patch, but I'll save that story for another time.)

When building with binutils-2.17-r2 however, i get this funky error:

Code:
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins pixmapfunction.ui -o pixmapfunction.h
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins createtemplate.ui -o createtemplate.h
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins actioneditor.ui -o actioneditor.h
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins projectsettings.ui -o projectsettings.h
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins finddialog.ui -o finddialog.h
/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/bin/uic -L /var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/plugins replacedialog.ui -o replacedialog.h
make[3]: *** [pixmapfunction.h] Bus error
make[3]: *** Deleting file `pixmapfunction.h'
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [createtemplate.h] Bus error
make[3]: *** Deleting file `createtemplate.h'
make[3]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools/designer/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools'
make: *** [sub-tools] Error 2
 *
 * ERROR: x11-libs/qt-3.3.8-r4 failed.


After a bit of digging, i tracked this back to an old Debian HPPA bug, which led me to this patch: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342545#165

With this patch I have no problem building Qt. But I have to wonder, why am I the first person to ever encounter this? Can anyone independently reproduce this so I know I'm not crazy?


Portage 2.1.4.4 (default-linux/mips/2007.1-dev/generic-be/o32, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23.14-mipsgit-20080206 mips64)
=================================================================
System uname: 2.6.23.14-mipsgit-20080206 mips64 R5000 V2.1 FPU V1.0
distcc 2.18.3 mips-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p33
dev-lang/python: 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.17-r2, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.24
ACCEPT_KEYWORDS="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe"
CHOST="mips-unknown-linux-gnu"
CXXFLAGS="-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe"
FEATURES="autoconfig ccache digest distcc distlocks fixpackages metadata-transfer parallel-fetch sfperms splitdebug strict unmerge-orphans userfetch"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j6"
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Feb 17, 2008 11:24 pm    Post subject: Reply with quote

You're not... I've been hitting it for a while... bus error during the build of Qt. The problem is "fixed" (worked around) when compiling for MIPS1 -- which obviously is impossible on n32.

The LiveUSB image has Qt compiled for MIPS1 to work around the issue. I obviously didn't think to try a hppa patch. ;-)
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum