had to switch from am3+ cpu to am3 cpu. ffmpeg "illegal instruction"
GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
had to switch from am3+ cpu to am3 cpu. ffmpeg "illegal instruction"
this is in 2 seperate funtoo linux installs, but gentoo is very close. i've been haveing constant crashes on my main box, and i've switched back to my previous. fx-4100 cpu back to adx640 athlon 2. i've spend a ton of time trying to find what libs or whatever have the newer fx-4100 instructions, and i'm failing. i've already rebuild world twice. i made a list of all installed apps with qlist, and rebuilt everything i could that still existed from that list. i custom emerged ffmpeg with -(everthing) that would still build, with the same results. i ran ldd ffmpeg, and everything in that list i checked and has been rebuilt. the 2 installs had cflags -march=native. luckily, my gentoo install had -mtune=native and no -march command. it's still fine. if i compile ffmpeg and mplayer by hand with configure and make, it works, so emerge is pulling in something with illegal instructions in it? that i can't find. how should i proceed?
Have you asked on gentoo's own fora ?.
Been a good few years since I partook, but the ricers there were seriously committed to trying every option known to mankind to wring out that extra grain of performance. I'm sure someone there has had to travel this path and will have some ideas for you.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Original Poster
Rep:
fixed maybe?
i'm not sure, but in the past day after revisiting this and a couple of rebuilds with --deep for mplayer and ffmpeg, they are working. i don't know what did it really.
In /etc/portage/make.conf you should have: CPU_FLAGS_X86=
Changing cpu likely requires changing some of these flags.
I had a set of flags I found on the net someone was using with similar processor, then I decided to check what my cpus flags are and the list was a lot bigger. Granted many need not be in make.conf as they have no bearing on anything. For the Halibut I commented out the first CPU_FLAGS_X86= and added a new one with all flags found in the output of: cat /proc/cpuinfo and ran: emerge -avD --changed-use @world and adjusted them based on complaints till it was happy and ffmpeg was the only package needing rebuild. Everything appears normal so far.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.