Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385179 - [x11 overlay] x11-libs/pixman-9999 compile fails
Summary: [x11 overlay] x11-libs/pixman-9999 compile fails
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Matt Turner
Depends on:
Reported: 2011-10-01 11:50 UTC by cyrillic
Modified: 2011-10-09 16:31 UTC (History)
1 user (show)

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

pixman_build.log (pixman_build.log,22.05 KB, text/plain)
2011-10-01 11:51 UTC, cyrillic
Details (,3.12 KB, text/plain)
2011-10-01 11:52 UTC, cyrillic
pixman_config.log (pixman_config.log,48.25 KB, text/plain)
2011-10-02 03:31 UTC, cyrillic
patch to enable iwmmxt only on ARM (diff.patch,471 bytes, patch)
2011-10-02 15:05 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2011-10-01 11:50:12 UTC
Upstream has recently enabled ARM instructions, even on non-ARM platforms.

Reproducible: Always

Steps to Reproduce:
1. emerge pixman
Actual Results:  
  CC     libpixman_mmx_la-pixman-mmx.lo
/bin/sh ../libtool --silent --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/pixman-9999/work/pixman-9999/pixman -I..     -mmmx -Winline -march=nocona -O2 -pipe -Wall -fno-strict-aliasing -fvisibility=hidden -c -o libpixman_mmx_la-pixman-mmx.lo `test -f 'pixman-mmx.c' || echo '/var/tmp/portage/x11-libs/pixman-9999/work/pixman-9999/pixman/'`pixman-mmx.c
/var/tmp/portage/x11-libs/pixman-9999/work/pixman-9999/pixman/pixman-mmx.c:53:1: error: redefinition of '_mm_empty'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/include/mmintrin.h:47:1: note: previous definition of '_mm_empty' was here
make[3]: *** [libpixman_mmx_la-pixman-mmx.lo] Error 1

If I pass --disable-arm-iwmmxt to ./configure then it compiles fine.
Comment 1 cyrillic 2011-10-01 11:51:44 UTC
Created attachment 288433 [details]
Comment 2 cyrillic 2011-10-01 11:52:19 UTC
Created attachment 288435 [details]
Comment 3 Matt Turner gentoo-dev 2011-10-01 17:46:54 UTC
Can you attach your config.log?

I see that it's incorrectly detecting iwmmxt:

checking whether to use ARM IWMMXT intrinsics... yes

but I can't reproduce this locally.

The upstream patch in question is mine, and I've been testing it for months and I've never seen this.
Comment 4 cyrillic 2011-10-02 03:31:29 UTC
Created attachment 288511 [details]
Comment 5 Matt Turner gentoo-dev 2011-10-02 15:05:44 UTC
Created attachment 288559 [details, diff]
patch to enable iwmmxt only on ARM

Give this patch a try, and if it works, I'll commit it upstream.

I see exactly why the configure test would succeed on x86/amd64, but for some unknown reason, I'm not able to reproduce it. I really don't know why you're seeing this but I never have.

Anyway, thanks a bunch for testing and for finding this bug. I'm glad it was reported here so that I saw it first. :)
Comment 6 Matt Turner gentoo-dev 2011-10-06 02:59:29 UTC
Patch sent to pixman mailing list.
Comment 7 Matt Turner gentoo-dev 2011-10-09 16:31:10 UTC
Committed. Thanks for reporting, no thanks for not responding to testing requests. :\