LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-06-2021, 09:28 AM   #1
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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?
 
Old 07-07-2021, 04:37 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,134

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.
 
Old 08-09-2021, 04:55 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Original Poster
Rep: Reputation: 65
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.
 
Old 08-22-2021, 04:56 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Code:
cat /proc/cpuinfo
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ffmpeg every codec gives me an Illegal instruction error ricemark20 Slackware 7 02-06-2018 04:42 AM
ffmpeg and vlc: "Illegal Instruction" kikinovak Slackware 1 12-26-2016 02:24 PM
"Illegal instruction" error indienick Linux - Software 7 08-15-2006 11:03 AM
jpeg2yuv "Illegal instruction" natewlew Linux - Software 1 05-17-2006 02:41 AM
Which linux instruction is equivalent to windows' instruction "tracert"? backpacker Linux - Software 1 04-04-2006 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration