Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591968 - media-sounds/mixxx-2.0.0-r1: crash with 'Illegal instruction' when installed from tbz compiled by other CPU
Summary: media-sounds/mixxx-2.0.0-r1: crash with 'Illegal instruction' when installed ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-23 21:49 UTC by Ettore Di Giacinto (RETIRED)
Modified: 2016-10-21 14:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ettore Di Giacinto (RETIRED) gentoo-dev 2016-08-23 21:49:19 UTC
emerge --info: http://pastebin.com/YLy4Dzjv

The ebuilds hardcodes optimize=native in myesconsargs, 
this results in produced tbz2 not usable in other system with different CPUs.

optimize=0 fixes the problem, for Sabayon we had to fork the ebuild: https://github.com/Sabayon/for-gentoo/commit/37cf3f6978d7c1dfdb09838f9012e79bcf792860#diff-44084ddbe259d14e0ff70b69aafdb17fR104

Reproducible: Always

Steps to Reproduce:
1. emerge -B mixxx from a system 
2. use the produced tbz2 with a different system with a different CPU from the one that compiled it
3. run mixxx --help
Actual Results:  
mixxx returns 'Illegal Instruction'

Expected Results:  
mixxx usage output
Comment 1 Ettore Di Giacinto (RETIRED) gentoo-dev 2016-10-21 14:32:00 UTC
commit 85f19302d80465c470c8fbbba2e25c9abb88433f
Author: Ettore Di Giacinto <mudler@gentoo.org>
Date:   Fri Oct 21 13:04:49 2016 +0200

    media-sound/mixxx: revbump to 2.0.0-r2 wrt #591968
    
    * enable detected optimizations with -march and -mcpu
    
    Package-Manager: portage-2.3.1