[f15] qt - stage4

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

 



I can see you have problem with qt in stage4. I have compiled it in stage3 with two patches. First one solves "error: output number 1 not directly addressable", second just force armv6 (which qt currently support).

You can found everything (rpms, srpms and logs) on https://netst.org/pub/linux/fedora/arm/15/qt/armv6/

Zoran




>From 809cb82c83ef0580db3b3a9507d26a12e8466e71 Mon Sep 17 00:00:00 2001
From: Zoran Pericic <zpericic@xxxxxxxxx>
Date: Tue, 2 Aug 2011 15:21:59 -0400
Subject: [PATCH 1/2] Fix GCC 4.6.0 strict-volatile-bitfields

GCC 4.6.0 uses -fstrict-volatile-bitfields which breaks ARM build:
qatomic_arm.h  error: output number 1 not directly addressable
---
 qt.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/qt.spec b/qt.spec
index 3490f07..0ecc5a6 100644
--- a/qt.spec
+++ b/qt.spec
@@ -576,6 +576,10 @@ RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
 rm -fv mkspecs/linux-g++*/qmake.conf.multilib
 %patch4 -p1 -b .uic_multilib
 
+%ifarch armv7hl arv7hnl
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-volatile-bitfields"
+%endif
+
 sed -i \
   -e "s|-O2|$RPM_OPT_FLAGS|g" \
   -e "s|g++.conf|g++-multilib.conf|g" mkspecs/%{platform}/qmake.conf
-- 
1.7.6

>From 009508943da869b2b18eb7f18e44c218ecbc420e Mon Sep 17 00:00:00 2001
From: Zoran Pericic <zpericic@xxxxxxxxx>
Date: Thu, 4 Aug 2011 13:50:29 -0400
Subject: [PATCH 2/2] Use armv6 for armv7hl and armv7hnl

---
 qt.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/qt.spec b/qt.spec
index 0ecc5a6..31cc167 100644
--- a/qt.spec
+++ b/qt.spec
@@ -634,6 +634,9 @@ done
   -no-rpath \
   -reduce-relocations \
   -no-separate-debug-info \
+%ifarch armv7hl armv7hnl 
+  -arch armv6 \
+%endif
   %{?phonon} %{!?phonon:-no-phonon} \
   %{?phonon_backend} \
   %{?no_pch} \
-- 
1.7.6

_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux