Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371623 - x11-libs/qt-gui-4.7.3: configure misdetects neon support on armv7a-hardfloat-linux-gnueabi
Summary: x11-libs/qt-gui-4.7.3: configure misdetects neon support on armv7a-hardfloat-...
Status: RESOLVED DUPLICATE of bug 336618
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 13:52 UTC by Denis I. Polukarov
Modified: 2012-02-11 10:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info *** (info,4.59 KB, text/plain)
2011-06-14 13:53 UTC, Denis I. Polukarov
Details
emerge -pqv *** (pqv,448 bytes, text/plain)
2011-06-14 13:53 UTC, Denis I. Polukarov
Details
Full build log (build.log,320.39 KB, text/plain)
2011-06-14 13:54 UTC, Denis I. Polukarov
Details
The build environment (environment,142.36 KB, text/plain)
2011-06-14 13:55 UTC, Denis I. Polukarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2011-06-14 13:52:31 UTC
Portage x11-libs/qt-gui-4.7.3 is not compile on 'armv7a-hardfloat-linux-gnueabi', because Cortex-A9 have not NEON instruction.

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/qt-gui-4.7.3 (on platform 'armv7a-hardfloat-linux-gnueabi' with Cortex-A9 CPU).
2.
3.
Actual Results:  
Failed to build =x11-libs/qt-gui-4.7.3.

Expected Results:  
Emerged =x11-libs/qt-gui-4.7.3.
Comment 1 Denis I. Polukarov 2011-06-14 13:53:22 UTC
Created attachment 277035 [details]
emerge --info ***
Comment 2 Denis I. Polukarov 2011-06-14 13:53:48 UTC
Created attachment 277037 [details]
emerge -pqv ***
Comment 3 Denis I. Polukarov 2011-06-14 13:54:28 UTC
Created attachment 277039 [details]
Full build log
Comment 4 Denis I. Polukarov 2011-06-14 13:55:06 UTC
Created attachment 277041 [details]
The build environment
Comment 5 Denis I. Polukarov 2011-06-15 07:19:06 UTC
All libs x11-libs/qt-gui & x11-libs/qt-* was compiled, after manually added '-no-neon' flag to var myconf in all ebuilds in src_configure section.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2011-06-15 10:26:57 UTC
neon auto-detection... ()
armv7a-hardfloat-linux-gnueabi-g++ -c -pipe -mfpu=neon -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -o neon.o neon.cpp
armv7a-hardfloat-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/usr/lib/qt4 -o neon neon.o     -lgthread-2.0 -lrt -lglib-2.0 -mfpu=neon 
neon enabled.

For some reasons neon support is enabled at configure-time because auto-detection is successful...

AFAIK there exist arm CPUs equipped with a neon unit, so we can't just forcefully disable neon on armv7, we have to properly fix the configure test.
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2011-06-15 10:40:34 UTC
The configure test only passes -mfpu=neon to the compiler, but I guess it should pass -mfloat-abi=softfp too.
Comment 8 Denis I. Polukarov 2011-06-15 15:33:43 UTC
Sorry... not Cortex-A9... Tegra2, on Tegra2 Cortex-A9 is without NEON, but with 'High performance VFPv3 Floating Point Unit doubling the performance of previous ARM FPUs (optional).' (http://en.wikipedia.org/wiki/ARM_Cortex-A9_MPCore)
Comment 9 Robert 2011-10-29 13:02:45 UTC
I confirm this bug on my Tegra 2 based Toshiba AC100 netbook, which does not have NEON.
I suggest fixing this by using the "neon" USE flag:
IUSE+="neon"
myconf+="$(qt_use neon)"

Autodetection is not the way to go. (Old Gentoo Wisdom)
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2011-12-31 00:59:33 UTC
Now that bug #336618 is fixed, could you test again please?
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2012-01-04 01:26:06 UTC

*** This bug has been marked as a duplicate of bug 336618 ***
Comment 12 Denis I. Polukarov 2012-02-11 10:47:46 UTC
=x11-libs/qt-gui-4.8.0-r1 successful build.