[F15] qt

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

 



I managed to compile qt but it suffer from default -fstrict-volatile-bitfields in GCC 4.6.0.

This patch add -fno-strict-volatile-bitfields which resolve compilation issue. Another patch is to disable neon on non-neon armv7hl

IMO. This should be same bug as one in kernel ehci-hub. armv5tel should be affected too.

So is this good or it will be fixed in GCC?
>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 1c061fa2b70c72b8f32eebf1ee1e59174f4b7d26 Mon Sep 17 00:00:00 2001
From: Zoran Pericic <zpericic@xxxxxxxxx>
Date: Tue, 2 Aug 2011 15:17:24 -0400
Subject: [PATCH 2/2] Disable neon for non armv7hnl

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

diff --git a/qt.spec b/qt.spec
index 0ecc5a6..519cf52 100644
--- a/qt.spec
+++ b/qt.spec
@@ -656,6 +656,9 @@ done
   -glib \
   -openssl-linked \
   -xmlpatterns \
+%ifnarch armv7hnl
+  -no-neon \
+%endif
   %{?dbus} %{!?dbus:-no-dbus} \
   %{?webkit} %{!?webkit:-no-webkit } \
   %{?ibase} \
-- 
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