Re: cpuinfo.sh (fwd)

"Steven M. Schultz" <[email protected]> Thu, 18 Sep 2008 09:04:53 -0700 (PDT)
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
On Thu, 18 Sep 2008, Gernot Ziegler wrote:

> ---------- Forwarded message ----------
> Date: Thu, 18 Sep 2008 12:34:05 +0200
> From: mattias <[email protected]>
> To: [email protected]
> Subject: cpuinfo.sh
> 
> Hello Madmac,
> 
> The cpuinfo.sh script on 64bit linux doesnt behave as expected.
> This is from 1.9.0rc3.

> ardemo@tokyo:~$
> ardemo@tokyo:~$ sh cpuinfo.sh x86
> Your  does not even support "i386" for '-march' and -mtune.

	The commit log for cpuinfo.sh says:

revision 1.18
date: 2007/09/20 03:53:18;  author: sms00;  state: Exp;  lines: +3 -1
Add support for model 15 Intel cpus (nocona x86_64)

	RC3 was created in December 2007.  So RC3 has the change for x86_64
	"nocona" cpus.

	The problem is one of the C compiler not being installed or 
	correctly/completely installed.

	In cpuinfo.sh the message is:

echo "Your $_cc does not even support \"i386\" for '-march' and $_opt_mcpu."

	The problem could be that gcc/cc isn't running right.   The $_cc
	is in error - the correct string, which I will check in shortly, 
	could be $CC.  IF the environment variable CC is set it will be used,
	if it is not set then cpuinfo.sh will assign 'gcc'. 

	Try changing the $_cc to $CC and seeing if the error message changes.

	Cheers,
	Steven Schultz


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/