Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357149 - =media-libs/xvid-1.3.1 fails to build on SPARC unless -mvis flag stripped
Summary: =media-libs/xvid-1.3.1 fails to build on SPARC unless -mvis flag stripped
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 21:08 UTC by Alex Buell
Modified: 2011-04-25 14:21 UTC (History)
1 user (show)

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


Attachments
xvid-1.30.ebuild.patch (xvid-1.3.0.ebuild.patch,559 bytes, patch)
2011-03-02 21:09 UTC, Alex Buell
Details | Diff
ebuld patch (xvid-1.3.1.ebuild.patch,557 bytes, text/plain)
2011-04-03 21:02 UTC, Alex Buell
Details
xvid-1.3.1.ebuild.patch (xvid-1.3.1.ebuild.patch,557 bytes, text/plain)
2011-04-03 21:04 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2011-03-02 21:08:49 UTC
with -mvis enabled in CFLAGS in make.conf, xvid-1.3.0 will not compile. I have modified the ebuild to strip the -mvis flag if building on SPARC.
Comment 1 Alex Buell 2011-03-02 21:09:21 UTC
Created attachment 264523 [details, diff]
xvid-1.30.ebuild.patch
Comment 2 Alex Buell 2011-03-02 21:12:50 UTC
This is just an example of what happens if you build with -mvis:

distcc[5960] Warning: failed to distribute ../../src/dct/fdct.c to sodium, running locally instead
{standard input}: Assembler messages:
{standard input}:736: Error: Architecture mismatch on "bne,pt %icc,.LL2".
{standard input}:736:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
{standard input}:988: Error: Architecture mismatch on "bne,a,pt %icc,.LL10".
{standard input}:988:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
{standard input}:1006: Error: Architecture mismatch on "bne,pt %icc,.LL4".
{standard input}:1006:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
{standard input}:1009: Error: Architecture mismatch on "return".
{standard input}:1009:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
distcc[5960] ERROR: compile ../../src/dct/fdct.c on localhost failed
make: *** [dct/fdct.o] Error 1
Comment 3 Alex Buell 2011-03-02 21:20:42 UTC
Filed bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47962
Comment 4 Alex Buell 2011-04-03 21:02:59 UTC
Created attachment 268411 [details]
ebuld patch
Comment 5 Alex Buell 2011-04-03 21:04:24 UTC
Created attachment 268413 [details]
xvid-1.3.1.ebuild.patch
Comment 6 Alex Buell 2011-04-03 21:04:40 UTC
New patch for xvid 1.3.1
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2011-04-25 14:21:02 UTC
just in case -mvis is added to one of the -march flag bundles, I've used append-cflags -mno-vis instead.  reopen if it doesn't work.