Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431968 - media-libs/qimageblitz-0.0.6 fails to respect CC and CFLAGs
Summary: media-libs/qimageblitz-0.0.6 fails to respect CC and CFLAGs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 432480
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2012-08-19 10:43 UTC by Scott Shoup
Modified: 2012-12-08 16:06 UTC (History)
0 users

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


Attachments
emerge --info (file_431968.txt,4.73 KB, text/plain)
2012-08-19 10:43 UTC, Scott Shoup
Details
build.log (build.log,19.82 KB, text/plain)
2012-08-19 10:46 UTC, Scott Shoup
Details
samanderrake's faild build.log with USE=mmx (build.log,21.57 KB, text/plain)
2012-12-03 17:09 UTC, ewomer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Shoup 2012-08-19 10:43:56 UTC
Created attachment 321694 [details]
emerge --info

with portage-multilib qimageblitz installs a 64 bit version to /usr/lib32

file /usr/lib32/libvpx.so.1.0.0:
/usr/lib32/libvpx.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
Comment 1 Scott Shoup 2012-08-19 10:46:14 UTC
Created attachment 321696 [details]
build.log

calls gcc without flags on line 96
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:14:05 UTC
cd .../work/qimageblitz-0.0.6_build/blitz && gcc -c .../work/qimageblitz-0.0.6/blitz/asm_scale.S
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-08-23 11:09:31 UTC
(In reply to comment #0)
> with portage-multilib qimageblitz installs a 64 bit version to /usr/lib32
> 
> file /usr/lib32/libvpx.so.1.0.0:
> /usr/lib32/libvpx.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1
> (SYSV), dynamically linked, stripped

That is installed by media-libs/libvpx, please file a new bug about that.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2012-11-14 17:38:38 UTC
I have made two experimental commits to the KDE overlay that may fix this bug:

http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commitdiff;h=aa16c05452e3471adfef3a7c32298f204118e4b9
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commitdiff;h=eb42a0e4d45d1de40ffef52d6df2a4dc35bb13aa

Please review the changes (keeping in mind that I am not particularly familiar with assembler).

portage-multilib users, please test to see if the bug is fixed for you.
Comment 5 ewomer 2012-12-01 11:58:38 UTC
Still does not fix it. Same error output.


Linking CXX shared library libqimageblitz.so
cd /var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/work/qimageblitz-0.0.6_build/blitz && /usr/bin/cmake -E cmake_link_script CMakeFiles/qimageblitz.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native  -O2 -pipe -m32  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common  -Wl,-O1 -Wl,--as-needed -m32 -shared -Wl,-soname,libqimageblitz.so.4 -o libqimageblitz.so.4.0.0 CMakeFiles/qimageblitz.dir/blitz.o CMakeFiles/qimageblitz.dir/colors.o CMakeFiles/qimageblitz.dir/convolve.o CMakeFiles/qimageblitz.dir/histogram.o CMakeFiles/qimageblitz.dir/blitzcpu.o CMakeFiles/qimageblitz.dir/scale.o CMakeFiles/qimageblitz.dir/scalefilter.o CMakeFiles/qimageblitz.dir/gradient.o CMakeFiles/qimageblitz.dir/asm_scale.o /usr/lib32/qt4/libQtCore.so -lpthread /usr/lib32/qt4/libQtGui.so -Wl,-rpath,/usr/lib32/qt4::::::::::: 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `CMakeFiles/qimageblitz.dir/asm_scale.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make[2]: *** [blitz/libqimageblitz.so.4.0.0] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/work/qimageblitz-0.0.6_build'
make[1]: *** [blitz/CMakeFiles/qimageblitz.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/work/qimageblitz-0.0.6_build'
make: *** [all] Error 2
 * ERROR: media-libs/qimageblitz-0.0.6-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-libs/qimageblitz-0.0.6-r1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/qimageblitz-0.0.6-r1'`.
 * This ebuild is from an overlay named 'kde': '/var/lib/layman/kde/'
 * The complete build log is located at '/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/work/qimageblitz-0.0.6_build'
 * S: '/var/tmp/portage/media-libs/qimageblitz-0.0.6-r1/work/qimageblitz-0.0.6'

>>> Failed to emerge media-libs/qimageblitz-0.0.6-r1
Comment 6 ewomer 2012-12-02 15:35:30 UTC
!!UPDATE!! 

In order to emerge qimageblitz using the multilib-portage overlay you have to disable the mmx use flag.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2012-12-03 13:23:41 UTC
(In reply to comment #5)
> Still does not fix it. Same error output.

Thanks for testing. Could you please attach the full build log?
Comment 8 ewomer 2012-12-03 17:09:02 UTC
Created attachment 331320 [details]
samanderrake's faild build.log with USE=mmx
Comment 9 Michael Palimaka (kensington) gentoo-dev 2012-12-05 07:04:29 UTC
(In reply to comment #8)
> Created attachment 331320 [details]
> samanderrake's faild build.log with USE=mmx

Do you have some eclass-overrides definitions in /etc/portage/repos.conf?
If so, can you try to merge the overlay version again with those lines temporarily commented out?
Comment 10 ewomer 2012-12-06 19:29:42 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created attachment 331320 [details]
> > samanderrake's faild build.log with USE=mmx
> 
> Do you have some eclass-overrides definitions in /etc/portage/repos.conf?
> If so, can you try to merge the overlay version again with those lines
> temporarily commented out?

It emerged. with USE=mmx enabled after commenting out the lines in /etc/portage/repos.conf

[DEFAULT]
#eclass-overrides = gentoo multilib
[multilib]
#eclass-overrides = gentoo multilib
Comment 11 Michael Palimaka (kensington) gentoo-dev 2012-12-08 16:06:41 UTC
(In reply to comment #10)
> It emerged. with USE=mmx enabled after commenting out the lines in
> /etc/portage/repos.conf

Thanks heaps for testing!

The qimageblitz-specific fix is now in CVS, and the eclass fix was done in bug #432480.

+  08 Dec 2012; Michael Palimaka <kensington@gentoo.org>
+  +files/qimageblitz-0.0.6-gcc.patch, +qimageblitz-0.0.6-r1.ebuild:
+  Respect CC, wrt bug #431968.